Function at 0x771a5c
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 0x771e4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, esi
call fcn.00771890
mov eax, ebx
mov edx, 0x771e68
call fcn.0040a2f4
push 0
push 0
push 0
push 0
mov ecx, dword [0x79e4dc]
mov ecx, dword [ecx]
lea eax, [ebp - 0x824]
mov edx, 0x771e78
call fcn.0040ada0
mov eax, dword [ebp - 0x824]
call fcn.0040ab34
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x771aeb
call sub.kernel32.dll_GetLastError_2
lea ecx, [ebp - 0x82c]
mov edx, 5
mov eax, esi
call fcn.0043d3b4
mov eax, dword [ebp - 0x82c]
lea edx, [ebp - 0x828]
call fcn.004219b8
mov eax, dword [ebp - 0x828]
mov edx, 0x771f78
call fcn.0040aed8
je 0x771ca0
xor edx, edx
push ebp
push 0x771c99
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.0040ab34
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 0x771b6a
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
xor edx, edx
push ebp
push 0x771c7b
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.0040ab34
push eax
push 0x771f98
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x771c53
xor edx, edx
push ebp
push 0x771c4c
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 0x771be6
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
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 0x771c23
mov eax, ebx
mov edx, 0x771e68
call fcn.0040a2f4
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
jmp 0x771c35
mov eax, ebx
lea edx, [ebp - 0x81e]
mov ecx, 0x401
call fcn.0040abf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x771c64
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x771c82
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor edx, edx
push ebp
push 0x771e1b
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.0040ab34
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 0x771ce9
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
xor edx, edx
push ebp
push 0x771dfd
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.0040ab34
push eax
push 0x771f98
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x771dd5
xor edx, edx
push ebp
push 0x771dce
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 0x771d68
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
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 0x771da5
mov eax, ebx
mov edx, 0x771e68
call fcn.0040a2f4
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
jmp 0x771db7
mov eax, ebx
lea edx, [ebp - 0x81e]
mov ecx, 0x401
call fcn.0040abf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x771de6
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_2
mov eax, ebx
mov edx, 0x771f90
call fcn.0040a2f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x771e04
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret