Function at 0x488814
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0x574], ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x488a80
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x574]
mov ecx, ebx
mov edx, 0x488a9c
call fcn.00404c7c
mov eax, dword [ebp - 0x574]
call fcn.0047d668
push 0
push 0
mov eax, dword [0x4dab90]
push eax
xor eax, eax
mov al, byte [0x4dab8c]
push eax
push 0x488ab0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x488a5a
xor eax, eax
push ebp
push 0x488a53
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80000000
push 0
push 0
mov eax, ebx
call fcn.00404e30
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov ebx, 0x13
lea eax, [ebp - 0x24]
call fcn.00404970
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x4888fd
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x10]
call fcn.00404b68
mov eax, dword [ebp - 0x24]
mov edx, 0x488aec
call fcn.00404d7c
jne 0x488918
mov dword [ebp - 4], 0xffffffff
jmp 0x488a3c
mov eax, dword [ebp - 0x24]
mov edx, 0x488af8
call fcn.00404d7c
je 0x488931
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x488a3c
cmp dword [ebp - 0xc], 0
je 0x488a3c
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x578]
mov ecx, edi
mov edx, 0x488b04
call fcn.00404c7c
mov eax, dword [ebp - 0x578]
call fcn.0047d668
mov edx, edi
lea eax, [ebp - 0x570]
call fcn.00402f20
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x488a23
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
lea eax, [ebp - 0x570]
call fcn.0040332c
call fcn.00402928
test esi, esi
jbe 0x4889c0
mov eax, esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x400
jae 0x4889c0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
and eax, 0x3ff
push eax
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
jmp 0x4889d9
lea eax, [ebp - 0x1c]
push eax
push 0x400
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x424]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x570]
call fcn.0040307c
call fcn.00402928
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x488a09
test esi, esi
jbe 0x488992
cmp esi, dword [ebp - 0x20]
ja 0x488992
lea eax, [ebp - 0x570]
call fcn.0040309c
call fcn.00402928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488a2d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488a5a
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488a87
lea eax, [ebp - 0x578]
mov edx, 2
call fcn.00404994
lea eax, [ebp - 0x24]
call fcn.00404970
ret