Function at 0x5fa44c
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [0x6211c8], 0
mov eax, dword [ebp + 8]
call fcn.00409d80
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x5fa698
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0x7d0
push 4
lea eax, [ebp - 0x24]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
call fcn.0040a82c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [0x6211c0], eax
xor eax, eax
mov dword [0x6211c4], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x6211c0
push 0x20000005
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoW
xor eax, eax
push ebp
push 0x5fa513
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4000
call fcn.00406e90
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fa51d
xor eax, eax
push ebp
push 0x5fa5c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5fa539
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
jmp 0x5fa55e
cmp dword [ebp - 4], 0
je 0x5fa55e
mov eax, dword [ebp - 4]
call fcn.00425700
push 0xff00
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x445fe8]
call fcn.004698e4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5fa5b6
cmp byte [0x6211c8], 0
jne 0x5fa5b6
lea eax, [ebp - 0x18]
push eax
push 0x4000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x5fa5b6
cmp dword [ebp - 0x18], 0
jbe 0x5fa59b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x18]
add dword [0x6211c4], eax
mov eax, dword [0x61a0a0]
mov eax, dword [eax]
call fcn.005edeb8
cmp dword [ebp - 0x18], 0
ja 0x5fa564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fa5ca
xor eax, eax
push ebp
push 0x5fa5ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00406eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fa5f4
xor eax, eax
mov dword [0x6211c4], eax
xor eax, eax
push ebp
push 0x5fa633
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x20], 0
je 0x5fa629
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov dword [0x6211c4], eax
cmp dword [ebp - 8], 0
jne 0x5fa629
mov eax, dword [ebp - 0x20]
call fcn.00407f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fa63d
cmp dword [0x6211c4], 0
jne 0x5fa656
cmp dword [ebp - 4], 0
je 0x5fa67a
mov eax, dword [ebp - 4]
call fcn.00425700
jmp 0x5fa67a
cmp dword [ebp - 8], 0
je 0x5fa66f
mov eax, dword [0x6211c4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00424b04
jmp 0x5fa67a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.0040a160
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc