Function at 0x46c950
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58d348
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov ebx, 1
test byte [ebp + 0x18], bl
je 0x46cabb
mov eax, ecx
sub eax, 0x2fe2
je 0x46ca61
sub eax, 2
je 0x46ca04
sub eax, ebx
jne 0x46cabb
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
test eax, eax
je 0x46c9df
mov ecx, dword [esi + 0x20]
push 0
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x467
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DISPID_USER_WebErr_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 0x80020003
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
test eax, eax
je 0x46ca3c
mov ecx, dword [esi + 0x20]
push 0
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x466
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DISPID_USER_WebClose_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 0x80020003
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 8]
cmp dword [esi + 0x24], 0
mov byte [esi + 0x84], bl
je 0x46ca96
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
test eax, eax
je 0x46ca96
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x465
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.DISPID_USER_WebFinished_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 0x80020003
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp ecx, 0x10f
jg 0x46cbff
je 0x46cbd5
cmp ecx, 0xffffea78
je 0x46cbbe
cmp ecx, 0xfc
jne 0x46cc07
mov edx, dword [0x5f0b6c]
test edx, edx
jne 0x46caf4
call fcn.0046e010
mov eax, dword [0x5f0b6c]
call fcn.004725b0
mov ecx, 3
mov word [esp + 0x1c], cx
mov dword [esp + 0x24], eax
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov esi, dword [ebp + 8]
mov byte [esp + 0x38], bl
mov eax, dword [esi + 0x70]
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x20]
push edx
push edi
push 0x3f
push eax
mov eax, dword [ecx + 0xd8]
call eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x46cb9d
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push 0x58f9dc
push eax
mov eax, dword [ecx]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x46cb89
lea ecx, [esi - 4]
test ecx, ecx
je 0x46cb7a
lea ecx, [esi + 0xc]
jmp 0x46cb7c
xor ecx, ecx
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x38], bl
cmp eax, edi
je 0x46cb99
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x38], 0
cmp eax, edi
je 0x46cbae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x46cc7b
mov eax, dword [ebp + 0x20]
mov ecx, 3
mov word [eax], cx
mov dword [eax + 8], 0x70
jmp 0x46cc7b
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x46cc7b
cmp dword [eax + 8], 0x800c0005
jne 0x46cc7b
push str.DISPID_NAVIGATEERROR_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46cc7b
cmp ecx, 0x111
je 0x46cc21
mov eax, 0x80020003
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 8]
cmp dword [esi + 0x24], 0
je 0x46cc52
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
test eax, eax
je 0x46cc58
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x468
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46cc58
add dword [esi + 0x80], ebx
mov ecx, dword [esi + 0x7c]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push esi
mov esi, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x28]
push esi
lea esi, [eax + 0x38]
mov eax, dword [eax + 0x48]
push esi
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24