Function at 0x4287b0
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x44dcf8]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x74], ecx
mov dword [ebp + 0x794], eax
push edi
je 0x428a44
cmp dword [esi + 0x80], ecx
je 0x428a44
mov ebx, dword [0x452170]
mov eax, dword [esi + 0x40]
cmp eax, ecx
mov edi, ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], 4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
je 0x428823
push dword [eax + 0x10]
lea ecx, [ebp - 0x70]
call fcn.00401bea
mov eax, dword [esi + 0x40]
push dword [eax + 0x14]
lea ecx, [ebp - 0x74]
call fcn.00401bea
mov ebx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x20000013
push dword [esi + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x428859
add ebx, 0xfffffff4
cmp ebx, dword [0x452174]
je 0x428851
mov ecx, ebx
call fcn.004013ad
lea ecx, [edi - 0xc]
jmp 0x428a37
mov eax, dword [ebp - 0x78]
cmp eax, 0x197
jne 0x4288b8
cmp dword [esi + 0xa0], 0
jne 0x42892b
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x42888c
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x70]
push 0x2b
push dword [esi + 0x74]
call edi
mov eax, dword [ebx - 8]
test eax, eax
je 0x4288a0
lea eax, [eax + eax + 2]
push eax
push ebx
push 0x2c
push dword [esi + 0x74]
call edi
xor edi, edi
inc edi
add ebx, 0xfffffff4
mov dword [esi + 0xa0], edi
cmp ebx, dword [0x452174]
je 0x428911
mov ecx, ebx
jmp 0x42890c
cmp eax, 0x191
jne 0x42892b
cmp dword [esi + 0xa0], 0
jne 0x42892b
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4288e4
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x70]
push 0x1c
push dword [esi + 0x74]
call edi
mov eax, dword [ebx - 8]
test eax, eax
je 0x4288f8
lea eax, [eax + eax + 2]
push eax
push ebx
push 0x1d
push dword [esi + 0x74]
call edi
xor edi, edi
inc edi
lea ecx, [ebx - 0xc]
mov dword [esi + 0xa0], edi
cmp ecx, dword [0x452174]
je 0x428911
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x428924
call fcn.004013ad
mov eax, edi
jmp 0x428a46
cmp eax, 0x190
mov dword [esi + 0x34], eax
jae 0x42883f
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x20000005
push dword [esi + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42883f
mov eax, dword [ebp - 0x78]
and word [ebp - 0x6c], 0
mov dword [esi + 0x38], eax
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x6a]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
push dword [esi + 0x74]
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x428a21
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
lea edi, [esi + 0x3c]
call fcn.00401b2d
mov ecx, eax
call fcn.00401d11
push eax
mov ecx, edi
call fcn.00401b9b
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4289c7
call fcn.004013ad
push 0
push 0x4420d0
mov ecx, edi
call fcn.00401d2a
test eax, eax
jge 0x428a21
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x428a17
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x38]
mov dword [eax + 0x1c], ecx
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x452174]
je 0x4289ff
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x428a12
call fcn.004013ad
push 2
pop eax
jmp 0x428a46
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x38]
cmp ecx, eax
je 0x4289ef
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x452174]
je 0x428a31
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x428a44
call fcn.004013ad
xor eax, eax
mov ecx, dword [ebp + 0x794]
pop edi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0x798
leave
ret