Function at 0x40334c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa6c
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00404114
pop ecx
mov edi, 0x827
push 1
lea eax, [ebp - 0xa6c]
pop esi
xor ebx, ebx
push edi
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
jae 0x4033cb
lea eax, [ebp - 0xa6c]
push 0x406300
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa6c]
push eax
call fcn.00402d5c
add esp, 0xc
test eax, eax
je 0x4033c8
mov eax, dword [ebp - 0x50]
shr eax, 0x10
cmp ax, 8
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
jmp 0x4033cb
mov dword [ebp - 0x48], esi
push 0x4072d4
push dword [ebp + 0x10]
call fcn.00401e5e
mov edi, eax
pop ecx
neg edi
sbb edi, edi
pop ecx
neg edi
mov dword [ebp - 0x74], edi
call fcn.00404908
test eax, eax
jne 0x4033f6
cmp edi, ebx
je 0x4034a3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 5]
push eax
mov dword [ebp - 0xc], 1
call fcn.004016c5
mov eax, dword [eax]
mov esi, 0x834
push 6
lea ecx, [ebp - 0xa6c]
push esi
mov edi, str.HomePage
push ecx
push edi
push eax
call fcn.00402455
add esp, 0x14
test eax, eax
jne 0x40343a
call fcn.004048e5
test eax, eax
mov byte [ebp - 6], 1
jne 0x40343d
mov byte [ebp - 6], bl
cmp byte [ebp - 0x10], bl
je 0x40344b
push dword [ebp - 0x14]
call fcn.00401cfc
pop ecx
cmp byte [ebp - 6], bl
je 0x4034a3
lea eax, [ebp - 0xa6c]
push esi
push eax
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call fcn.004025a8
add esp, 0x14
test eax, eax
je 0x4034a3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 5]
push eax
call fcn.004016c5
mov eax, dword [eax]
push 6
lea ecx, [ebp - 0xa6c]
push ebx
push ecx
push edi
push eax
call fcn.00402648
add esp, 0x14
cmp byte [ebp - 0x10], bl
je 0x4034a3
push dword [ebp - 0x14]
call fcn.00401cfc
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x4034e4
lea eax, [ebp - 0x14]
lea ecx, [ebp - 5]
push eax
call fcn.004016c5
mov eax, dword [eax]
push 2
push ebx
push str.sspd
push eax
call fcn.004023c5
add esp, 0x10
cmp byte [ebp - 0x10], bl
mov esi, eax
je 0x4034d7
push dword [ebp - 0x14]
call fcn.00401cfc
pop ecx
cmp esi, ebx
je 0x4034e4
cmp dword [ebp - 0xc], ebx
je 0x403d04
call fcn.004032dd
test eax, eax
jne 0x403d04
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push str.__Shared0I
lea ecx, [ebp - 0x54]
call fcn.00402e35
lea eax, [ebp - 0x54]
lea ecx, [ebp - 5]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404d12
mov ecx, eax
call fcn.00404e08
mov esi, dword [eax]
call fcn.004021b7
mov ecx, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
neg ecx
sbb ecx, ecx
push esi
push ebx
and ecx, eax
push 1
push ecx
call edi
cmp byte [ebp - 0x10], bl
mov esi, eax
mov dword [ebp - 0x68], esi
je 0x40354e
push dword [ebp - 0x14]
call fcn.00401cfc
pop ecx
cmp byte [ebp - 0x50], bl
je 0x40355c
push dword [ebp - 0x54]
call fcn.00401cfc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
je 0x403d04
cmp eax, 0xb7
je 0x403cfd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403cfd
push ebx
push ebx
push str.__HPG__Shared0M
lea ecx, [ebp - 0x70]
call fcn.00402e35
lea eax, [ebp - 0x70]
lea ecx, [ebp - 5]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404d12
mov ecx, eax
call fcn.00404e5c
push dword [eax]
push ebx
push 1
push ebx
call edi
cmp byte [ebp - 0x10], bl
mov dword [ebp - 0x50], eax
je 0x4035c4
push dword [ebp - 0x14]
call fcn.00401cfc
pop ecx
cmp byte [ebp - 0x6c], bl
je 0x4035d2
push dword [ebp - 0x70]
call fcn.00401cfc
pop ecx
cmp dword [ebp - 0x50], ebx
je 0x403cfd
call fcn.00403d5a
push 0x4072b4
mov dword [ebp - 0x24], ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401e5e
pop ecx
cmp eax, ebx
pop ecx
je 0x40360c
add eax, 3
push eax
call fcn.00401f0d
pop ecx
mov dword [ebp - 0x24], eax
push 0x4072b0
push dword [ebp + 0x10]
call fcn.00401e5e
neg eax
sbb eax, eax
push 0x4072ac
push dword [ebp + 0x10]
neg eax
mov dword [ebp - 0x4c], eax
call fcn.00401e5e
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
xor eax, eax
neg esi
cmp dword [ebp - 0x24], 2
push 0x4072a8
push 0x40a584
sete al
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x58], eax
je 0x403ce1
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x5c], eax
je 0x403c96
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc0], ebx
call fcn.00404f73
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call fcn.00404f73
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
je 0x403744
lea eax, [ebp - 0x64]
lea ecx, [ebp + 0x13]
push eax
call fcn.004016c5
mov eax, dword [eax]
push 2
push 1
push str.sspd
push eax
call fcn.00402409
add esp, 0x10
cmp byte [ebp - 0x60], bl
mov dword [ebp - 0x30], eax
je 0x40372e
push dword [ebp - 0x64]
call fcn.00401cfc
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x403744
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], ebx
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403c6a
cmp esi, ebx
je 0x4039fd
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4039f4
lea eax, [ebp - 0x238]
push 0x5c
push eax
call fcn.00401fc1
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4039f4
push str.hkstub
lea ecx, [ebp - 0x34]
call fcn.00404dcc
lea eax, [ebp - 0x34]
lea ecx, [ebp + 0x13]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404d64
mov ecx, eax
call fcn.00404eb0
push dword [eax]
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x60], bl
je 0x4037bf
push dword [ebp - 0x64]
call fcn.00401cfc
pop ecx
cmp byte [ebp - 0x30], bl
je 0x4037cd
push dword [ebp - 0x34]
call fcn.00401cfc
pop ecx
push 8
lea eax, [ebp - 0x238]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4039f4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4039f4
call fcn.004021b7
mov ecx, dword [eax + 0xc]
push str.68CDDC12_35B6_499d_A60E_D50F215B6B0D
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push 1
push ecx
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4039f4
cmp dword [ebp - 0x38], ebx
je 0x403835
push str.SearchScopeMonintor
push ebx
lea ecx, [ebp - 0xc0]
call fcn.0040128d
cmp dword [ebp - 0xc], ebx
je 0x40384b
push str.HomePageGuard
push ebx
lea ecx, [ebp - 0xa8]
call fcn.0040128d
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push ebx
push dword [ebp - 0x1c]
push esi
push 0xa
call edi
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], eax
je 0x40386e
push ebx
push dword [ebp - 0x1c]
push esi
push 0xb
call edi
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x40], ebx
je 0x4039dc
cmp dword [ebp - 0x48], ebx
je 0x403885
cmp dword [ebp - 0x3c], ebx
je 0x4039dc
call fcn.00403d0d
mov ecx, eax
call fcn.004018ad
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
mov esi, 0xff
mov dword [ebp - 0x30], eax
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push ebx
push eax
push 2
call edi
cmp eax, ebx
je 0x403928
cmp eax, 1
je 0x403920
cmp eax, 2
jne 0x403908
push 1
push ebx
push ebx
lea eax, [ebp - 0x90]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40390b
cmp dword [ebp - 0x8c], 0x16
jne 0x4038ec
cmp dword [ebp - 0x88], ebx
je 0x4038ec
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40390b
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x4039dc
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push ebx
push eax
push 2
jmp 0x4038b2
mov dword [ebp - 4], ebx
jmp 0x4039dc
cmp dword [ebp - 0x38], ebx
je 0x40393b
lea ecx, [ebp - 0xc0]
call fcn.00401411
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0xc], ebx
je 0x40394e
lea ecx, [ebp - 0xa8]
call fcn.00401411
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], ebx
je 0x4039ce
lea eax, [ebp - 0x64]
lea ecx, [ebp + 0x13]
push eax
call fcn.004016c5
mov eax, dword [eax]
push 6
lea ecx, [ebp - 0x134]
push 0x64
push ecx
push 0x40a584
push eax
call fcn.00402455
add esp, 0x14
cmp byte [ebp - 0x60], bl
mov esi, eax
je 0x40398a
push dword [ebp - 0x64]
call fcn.00401cfc
pop ecx
cmp esi, ebx
je 0x4039af
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00403d0d
mov ecx, eax
call fcn.00401ae8
cmp dword [ebp - 0x24], ebx
jne 0x4039bb
call fcn.0040416d
jmp 0x4039ce
cmp dword [ebp - 0x24], 3
je 0x4039ce
push dword [ebp - 0x6c]
push dword [ebp - 0x4c]
call fcn.0040439c
pop ecx
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x4039dc
push dword [ebp - 0x4c]
call fcn.0040497c
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], ebx
je 0x4039f4
cmp dword [ebp - 0x3c], ebx
jne 0x4039fd
cmp dword [ebp - 0x48], ebx
je 0x4039fd
cmp dword [ebp - 0x24], 3
jne 0x4039fd
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x403c6a
push 1
pop edi
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004032dd
test eax, eax
jne 0x403c4a
cmp dword [ebp - 0x2c], ebx
jne 0x403a33
cmp dword [ebp - 0x38], ebx
je 0x403a33
lea ecx, [ebp - 0xc0]
call fcn.00401411
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], ebx
jne 0x403a4b
cmp dword [ebp - 0xc], ebx
je 0x403a4b
lea ecx, [ebp - 0xa8]
call fcn.00401411
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x38], ebx
je 0x403a84
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a84
push edi
push dword [ebp - 0x58]
push 4
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x403a84
mov esi, edi
cmp dword [ebp - 0xc], ebx
je 0x403abd
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403abd
push edi
push dword [ebp - 0x5c]
push 4
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x403abd
mov esi, edi
cmp esi, ebx
je 0x403c1a
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp + 0x10], ebx
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0xd0]
push ebx
push eax
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
jne 0x403b2a
push dword [ebp - 0x58]
mov dword [ebp + 0x10], edi
call esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
je 0x403bfd
push edi
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push 2
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x4c]
push dword [ebp - 0x24]
call fcn.00404c24
add esp, 0x1c
mov dword [ebp - 4], eax
jmp 0x403bfd
cmp eax, edi
jne 0x403b8e
push dword [ebp - 0x5c]
mov dword [ebp + 0x10], edi
call esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
je 0x403bfd
push ebx
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push 2
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x4c]
push dword [ebp - 0x24]
call fcn.00404c24
add esp, 0x1c
cmp dword [ebp - 0x74], ebx
mov dword [ebp - 4], eax
je 0x403bfd
call fcn.004048e5
test eax, eax
je 0x403b89
call fcn.00404908
test eax, eax
jne 0x403b89
mov dword [ebp - 0xc], ebx
jmp 0x403bfd
mov dword [ebp - 0xc], edi
jmp 0x403bfd
cmp eax, 2
je 0x403c17
push 3
pop ecx
cmp eax, ecx
jne 0x403ba3
cmp dword [ebp - 0x44], ecx
jg 0x403c0c
cmp dword [ebp - 0x44], eax
jne 0x403bfa
mov dword [ebp - 4], edi
push edi
push ebx
push ebx
lea eax, [ebp - 0x90]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403ace
cmp dword [ebp - 0x8c], 0x12
je 0x403c17
cmp dword [ebp - 0x8c], 0x16
jne 0x403bde
cmp dword [ebp - 0x88], ebx
jne 0x403c17
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x403bab
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x403c1a
cmp dword [ebp + 0x10], ebx
jne 0x403c1a
jmp 0x403ace
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x44], ecx
jmp 0x403c1a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x403c2e
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x403c3f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 4], ebx
jne 0x403a09
jmp 0x403c6a
cmp dword [ebp - 0x2c], ebx
je 0x403c5a
lea ecx, [ebp - 0xc0]
call fcn.00401481
cmp dword [ebp - 0x28], ebx
je 0x403c6a
lea ecx, [ebp - 0xa8]
call fcn.00401481
lea ecx, [ebp - 0xa8]
call fcn.0040126f
lea ecx, [ebp - 0xa4]
call fcn.00404f80
lea ecx, [ebp - 0xc0]
call fcn.0040126f
lea ecx, [ebp - 0xbc]
call fcn.00404f80
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x3c], ebx
mov edi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
je 0x403cb1
push dword [ebp - 0x3c]
call edi
cmp dword [ebp - 0x40], ebx
je 0x403cbb
push dword [ebp - 0x40]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x403cda
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403cd1
call eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x58]
call esi
jmp 0x403ce7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x50]
call esi
call fcn.00403fa2
call fcn.0040413f
jmp 0x403d04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10