Function at 0x4a7d6c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x4a7fe0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebx + 8]
lea edx, [ebx + 4]
mov eax, dword [ebp - 4]
call fcn.004a7b38
mov edx, dword [ebx + 8]
mov eax, 0x4a7ff8
call fcn.00405150
mov edi, eax
test edi, edi
jne 0x4a7dd6
lea eax, [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00404bfc
jmp 0x4a7dfe
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebx + 8]
call fcn.0040506c
lea eax, [ebp - 0xc]
push eax
lea edx, [edi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebx + 8]
call fcn.0040506c
cmp dword [ebx + 0x1c], 0
je 0x4a7e1f
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x1c]
call fcn.00405004
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
jmp 0x4a7e31
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
mov eax, dword [ebx + 0x14]
call fcn.00405004
push eax
mov eax, dword [ebx + 0x10]
call fcn.00405004
push eax
movzx eax, word [ebx + 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00405004
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x4a7e70
mov edi, 0x4a7ffc
jmp 0x4a7e75
mov edi, 0x4a8000
cmp byte [ebx + 0xe], 0
je 0x4a7e82
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4a7e89
mov dword [ebp - 0x1c], 0x80000000
push 2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4a7d48]
call fcn.004060e0
add esp, 4
mov eax, dword [ebx + 0x18]
call fcn.00405004
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 4], edx
cmp byte [ebp + 8], 0
je 0x4a7ef9
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x20]
call fcn.00405004
push eax
push 0x4a8008
mov eax, dword [ebx + 8]
call fcn.00405004
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov ebx, eax
push 0
push 0
push 0
push 0
push ebx
call sub.wininet.dll_HttpSendRequestA
jmp 0x4a7f58
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x20]
call fcn.00405004
push eax
push 0x4a8008
mov eax, dword [ebp - 8]
call fcn.00405004
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov ebx, eax
push 0xa0000000
push 0x2f
push 0x4a8014
push ebx
call sub.wininet.dll_HttpAddRequestHeadersA
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4a7f44
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 0xc]
call fcn.00405004
push eax
push 0
push 0
push ebx
call sub.wininet.dll_HttpSendRequestA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1024]
push eax
push 5
push ebx
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x24]
push eax
push 0x1000
lea eax, [ebp - 0x1024]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4a7f9f
lea edx, [ebp - 0x1024]
mov ecx, dword [ebp - 0x24]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
cmp dword [ebp - 0x24], 0
jne 0x4a7f6f
push ebx
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7fe7
lea eax, [ebp - 0x10]
mov edx, dword [0x4a7d48]
call fcn.004060ec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b88
ret