Function at 0x479e18
Capabilities:
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1040], ebx
mov dword [ebp - 0x103c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
call fcn.00404a70
mov eax, dword [ebp - 8]
call fcn.00404a70
mov eax, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp + 0x28]
call fcn.00404a70
mov eax, dword [ebp + 0x24]
call fcn.00404a70
mov eax, dword [ebp + 0x20]
call fcn.00404a70
xor eax, eax
push ebp
push 0x47a3ea
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x47a388
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 0x20], 0
je 0x479ee6
push 0
push 0
lea eax, [ebp - 0x103c]
mov ecx, dword [ebp + 0x20]
mov edx, 0x47a404
call fcn.004048cc
mov eax, dword [ebp - 0x103c]
call fcn.00404a80
push eax
push 3
push 0x47a40c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
jmp 0x479efb
push 0
push 0
push 0
push 0
push 0x47a40c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x479f0b
call fcn.00404024
jmp 0x47a38f
imul edi, esi, 0x3e8
mov dword [ebp - 0x1c], edi
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x1c]
push eax
push 7
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
lea eax, [edi + edi*2]
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00479ccc
test al, al
jne 0x479f6d
call fcn.00404024
jmp 0x47a38f
push 0
push 0x80000000
push 3
push 0
push 0
mov ax, word [ebp - 0x26]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404a80
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x479fa4
call fcn.00404024
jmp 0x47a38f
cmp word [ebp - 0x26], 0x1bb
jne 0x479fb3
mov esi, 0x84e81000
jmp 0x479fb8
mov esi, 0x6c8200
push 0
push esi
push 0
push 0
push 0x47a418
mov eax, dword [ebp - 0x24]
call fcn.00404a80
push eax
mov eax, dword [ebp + 0x28]
call fcn.00404a80
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x479ff2
call fcn.00404024
jmp 0x47a38f
lea eax, [ebp - 0x2c]
mov edx, 0x47a42c
call fcn.00404658
cmp byte [ebp + 0xc], 0
je 0x47a01f
push dword [ebp - 0x2c]
push 0x47a464
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
push dword [ebp - 0x2c]
push 0x47a498
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
cmp dword [ebp - 0xc], 0
je 0x47a05c
push dword [ebp - 0x2c]
push 0x47a4b8
push dword [ebp - 0xc]
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404940
push dword [ebp - 0x2c]
push 0x47a4cc
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
push dword [ebp - 0x2c]
push 0x47a528
push dword [ebp - 0x20]
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404940
push dword [ebp - 0x2c]
push 0x47a538
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
test ebx, ebx
je 0x47a0c7
push dword [ebp - 0x2c]
push ebx
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
mov eax, dword [ebp + 0x28]
mov edx, 0x47a558
call fcn.004049cc
jne 0x47a123
push dword [ebp - 0x2c]
push 0x47a568
mov eax, dword [ebp + 0x24]
call fcn.00404880
lea edx, [ebp - 0x1040]
call fcn.00408a34
push dword [ebp - 0x1040]
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404940
push dword [ebp - 0x2c]
push 0x47a584
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
cmp dword [ebp - 8], 0
je 0x47a15d
push dword [ebp - 0x2c]
push 0x47a5bc
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
push dword [ebp - 0x2c]
push dword [ebp - 8]
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
jmp 0x47a177
push dword [ebp - 0x2c]
push 0x47a5bc
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
cmp dword [ebp + 0x20], 0
je 0x47a197
push dword [ebp - 0x2c]
push 0x47a5d8
push 0x47a48c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404940
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00404880
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00404a80
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
test eax, eax
jne 0x47a1c2
call fcn.00404024
jmp 0x47a38f
mov eax, dword [ebp + 0x28]
mov edx, 0x47a558
call fcn.004049cc
jne 0x47a1fe
cmp dword [ebp + 0x24], 0
je 0x47a1fe
mov eax, dword [ebp + 0x24]
call fcn.00404880
push eax
mov eax, dword [ebp + 0x24]
call fcn.00404a80
push eax
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x47a215
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47a223
call fcn.00404024
jmp 0x47a38f
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x34], 0
jne 0x47a265
push 0x1378
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x479df0]
call fcn.004058c8
add esp, 4
jmp 0x47a282
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x479df0]
call fcn.004058c8
add esp, 4
xor eax, eax
push ebp
push 0x47a2f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x30]
mov edx, ebx
call fcn.004047b8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x13
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x30]
call fcn.004047b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a300
push 0
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x479df0]
call fcn.004058c8
add esp, 4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a3f1
lea eax, [ebp - 0x1040]
mov edx, 2
call fcn.004045e4
lea eax, [ebp - 0x30]
mov edx, dword [0x479df0]
call fcn.004058d4
lea eax, [ebp - 0x2c]
call fcn.004045c0
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004045e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045e4
lea eax, [ebp + 0x20]
mov edx, 3
call fcn.004045e4
ret