Function at 0x5fa4b4
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffd58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x12a8], ebx
mov dword [ebp - 0x127c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5fa886
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 4]
mov edx, 0x5fa8a8
call fcn.0040af08
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b774
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5fa831
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.0040b774
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5fa81a
xor eax, eax
push ebp
push 0x5fa813
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
call sub.wininet.dll_DeleteUrlCacheEntryW
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1278]
call fcn.00407480
call fcn.004068d8
mov edx, 1
lea eax, [ebp - 0x1278]
call fcn.00408368
call fcn.004068d8
lea eax, [ebp - 0x1c]
push eax
push 0x1000
lea eax, [ebp - 0x1028]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x1028]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1278]
call fcn.00407694
call fcn.004068d8
test bl, bl
je 0x5fa7de
mov eax, dword [ebp - 0x1c]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 8]
push eax
push 0x5fa398
mov eax, dword [ebp - 8]
call fcn.004c5cb8
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x60]
adc edx, dword [ecx + 0x64]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x60]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x64]
mov dword [eax + 0x44], ecx
mov eax, dword [ebp - 8]
push eax
push 0x5fa3b0
mov eax, dword [ebp - 8]
call fcn.004c5cb8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
jne 0x5fa65a
cmp dword [eax + 0x60], 0x3b9aca00
jb 0x5fa719
jmp 0x5fa660
jl 0x5fa719
lea eax, [ebp - 0x127c]
push eax
push 0
push 0x3b9aca00
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
call fcn.0040c63c
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x1298], edx
lea eax, [ebp - 0x129c]
mov dword [ebp - 0x1294], eax
mov byte [ebp - 0x1290], 0x10
push 0
push 0x989680
push 0
push 0x3b9aca00
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
call fcn.0040c71c
call fcn.0040c63c
mov dword [ebp - 0x12a4], eax
mov dword [ebp - 0x12a0], edx
lea eax, [ebp - 0x12a4]
mov dword [ebp - 0x128c], eax
mov byte [ebp - 0x1288], 0x10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x1284], eax
mov byte [ebp - 0x1280], 0x11
lea edx, [ebp - 0x1294]
mov ecx, 2
mov eax, 0x5fa8d4
call fcn.00424428
mov edx, dword [ebp - 0x127c]
mov eax, dword [ebp - 8]
add eax, 0x48
call fcn.0040aec0
jmp 0x5fa7cd
lea eax, [ebp - 0x12a8]
push eax
push 0
push 0xf4240
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
call fcn.0040c63c
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x1298], edx
lea eax, [ebp - 0x129c]
mov dword [ebp - 0x1294], eax
mov byte [ebp - 0x1290], 0x10
push 0
push 0x2710
push 0
push 0xf4240
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
call fcn.0040c71c
call fcn.0040c63c
mov dword [ebp - 0x12a4], eax
mov dword [ebp - 0x12a0], edx
lea eax, [ebp - 0x12a4]
mov dword [ebp - 0x128c], eax
mov byte [ebp - 0x1288], 0x10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x1284], eax
mov byte [ebp - 0x1280], 0x11
lea edx, [ebp - 0x1294]
mov ecx, 2
mov eax, 0x5fa8fc
call fcn.00424428
mov edx, dword [ebp - 0x12a8]
mov eax, dword [ebp - 8]
add eax, 0x48
call fcn.0040aec0
mov eax, dword [ebp - 8]
push eax
push 0x5fa314
mov eax, dword [ebp - 8]
call fcn.004c5cb8
cmp dword [ebp - 0x1c], 0
jne 0x5fa59b
lea eax, [ebp - 0x1278]
call fcn.004076b4
call fcn.004068d8
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fa81a
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fa838
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret