Function at 0x40b04b
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push 0x20
mov eax, 0x452b53
call fcn.0043874e
mov esi, ecx
xor eax, eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
setne al
mov edi, eax
call fcn.00423024
push eax
lea ecx, [ebp - 0x1c]
call fcn.00421c70
mov dword [ebp - 4], ebx
call fcn.00423024
push eax
lea ecx, [ebp - 0x18]
call fcn.00421c70
mov byte [ebp - 4], 1
call fcn.00423024
push eax
lea ecx, [ebp - 0x14]
call fcn.00421c70
mov byte [ebp - 4], 2
call fcn.00423024
push eax
lea ecx, [ebp - 0x10]
call fcn.00421c70
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00423de5
test eax, eax
jne 0x40b0e2
push str.Invalid_URL_specified
mov ecx, esi
call fcn.0040aebc
jmp 0x40b27b
push esi
push bind
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x40b12d
lea eax, [ebp + 0xc]
push eax
call fcn.0040ada3
pop ecx
mov byte [ebp - 4], 4
push dword [eax]
mov ecx, esi
call fcn.0040aebc
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00409012
jmp 0x40b27b
cmp edi, ebx
mov dword [ebp - 0x2c], str.text_
mov dword [ebp - 0x28], ebx
mov ecx, str.POST
jne 0x40b145
mov ecx, 0x458e9c
push esi
push bind
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push dword [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40b173
lea eax, [ebp + 0xc]
push eax
call fcn.0040ada3
pop ecx
mov byte [ebp - 4], 5
jmp 0x40b114
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp + 8], esi
call fcn.0040ac34
test eax, eax
je 0x40b274
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
mov dword [esi + 0x40], 1
push eax
push dword [ebp + 0xc]
mov eax, edi
neg eax
sbb eax, eax
neg edi
sbb edi, edi
push eax
and edi, str.Content_Type:_application_x_www_form_urlencoded
push edi
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x40b24f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40b1fd
mov ecx, esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ebx
call fcn.0040aed3
test eax, eax
je 0x40b271
cmp dword [esi + 0xc], ebx
jne 0x40b211
push str.Failed_to_connect_to_server
mov ecx, esi
call fcn.0040aebc
jmp 0x40b274
cmp eax, ebx
je 0x40b211
lea eax, [ebp + 0xc]
push eax
call fcn.00419c10
pop ecx
mov byte [ebp - 4], 7
jmp 0x40b25d
mov ecx, esi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
call fcn.0040ac46
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00409012
xor eax, eax
inc eax
jmp 0x40b2a9
lea eax, [ebp + 0xc]
push eax
call fcn.00419c10
pop ecx
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, esi
call fcn.0040aebc
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00409012
mov dword [esi + 0x40], ebx
mov ecx, esi
call fcn.0040ac46
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00409012
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00409012
xor eax, eax
call fcn.00438826
ret 0xc