Function at 0x40c520
Capabilities:
Get http document via iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40f38e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x415028]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x40c85b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x98], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40c631
xor esi, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x98], 1
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
push esi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp ebx, esi
jl 0x40c844
cmp eax, esi
je 0x40c844
mov dword [esp + 0x18], esi
lea edx, [esp + 0x18]
mov byte [esp + 0x98], 2
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, esi
jge 0x40c650
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40c605
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40c61d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x1c]
jmp 0x40c84f
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, ebx
jne 0x40c57b
mov eax, 0x8007000e
call fcn.004060a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, esi
jl 0x40c5ed
cmp dword [esp + 0x20], esi
je 0x40c67b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040bda0
mov dword [esp + 0x24], esi
lea esi, [esp + 0x7c]
mov byte [esp + 0x98], 4
call fcn.0040ce40
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call esi
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call esi
mov byte [esp + 0x98], 7
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
lea esi, [esp + 0x28]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
call fcn.0040cec0
mov byte [esp + 0x98], 8
mov edx, dword [eax]
mov ecx, dword [edi + 0xc]
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov edi, dword [esp + 0x68]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x6c]
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x40]
mov esi, dword [ecx]
push 3
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x64]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x78]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x80]
push 6
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x54]
push eax
push edx
push ecx
mov ecx, dword [esi + 0x44]
call ecx
mov edx, dword [esp + 0x28]
push edx
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x6c]
push ecx
call esi
lea edx, [esp + 0x7c]
push edx
call esi
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c7df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c7f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c80f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c82a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x98], 0xffffffff
cmp eax, esi
je 0x40c85b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8