Function at 0x4902a4
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, 0xfffffa5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x590], ebx
mov dword [ebp - 0x58c], ebx
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0x584], ebx
mov dword [ebp - 0x580], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x49073e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 0
jne 0x49031d
lea eax, [ebp - 0x580]
call fcn.0048ff58
mov edx, dword [ebp - 0x580]
mov eax, dword [ebp - 0x10]
add eax, 0x48
call fcn.004051c4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x48]
lea eax, [ebp - 0xc]
mov edx, 0x490758
call fcn.00405488
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004900f8
xor ebx, ebx
push 0
push 0x4907a4
push 0x4907a4
push 0
push 0x4907a4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x1c], eax
push 0
push ebx
push 0
push 0
push 0x4907a8
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
mov eax, dword [0x49e484]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x49070c
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
push 0x49e480
push 2
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
push 0x49e480
push 8
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetSetOptionA
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4903ec
sub ebx, 4
mov ebx, dword [ebx]
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
call fcn.00405600
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
lea eax, [ebp - 0x57c]
xor ecx, ecx
mov edx, 0x400
call fcn.00403988
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x57c]
push eax
push 0x13
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x28], 0
jbe 0x490469
lea eax, [ebp - 0x584]
lea edx, [ebp - 0x57c]
mov ecx, 0x400
call fcn.004053e0
mov eax, dword [ebp - 0x584]
mov edx, 0x4907bc
call fcn.00405598
je 0x490495
lea eax, [ebp - 0x588]
lea edx, [ebp - 0x57c]
mov ecx, 0x400
call fcn.004053e0
mov eax, dword [ebp - 0x588]
mov edx, 0x4907c8
call fcn.00405598
je 0x490495
xor eax, eax
jmp 0x490497
mov al, 1
test al, al
je 0x4906e3
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
lea eax, [ebp - 0x57c]
xor ecx, ecx
mov edx, 0x400
call fcn.00403988
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x57c]
push eax
push 5
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x58c]
lea edx, [ebp - 0x57c]
mov ecx, 0x400
call fcn.004053e0
mov eax, dword [ebp - 0x58c]
xor edx, edx
call fcn.00409f5c
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x4c], edx
lea edx, [ebp - 0x590]
mov eax, esi
call fcn.0040a568
mov eax, dword [ebp - 0x590]
call fcn.0040a338
test al, al
jne 0x49053c
lea edx, [ebp - 0x594]
mov eax, esi
call fcn.0040a568
mov eax, dword [ebp - 0x594]
call fcn.0040a35c
xor eax, eax
push ebp
push 0x4906a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
lea eax, [ebp - 0x17c]
call fcn.004036ac
xor eax, eax
push ebp
push 0x49068f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
lea eax, [ebp - 0x17c]
call fcn.00403b2c
call fcn.00403084
xor eax, eax
push ebp
push 0x490662
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
push eax
push 0x400
lea eax, [ebp - 0x57c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4905ab
cmp dword [ebp - 0x30], 0
jne 0x4905b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x490671
push 0
lea edx, [ebp - 0x57c]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x17c]
call fcn.00403800
call fcn.00403084
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
add dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x10]
cmp word [eax + 0x5a], 0
je 0x49062d
mov eax, dword [ebp - 0x10]
imul eax, dword [eax + 0x4c], 0x64
mov dword [ebp - 0x59c], eax
xor eax, eax
mov dword [ebp - 0x598], eax
fild qword [ebp - 0x59c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x5a4], eax
xor eax, eax
mov dword [ebp - 0x5a0], eax
fild qword [ebp - 0x5a4]
fdivp st(1)
add esp, 0xfffffffc
fstp dword [esp]
wait
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x490655
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404bb0
jmp 0x490713
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49057a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490696
lea eax, [ebp - 0x17c]
call fcn.00403820
call fcn.00403084
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490713
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490745
lea eax, [ebp - 0x594]
mov edx, 6
call fcn.00405194
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405194
ret