Function at 0x4876f4
Capabilities:
Connect to http server
Create http request
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
call fcn.00404a60
mov eax, dword [ebp + 0xc]
call fcn.00404a60
mov eax, dword [ebp + 0x10]
call fcn.00404a60
xor eax, eax
push ebp
push 0x487b98
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [ebp + 0x18], 0
jle 0x487750
lea eax, [ebp - 0x40]
mov edx, 0x487bb4
call fcn.00404648
jmp 0x48775d
lea eax, [ebp - 0x40]
mov edx, 0x487bc4
call fcn.00404648
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
call fcn.00487588
push 0
push 0
push 0
push 0
push 0x487bc8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x487b5f
mov dword [ebp - 0x44], 0x1388
push 4
lea eax, [ebp - 0x44]
push eax
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x44]
push eax
push 6
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00404a70
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x487b56
push 0
push 0x84080000
push 0
push 0x487bc8
push 0x487bcc
mov eax, dword [ebp - 0x30]
call fcn.00404a70
push eax
mov eax, dword [ebp - 0x40]
call fcn.00404a70
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x487b4d
lea eax, [ebp - 0x34]
call fcn.004045b0
push dword [ebp - 0x34]
push 0x487be0
push 0x487c00
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404930
push dword [ebp - 0x34]
push 0x487c0c
push 0x487c00
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404930
push dword [ebp - 0x34]
push 0x487c48
push 0x487c00
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404930
push dword [ebp - 0x34]
push 0x487c90
push 0x487c00
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404930
push dword [ebp - 0x34]
push 0x487cb8
push 0x487c00
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404930
push 0xa0000000
mov eax, dword [ebp - 0x34]
call fcn.00404870
push eax
mov eax, dword [ebp - 0x34]
call fcn.00404a70
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x487d54
push dword [ebp + 0x10]
push 0x487c00
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404930
push 0xa0000000
mov eax, dword [ebp - 0x38]
call fcn.00404870
push eax
mov eax, dword [ebp - 0x38]
call fcn.00404a70
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp + 0xc]
call fcn.00404870
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404a70
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x487b4d
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x444]
push eax
push 5
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x487a53
mov dl, 1
mov eax, dword [0x418d58]
call fcn.00403770
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x487a4c
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x487997
lea edx, [ebp - 0x444]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4879b9
cmp dword [ebp - 0x14], 0
ja 0x487986
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0041c8b4
xor eax, eax
push ebp
push 0x4879e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp + 0x14]
lea eax, [ebp - 0x3c]
call fcn.004874e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487a26
push 0
push 0
mov eax, dword [ebp + 0x14]
call fcn.0041c8b4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b4d
mov eax, dword [ebp - 0x3c]
call fcn.004037a0
ret
mov dl, 1
mov eax, dword [0x418d58]
call fcn.00403770
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x487b46
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x487a91
lea edx, [ebp - 0x444]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x487ab3
cmp dword [ebp - 0x14], 0
ja 0x487a80
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0041c8b4
xor eax, eax
push ebp
push 0x487ae2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp + 0x14]
lea eax, [ebp - 0x3c]
call fcn.004874e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487b20
push 0
push 0
mov eax, dword [ebp + 0x14]
call fcn.0041c8b4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b4d
mov eax, dword [ebp - 0x3c]
call fcn.004037a0
ret
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b9f
lea eax, [ebp - 0x40]
call fcn.004045b0
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.004045d4
lea eax, [ebp + 8]
mov edx, 3
call fcn.004045d4
ret