Function at 0x40b740
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43af58
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x40bb19
cmp eax, 0xffffffff
je 0x40bb19
mov ecx, dword [ebx + 0xa0]
xor edx, edx
cmp dword [ebx + 0x84], 2
push ecx
setne dl
sub edx, 1
and edx, 0x800000
or edx, 0x4400040
push edx
push 0x451ea8
push esi
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
xor esi, esi
cmp eax, esi
mov dword [ebx + 0xc], eax
je 0x40bb02
cmp eax, 0xffffffff
je 0x40bb02
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40b812
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.additional_header_failed...
call fcn.00422a93
mov eax, dword [ebx + 0x9c]
cmp eax, esi
jbe 0x40b9b9
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
mov dword [esp + 0x58], esi
mov eax, dword [ebx + 0x84]
sub eax, 1
je 0x40b851
sub eax, 1
jne 0x40b860
lea ecx, [esp + 0x20]
push ecx
mov edx, str.https:__
jmp 0x40b85b
lea edx, [esp + 0x20]
push edx
mov edx, str.http:__
call fcn.004081c0
cmp dword [ebx + 0x28], 0x10
jb 0x40b86b
mov edx, dword [ebx + 0x14]
jmp 0x40b86e
lea edx, [ebx + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.0040bfc0
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40b88c
cmp dword [ebx + 0x80], 0x50
je 0x40b8d3
cmp eax, 2
jne 0x40b89d
cmp dword [ebx + 0x80], 0x1bb
je 0x40b8d3
mov ecx, dword [ebx + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x40]
push 0x441fbc
push edx
mov word [esp + 0x48], si
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
call fcn.00421f49
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x40]
call fcn.0040bfc0
lea ecx, [esp + 0x20]
push ecx
mov edx, edi
call fcn.0040bfc0
mov eax, dword [ebx + 0x98]
mov edi, dword [eax]
lea esi, [ebx + 0x94]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
jmp 0x40b900
test esi, esi
mov edx, dword [ebx + 0x98]
lea eax, [ebx + 0x94]
mov dword [esp + 0x14], edx
je 0x40b918
cmp esi, eax
je 0x40b91d
call fcn.00421af8
cmp edi, dword [esp + 0x14]
je 0x40b9a8
test esi, esi
jne 0x40b930
call fcn.00421af8
cmp edi, dword [esi + 4]
jne 0x40b93a
call fcn.00421af8
mov eax, dword [edi + 8]
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x40b94c
mov edx, dword [eax + 0x20]
jmp 0x40b94f
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x40b959
mov eax, dword [eax + 4]
jmp 0x40b95c
add eax, 4
cmp dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
jae 0x40b96a
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40b991
lea edi, [esp + 0x3c]
lea esi, [esp + 0x18]
call fcn.0040c000
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x40b900
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.add_cookie_failed...
call fcn.00422a93
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004077a0
mov eax, ebx
call fcn.0040a160
add eax, 1
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, ebx
call fcn.0040a160
add eax, 1
push eax
push esi
mov eax, ebx
call fcn.0040a1d0
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov edi, eax
mov dword [0x453c10], 0x28
mov dword [0x453c14], 0
mov dword [0x453c18], 0x441ec8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [0x453c1c], eax
mov dword [0x453c24], esi
mov dword [0x453c28], edi
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xc]
push ecx
push 8
push 0
push 0x453c10
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40ba78
call edi
cmp eax, 0x3e5
je 0x40ba78
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.request_failed
call fcn.00422a93
mov ecx, dword [ebx + 0xa4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xc]
push edx
push 9
push 0
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x40bad0
call edi
cmp eax, 0x3e5
je 0x40bad0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4462cc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], str.request_failed
call fcn.00422a93
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 8
push 0x4462cc
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], str.request_failed...
call fcn.00422a93
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.handle_not_opened...
call fcn.00422a93
int3