.text:714F3632
.text:714F3632 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
.text:714F3632
.text:714F3632 ; Attributes: bp-based frame
.text:714F3632
.text:714F3632 ; struct tagHOOKAPI * __stdcall NS_CorelSiteBuilder::InitializeHooksMulti(unsigned long, char *, unsigned long *)
.text:714F3632 ?InitializeHooksMulti@NS_CorelSiteBuilder@@YGPAUtagHOOKAPI@@KPADPAK@Z proc near
.text:714F3632                                         ; CODE XREF: ShimLib::InitializeHooksEx(ulong,ushort *,char *,ulong *)+F43p
.text:714F3632
.text:714F3632 arg_0           = dword ptr  8
.text:714F3632 arg_4           = dword ptr  0Ch
.text:714F3632 arg_8           = dword ptr  10h
.text:714F3632
.text:714F3632                 mov     edi, edi
.text:714F3634                 push    ebp
.text:714F3635                 mov     ebp, esp
.text:714F3637                 push    ebx
.text:714F3638                 mov     ebx, [ebp+arg_0]
.text:714F363B                 push    esi
.text:714F363C                 xor     esi, esi
.text:714F363E                 inc     esi
.text:714F363F                 cmp     ebx, esi
.text:714F3641                 push    edi
.text:714F3642                 mov     edi, [ebp+arg_8]
.text:714F3645                 jnz     short loc_714F367D
.text:714F3647                 cmp     [ebp+arg_4], 0
.text:714F364B                 jnz     short loc_714F3659
.text:714F364D                 mov     ?g_szCommandLine@NS_CorelSiteBuilder@@3PADA, offset byte_714E1F0D ; char * NS_CorelSiteBuilder::g_szCommandLine
.text:714F3657                 jmp     short loc_714F366A
.text:714F3659 ; ---------------------------------------------------------------------------
.text:714F3659
.text:714F3659 loc_714F3659:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+19j
.text:714F3659                 push    [ebp+arg_4]
.text:714F365C                 call    ?StringDuplicateA@ShimLib@@YGPADPBD@Z ; ShimLib::StringDuplicateA(char const *)
.text:714F3661                 test    eax, eax
.text:714F3663                 mov     ?g_szCommandLine@NS_CorelSiteBuilder@@3PADA, eax ; char * NS_CorelSiteBuilder::g_szCommandLine
.text:714F3668                 jz      short loc_714F368D
.text:714F366A
.text:714F366A loc_714F366A:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+25j
.text:714F366A                 push    18h             ; dwBytes
.text:714F366C                 call    ?ShimMalloc@ShimLib@@YAPAXI@Z ; ShimLib::ShimMalloc(uint)
.text:714F3671                 test    eax, eax
.text:714F3673                 pop     ecx
.text:714F3674                 mov     ?g_pAPIHooks@NS_CorelSiteBuilder@@3PAUtagHOOKAPI@@A, eax ; tagHOOKAPI * NS_CorelSiteBuilder::g_pAPIHooks
.text:714F3679                 jz      short loc_714F368D
.text:714F367B                 mov     [edi], esi
.text:714F367D
.text:714F367D loc_714F367D:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+13j
.text:714F367D                 push    ebx
.text:714F367E                 call    ?NotifyFn@NS_CorelSiteBuilder@@YGHK@Z ; NS_CorelSiteBuilder::NotifyFn(ulong)
.text:714F3683                 test    eax, eax
.text:714F3685                 jnz     short loc_714F3691
.text:714F3687                 cmp     ebx, esi
.text:714F3689                 jnz     short loc_714F36B8
.text:714F368B                 and     [edi], eax
.text:714F368D
.text:714F368D loc_714F368D:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+36j
.text:714F368D                                         ; NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+47j
.text:714F368D                 xor     eax, eax
.text:714F368F                 jmp     short loc_714F36BD
.text:714F3691 ; ---------------------------------------------------------------------------
.text:714F3691
.text:714F3691 loc_714F3691:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+53j
.text:714F3691                 cmp     ebx, esi
.text:714F3693                 jnz     short loc_714F36B8
.text:714F3695                 mov     eax, ?g_pAPIHooks@NS_CorelSiteBuilder@@3PAUtagHOOKAPI@@A ; tagHOOKAPI * NS_CorelSiteBuilder::g_pAPIHooks
.text:714F369A                 mov     dword ptr [eax], offset aUser32_dll ; "USER32.DLL"
.text:714F36A0                 mov     eax, ?g_pAPIHooks@NS_CorelSiteBuilder@@3PAUtagHOOKAPI@@A ; tagHOOKAPI * NS_CorelSiteBuilder::g_pAPIHooks
.text:714F36A5                 mov     dword ptr [eax+4], offset aSetwindowtexta ; "SetWindowTextA"
.text:714F36AC                 mov     eax, ?g_pAPIHooks@NS_CorelSiteBuilder@@3PAUtagHOOKAPI@@A ; tagHOOKAPI * NS_CorelSiteBuilder::g_pAPIHooks
.text:714F36B1                 mov     dword ptr [eax+8], offset ?APIHook_SetWindowTextA@NS_CorelSiteBuilder@@YGHPAUHWND__@@PBD@Z ; NS_CorelSiteBuilder::APIHook_SetWindowTextA(HWND__ *,char const *)
.text:714F36B8
.text:714F36B8 loc_714F36B8:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+57j
.text:714F36B8                                         ; NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+61j
.text:714F36B8                 mov     eax, ?g_pAPIHooks@NS_CorelSiteBuilder@@3PAUtagHOOKAPI@@A ; tagHOOKAPI * NS_CorelSiteBuilder::g_pAPIHooks
.text:714F36BD
.text:714F36BD loc_714F36BD:                           ; CODE XREF: NS_CorelSiteBuilder::InitializeHooksMulti(ulong,char *,ulong *)+5Dj
.text:714F36BD                 pop     edi
.text:714F36BE                 pop     esi
.text:714F36BF                 pop     ebx
.text:714F36C0                 pop     ebp
.text:714F36C1                 retn    0Ch
.text:714F36C1 ?InitializeHooksMulti@NS_CorelSiteBuilder@@YGPAUtagHOOKAPI@@KPADPAK@Z endp
.text:714F36C1
.text:714F36C1 ; ---------------------------------------------------------------------------