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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a8618
push 0x47eeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4aab30]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x94], edx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], esi
xor edi, edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x64], bl
push 0x3f
push esi
lea eax, [ebp - 0x63]
push eax
call fcn.0047d730
add esp, 0xc
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 4], ebx
push edi
push edi
push edi
push edi
push str.Mozilla_5.0__Windows__U__Windows_NT_6.1__sl__rv:1.9.2.11__Gecko_20101012_Firefox_3.6.11
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x40805f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x68], ebx
push ebx
push str.Unable_to_open_internet_connection._Error_code__lu.
mov ecx, ebx
call fcn.00405e70
add esp, 8
jmp 0x40818e
push 0
push 0
push 3
push 0
push 0
push 0x50
mov ecx, dword [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
jne 0x4080a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x68], ebx
push ebx
mov edx, dword [ebp - 0x6c]
push edx
push str.Unable_to_connect_to__S._Error_code__lu.
mov ecx, ebx
call fcn.00405e70
add esp, 0xc
jmp 0x40818e
push 0
push 0x84404000
mov eax, dword [ebp - 0x98]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x84]
push edx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x7c], esi
test esi, esi
jne 0x4080f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x68], ebx
push ebx
mov eax, dword [ebp - 0x6c]
push eax
push str.Open_request_to_server__S_failed._Error_code__lu.
mov ecx, ebx
call fcn.00405e70
add esp, 0xc
jmp 0x40818e
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x40811c
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40811c
mov edx, dword [ebp - 0x80]
test edx, edx
je 0x40811c
push edx
push eax
push ecx
push str.Send_https:__S__S__S
call fcn.0040a5d0
add esp, 0x10
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x408178
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x68], ebx
cmp ebx, 0x2f0d
jne 0x408162
mov edx, dword [ebp - 0x6c]
push edx
push str.Server_CA_is_not_trusted._Unable_to_establish_secure_connection_to__S.
mov ecx, eax
call fcn.00405e70
add esp, 8
jmp 0x40818e
push ebx
mov eax, dword [ebp - 0x6c]
push eax
push str.Unable_to_send_request_to_the_server___S_._Error_code:__lu.
mov ecx, ebx
call fcn.00405e70
add esp, 0xc
jmp 0x40818e
push 0
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 4], 0xfffffffe
call fcn.004081c1
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0047a722
mov esp, ebp
pop ebp
ret