Function at 0x407219
Capabilities:
Get http document via iwebbrowser2

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x107c
call fcn.00408c70
mov eax, dword [0x40a130]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
movzx eax, cx
lea edi, [esp + 0x70]
mov dword [esp + 0x3c], eax
movzx eax, word [ebp + 0x18]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, eax
mov dword [esp + 0xc], eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x38], dl
movsd dword es:[edi], dword [esi]
mov edi, eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp dword [0x40cf3c], ebx
jne 0x4072b6
call fcn.0040633e
test eax, eax
jne 0x4075ff
lea eax, [esp + 0x70]
mov edx, 0x400
push eax
lea ecx, [esp + 0x884]
call fcn.00405fa8
push 0x403690
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4037d0
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4028c4
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x403828
mov dword [esp + 0x30], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [0x40cf3c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
push 0
mov esi, dword [ecx]
push 0x20001
push edi
push ecx
mov ecx, dword [esi + 0x30]
call dword [0x40e1a4]
call dword [esi + 0x30]
push edi
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x4075fb
mov dword [esp + 0x24], 1
xor edi, edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
push ecx
mov esi, dword [eax]
push 1
push 0x1388
push eax
mov ecx, dword [esi + 0x10]
call dword [0x40e1a4]
call dword [esi + 0x10]
test eax, eax
jne 0x40759e
cmp dword [esp + 0x24], 1
jne 0x4075a9
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push edi
push edi
push ecx
mov esi, dword [eax]
push edi
push ebx
push eax
mov ecx, dword [esi + 0x10]
call dword [0x40e1a4]
call dword [esi + 0x10]
test eax, eax
jne 0x40759e
push dword [esp + 0x58]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [0x40cf3c]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
mov esi, dword [ecx]
push 0x20001
push edi
push ecx
mov ecx, dword [esi + 0x30]
call dword [0x40e1a4]
call dword [esi + 0x30]
push edi
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
test esi, esi
jne 0x40759a
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
push ecx
mov esi, dword [eax]
push 1
push 0x1388
push eax
mov ecx, dword [esi + 0x10]
call dword [0x40e1a4]
call dword [esi + 0x10]
test eax, eax
jne 0x407577
cmp dword [esp + 0x20], 1
jne 0x407582
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push edi
push edi
push ecx
mov esi, dword [eax]
push edi
push ebx
push eax
mov ecx, dword [esi + 0x10]
call dword [0x40e1a4]
call dword [esi + 0x10]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jne 0x407577
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40747c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x40e1a4]
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x60]
push edi
push ecx
push edi
mov esi, dword [eax]
push dword [esp + 0x38]
push eax
mov ecx, dword [esi + 0xc]
call dword [0x40e1a4]
call dword [esi + 0xc]
test eax, eax
jne 0x407577
push dword [esp + 0x68]
mov esi, 0x400
lea ecx, [esp + 0x84]
mov edx, esi
call fcn.00404080
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x80]
push 0x403844
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40750d
lea eax, [esp + 0x80]
push eax
push 0x403848
push esi
push eax
call fcn.00404110
add esp, 0x10
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x884]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x407577
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push edi
push ecx
push edi
mov esi, dword [eax]
push dword [esp + 0x3c]
push eax
mov ecx, dword [esi + 0xc]
call dword [0x40e1a4]
call dword [esi + 0xc]
test eax, eax
jne 0x4075f3
push 2
push edi
lea eax, [esp + 0x48]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
movzx esi, word [esp + 0x48]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x3c]
cmp ax, si
je 0x4075cc
cmp dword [esp + 0x20], 1
je 0x4073f4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40759e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
mov dword [esp + 0xc], edi
cmp dword [esp + 0x24], 1
je 0x407341
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4075ff
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
and dword [esp + 0x14], 0
jmp 0x4075ff
sub esp, 0x10
mov edx, eax
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x80]
mov edi, esp
push dword [esp + 0x44]
push dword [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00406871
mov edi, eax
jmp 0x4075ad
sub esp, 0x10
or edx, 0xffffffff
jmp 0x4075d1
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [esp + 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40764d
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
and dword [esp + 0x14], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40766a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
and dword [esp + 0xc], 0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x407682
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
mov ecx, dword [esp + 0x1084]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004083b0
mov esp, ebp
pop ebp
ret 0x14