Function at 0x40b87e
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
mov eax, dword [ebp + 0x804]
push ebx
push esi
mov esi, dword [ebp + 0x800]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x808]
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x80c]
push 0x3c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x810]
pop ebx
push ebx
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0045f090
lea eax, [ebp + 0x3f4]
mov dword [ebp - 0x70], eax
mov eax, 0x400
add esp, 0xc
cmp byte [esi + 7], 0xff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
jne 0x40b8fe
mov esi, dword [esi]
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push edi
push edi
push 3
push edi
push edi
push 0x50
lea eax, [ebp + 0x3f4]
push eax
push dword [0x48fc68]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x40badb
push edi
push 0x80000
lea ecx, [ebp - 0x44]
push ecx
push 0x47e7fe
push edi
lea ecx, [ebp - 0xc]
push ecx
push str.POST
push eax
mov dword [ebp - 0x44], 0x47f288
mov dword [ebp - 0x40], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40bad2
mov ecx, dword [ebp - 0x1c]
call fcn.00401005
test al, al
jne 0x40ba52
mov ecx, dword [ebp - 0x14]
call fcn.00401005
test al, al
jne 0x40ba52
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x47f284
push dword [ebp - 0x1c]
push eax
call fcn.00440090
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00440040
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.0043f790
lea ecx, [ebp - 0x30]
call fcn.0043f510
lea ebx, [eax + eax + 1]
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.0045e88c
push ebx
mov esi, eax
push edi
push esi
call fcn.0045f090
add esp, 0x10
push 2
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0043f510
push eax
push 1
lea ecx, [ebp - 0x30]
call fcn.00440160
push eax
call fcn.0040b3d4
add esp, 0x14
push str.Authorization:_Basic
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.0043f7b0
push esi
lea ecx, [ebp - 0x18]
call fcn.0043fc10
cmp esi, edi
je 0x40ba1a
push esi
call fcn.0045efef
pop ecx
cmp ebx, edi
je 0x40ba42
cmp byte [ebp - 0x11], 0xff
lea esi, [ebp - 0x18]
jne 0x40ba2a
mov esi, dword [ebp - 0x18]
push 0xa0000000
lea ecx, [ebp - 0x18]
call fcn.0043f510
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x18]
call fcn.0043f790
lea ecx, [ebp - 0x30]
call fcn.0043f790
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x28]
call fcn.0043f7b0
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.00401005
test al, al
jne 0x40ba8e
cmp byte [esi + 7], 0xff
mov edi, esi
jne 0x40ba77
mov edi, dword [esi]
push 0xa0000000
mov ecx, esi
call fcn.0043f510
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 7], 0xff
mov edi, ecx
jne 0x40ba9b
mov edi, dword [ecx]
cmp byte [ebp - 0x21], 0xff
lea esi, [ebp - 0x28]
jne 0x40baa7
mov esi, dword [ebp - 0x28]
call fcn.0043f510
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0043f510
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0043f790
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0x7f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0x7f8
leave
ret 0x14