Function at 0x5f98f0
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 [0x6161c8], 0
mov eax, dword [ebp + 8]
call fcn.00409d28
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x5f9b3c
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.0040a7d4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [0x6161c0], eax
xor eax, eax
mov dword [0x6161c4], 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 0x6161c0
push 0x20000005
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoW
xor eax, eax
push ebp
push 0x5f99b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4000
call fcn.00406e7c
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f99c1
xor eax, eax
push ebp
push 0x5f9a64
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5f99dd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
jmp 0x5f9a02
cmp dword [ebp - 4], 0
je 0x5f9a02
mov eax, dword [ebp - 4]
call fcn.004255f8
push 0xff00
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x445914]
call fcn.004695c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5f9a5a
cmp byte [0x6161c8], 0
jne 0x5f9a5a
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 0x5f9a5a
cmp dword [ebp - 0x18], 0
jbe 0x5f9a3f
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 [0x6161c4], eax
mov eax, dword [0x60f05c]
mov eax, dword [eax]
call fcn.005ed35c
cmp dword [ebp - 0x18], 0
ja 0x5f9a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f9a6e
xor eax, eax
push ebp
push 0x5f9a8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00406e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f9a98
xor eax, eax
mov dword [0x6161c4], eax
xor eax, eax
push ebp
push 0x5f9ad7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x20], 0
je 0x5f9acd
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov dword [0x6161c4], eax
cmp dword [ebp - 8], 0
jne 0x5f9acd
mov eax, dword [ebp - 0x20]
call fcn.00407ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f9ae1
cmp dword [0x6161c4], 0
jne 0x5f9afa
cmp dword [ebp - 4], 0
je 0x5f9b1e
mov eax, dword [ebp - 4]
call fcn.004255f8
jmp 0x5f9b1e
cmp dword [ebp - 8], 0
je 0x5f9b13
mov eax, dword [0x6161c4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.004249fc
jmp 0x5f9b1e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.0040a108
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