Function at 0x4077d0
Capabilities:
Get http document via iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4198c0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
xor edi, edi
mov word [eax], di
push edx
xor esi, esi
mov word [ecx], di
call dword [0x41b214]
mov dword [esp + 0x3c], edi
mov ebx, dword [ebp + 8]
add ebx, 8
mov dword [esp + 0x88], edi
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [esp + 0x58], ebx
jne 0x40783b
mov dword [esp + 0x38], edi
jmp 0x407847
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 4
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
jbe 0x407c85
mov dword [esp + 0x34], edi
lea esp, [esp]
mov eax, dword [ebp + 0x14]
cmp word [eax], di
jne 0x407b4e
mov edi, dword [ebx + 4]
test edi, edi
je 0x407b72
mov ecx, dword [ebx + 8]
mov eax, ecx
sub eax, edi
sar eax, 4
cmp eax, dword [esp + 0x30]
jbe 0x407b72
cmp edi, ecx
jbe 0x407895
call dword [0x41b178]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], edi
add edi, ecx
cmp edi, dword [ebx + 8]
ja 0x4078a9
cmp edi, dword [ebx + 4]
jae 0x4078af
call dword [0x41b178]
mov eax, ebx
cmp edi, dword [eax + 8]
jb 0x4078bc
call dword [0x41b178]
push edi
lea edx, [esp + 0x60]
push edx
mov word [esp + 0x64], 0
call dword [0x41b1e4]
xor edi, edi
cmp eax, edi
jl 0x407b77
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x407b1f
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
push 0x41bd3c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, edi
jl 0x407b14
mov dword [esp + 0x2c], edi
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x407943
push eax
call dword [0x41b228]
mov edi, eax
test edi, edi
je 0x407c20
mov ecx, dword [esp + 0x2c]
push 0
push 0x400
push edi
push ecx
call fcn.00418584
cmp eax, 1
push edi
sete bl
call dword [0x41b220]
test bl, bl
je 0x407af9
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov word [edx], 0xffff
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
cmp word [ebp + 0x10], 0xffff
mov esi, eax
jne 0x407af9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
cmp esi, ebx
jl 0x407af9
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push 0x41bd8c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x407aed
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x24], ebx
mov esi, eax
jbe 0x407ae1
jmp 0x407a00
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b214]
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x6c]
push ecx
push edi
push eax
call edx
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0x41bd7c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x407ab6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x74]
call eax
cmp dword [esp + 0x40], 3
mov esi, eax
jne 0x407aaa
mov dword [esp + 0x20], ebx
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x44]
mov esi, eax
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x48], ecx
call fcn.00408a00
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x20]
push eax
call dword [0x41b220]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
call dword [0x41b1e8]
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x8c], 2
call dword [0x41b1e8]
add edi, 1
cmp edi, dword [esp + 0x24]
jb 0x407a00
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call dword [0x41b220]
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
push ecx
call dword [0x41b1e8]
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x8c], 0
call dword [0x41b1e8]
mov eax, dword [esp + 0x30]
add dword [esp + 0x34], 0x10
add eax, 1
xor edi, edi
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
jb 0x407860
mov ebx, dword [esp + 0x3c]
cmp ebx, edi
je 0x407c85
lea eax, [esp + 0x44]
push eax
push 1
push ebx
call dword [0x41b210]
cmp eax, edi
jge 0x407b88
push eax
call fcn.00405f30
call fcn.00409320
push eax
mov word [esp + 0x60], 0xa
mov dword [esp + 0x68], eax
call fcn.00405f30
lea ecx, [esp + 0x58]
push ecx
push 1
push ebx
call dword [0x41b20c]
cmp eax, edi
jge 0x407ba0
push eax
call fcn.00405f30
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x44]
push ebx
add edx, 1
je 0x407c74
call dword [0x41b1fc]
cmp ebx, edi
mov dword [esp + 0x3c], edi
je 0x407c2a
lea eax, [esp + 0x40]
push eax
push ebx
call dword [0x41b204]
cmp eax, edi
jl 0x407c15
cmp dword [esp + 0x40], edi
je 0x407c15
lea ecx, [esp + 0x44]
push ecx
push ebx
call dword [0x41b208]
cmp eax, edi
jl 0x407c04
cmp word [esp + 0x44], 0xd
jne 0x407c04
movzx eax, word [ebx + 2]
test al, 0x40
je 0x407c04
test eax, 0x400
je 0x407c04
mov word [esp + 0x44], 9
mov edx, dword [esp + 0x40]
or word [esp + 0x44], 0x2000
mov dword [esp + 0x4c], edx
jmp 0x407c2f
mov word [esp + 0x44], 0xa
mov dword [esp + 0x4c], eax
push 0x8007000e
call fcn.00405f30
mov word [esp + 0x44], di
mov ebx, dword [ebp + 0x1c]
cmp ebx, edi
mov byte [esp + 0x88], 5
je 0x407c67
push ebx
call dword [0x41b1e8]
test eax, eax
jl 0x407c67
push 0x10
lea eax, [esp + 0x48]
push eax
push 0x10
push ebx
call dword [0x41b160]
push eax
call fcn.00402090
add esp, 0x14
mov word [esp + 0x44], di
lea ecx, [esp + 0x44]
push ecx
call dword [0x41b1e8]
jmp 0x407c85
call dword [0x41b1fc]
test eax, eax
jl 0x407c85
push ebx
call dword [0x41b200]
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18