Function at 0x80ca18
Capabilities:
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x824], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x80ce09
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, esi
call fcn.0080c84c
mov eax, ebx
mov edx, 0x80ce24
call fcn.0040a33c
push 0
push 0
push 0
push 0
mov ecx, dword [0x84cf90]
mov ecx, dword [ecx]
lea eax, [ebp - 0x824]
mov edx, 0x80ce34
call fcn.0040aed8
mov eax, dword [ebp - 0x824]
call fcn.0040ac6c
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x80caa7
call sub.kernel32.dll_GetLastError_2
lea ecx, [ebp - 0x82c]
mov edx, 5
mov eax, esi
call fcn.0043f380
mov eax, dword [ebp - 0x82c]
lea edx, [ebp - 0x828]
call fcn.0042249c
mov eax, dword [ebp - 0x828]
mov edx, 0x80cf34
call fcn.0040b010
je 0x80cc5c
xor edx, edx
push ebp
push 0x80cc55
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
call fcn.0040ac6c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x80cb26
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
xor edx, edx
push ebp
push 0x80cc37
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040ac6c
push eax
push 0x80cf54
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x80cc0f
xor edx, edx
push ebp
push 0x80cc08
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x18], 0x802
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x80cba2
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x81e]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
jne 0x80cbdf
mov eax, ebx
mov edx, 0x80ce24
call fcn.0040a33c
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
jmp 0x80cbf1
mov eax, ebx
lea edx, [ebp - 0x81e]
mov ecx, 0x401
call fcn.0040ad28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80cc20
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80cc3e
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor edx, edx
push ebp
push 0x80cdd7
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
push 0
push 0
push 0x1bb
mov eax, dword [ebp - 4]
call fcn.0040ac6c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x80cca5
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
xor edx, edx
push ebp
push 0x80cdb9
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x803000
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040ac6c
push eax
push 0x80cf54
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x80cd91
xor edx, edx
push ebp
push 0x80cd8a
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x18], 0x802
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x80cd24
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x81e]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
jne 0x80cd61
mov eax, ebx
mov edx, 0x80ce24
call fcn.0040a33c
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
jmp 0x80cd73
mov eax, ebx
lea edx, [ebp - 0x81e]
mov ecx, 0x401
call fcn.0040ad28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80cda2
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x80cf4c
call fcn.0040a33c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80cdc0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret