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

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x517ad4]
xor eax, ebp
xor ecx, ecx
cmp dword [ebx + 0x74], ecx
push esi
mov dword [ebp + 0x798], eax
push edi
je 0x4cb4ea
cmp dword [ebx + 0x80], ecx
je 0x4cb4ea
mov esi, dword [0x51b438]
mov eax, dword [ebx + 0x40]
cmp eax, ecx
mov edi, esi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
je 0x4cb2d7
push dword [eax + 0x10]
lea eax, [ebp - 0x6c]
call fcn.0040315f
mov eax, dword [ebx + 0x40]
push dword [eax + 0x14]
lea eax, [ebp - 0x70]
call fcn.0040315f
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000013
push dword [ebx + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4cb30c
add esi, 0xfffffff4
cmp esi, dword [0x51b43c]
je 0x4cb304
push esi
call fcn.004013b2
lea eax, [edi - 0xc]
jmp 0x4cb4dc
mov eax, dword [ebp - 0x74]
cmp eax, 0x197
jne 0x4cb350
cmp dword [ebx + 0xa0], 0
jne 0x4cb3c5
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4cb33f
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x6c]
push 0x2b
push dword [ebx + 0x74]
call edi
mov eax, dword [esi - 8]
test eax, eax
je 0x4cb390
lea eax, [eax + eax + 2]
push eax
push esi
push 0x2c
jmp 0x4cb38b
cmp eax, 0x191
jne 0x4cb3c5
cmp dword [ebx + 0xa0], 0
jne 0x4cb3c5
mov eax, dword [edi - 8]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4cb37c
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x6c]
push 0x1c
push dword [ebx + 0x74]
call edi
mov eax, dword [esi - 8]
test eax, eax
je 0x4cb390
lea eax, [eax + eax + 2]
push eax
push esi
push 0x1d
push dword [ebx + 0x74]
call edi
xor edi, edi
inc edi
add esi, 0xfffffff4
cmp esi, dword [0x51b43c]
mov dword [ebx + 0xa0], edi
je 0x4cb3aa
push esi
call fcn.004013b2
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb3be
push eax
call fcn.004013b2
mov eax, edi
jmp 0x4cb4ec
cmp eax, 0x190
mov dword [ebx + 0x34], eax
jae 0x4cb2f3
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000005
push dword [ebx + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4cb2f3
mov eax, dword [ebp - 0x74]
and word [ebp - 0x68], 0
mov dword [ebx + 0x38], eax
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x66]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebx + 0x74]
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4cb434
lea eax, [esi - 0xc]
jmp 0x4cb4c8
lea eax, [ebp - 0x68]
push eax
lea edi, [ebp - 0x7c]
call fcn.00403098
lea esi, [ebx + 0x3c]
call fcn.004107a6
mov edi, eax
mov eax, esi
call fcn.0040311c
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb465
push eax
call fcn.004013b2
push 0x504320
xor ecx, ecx
call fcn.004107c0
test eax, eax
jge 0x4cb4c2
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4cb4b8
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x38]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb49f
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb4b3
push eax
call fcn.004013b2
push 2
pop eax
jmp 0x4cb4ec
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x38]
cmp ecx, eax
je 0x4cb48b
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb4d6
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4cb4ea
push eax
call fcn.004013b2
xor eax, eax
mov ecx, dword [ebp + 0x798]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd70
add ebp, 0x79c
leave
ret