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

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x44ecf8]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x74], ecx
mov dword [ebp + 0x794], eax
push edi
je 0x428cb6
cmp dword [esi + 0x80], ecx
je 0x428cb6
mov ebx, dword [0x453170]
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 0x428a95
push dword [eax + 0x10]
lea ecx, [ebp - 0x70]
call fcn.00401bc2
mov eax, dword [esi + 0x40]
push dword [eax + 0x14]
lea ecx, [ebp - 0x74]
call fcn.00401bc2
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 0x428acb
add ebx, 0xfffffff4
cmp ebx, dword [0x453174]
je 0x428ac3
mov ecx, ebx
call fcn.004013ad
lea ecx, [edi - 0xc]
jmp 0x428ca9
mov eax, dword [ebp - 0x78]
cmp eax, 0x197
jne 0x428b2a
cmp dword [esi + 0xa0], 0
jne 0x428b9d
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x428afe
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 0x428b12
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 [0x453174]
je 0x428b83
mov ecx, ebx
jmp 0x428b7e
cmp eax, 0x191
jne 0x428b9d
cmp dword [esi + 0xa0], 0
jne 0x428b9d
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x428b56
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 0x428b6a
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 [0x453174]
je 0x428b83
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x428b96
call fcn.004013ad
mov eax, edi
jmp 0x428cb8
cmp eax, 0x190
mov dword [esi + 0x34], eax
jae 0x428ab1
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 0x428ab1
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 0x428c93
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
lea edi, [esi + 0x3c]
call fcn.00401af2
mov ecx, eax
call fcn.00401ce9
push eax
mov ecx, edi
call fcn.00401b73
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x428c39
call fcn.004013ad
push 0
push 0x4430d0
mov ecx, edi
call fcn.00401d02
test eax, eax
jge 0x428c93
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x428c89
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x38]
mov dword [eax + 0x1c], ecx
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x453174]
je 0x428c71
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x428c84
call fcn.004013ad
push 2
pop eax
jmp 0x428cb8
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x38]
cmp ecx, eax
je 0x428c61
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x453174]
je 0x428ca3
call fcn.004013ad
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x428cb6
call fcn.004013ad
xor eax, eax
mov ecx, dword [ebp + 0x794]
pop edi
pop esi
pop ebx
call fcn.0042dc80
add ebp, 0x798
leave
ret