Function at 0x401060
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
je 0x401319
cmp byte [eax], 0
je 0x401319
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
call ebp
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
call fcn.004033fd
test al, al
je 0x401315
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 2
lea edx, [eax + eax]
push edx
mov dword [esp + 0x20], eax
call fcn.00401000
add esp, 4
mov dword [esp + 0x18], eax
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push eax
push ecx
push 0xffffffffffffffff
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [esp + 0x14]
push eax
push 0x4062f4
push 5
push 0
push 0x4062e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4012ec
mov byte [esp + 0x13], 1
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xa4]
mov al, byte [esp + 0x38]
test al, al
jne 0x4011ec
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x110]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xc4]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0xac]
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xbc]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x34], eax
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push edx
push edx
push edx
mov edx, dword [esp + 0x44]
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, byte [esp + 0x38]
test al, al
jne 0x401246
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x94]
mov al, byte [esp + 0x38]
test al, al
je 0x401292
mov edx, dword [esp + 0x1c]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov al, byte [esp + 0x38]
test al, al
jne 0x4012d6
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x1c]
push 0x405178
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
call esi
push 0
call edi
call ebp
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00401014
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x40130f
mov cl, byte [esp + 0x13]
test cl, cl
je 0x40130f
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret