Function at 0x40bb40
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43af1b
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x458]
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
mov dword [esp + 0x10], 0
je 0x40bf7f
cmp eax, 0xffffffff
je 0x40bf7f
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 0x451eac
push esi
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x40bf68
cmp eax, 0xffffffff
je 0x40bf68
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call esi
test eax, eax
jne 0x40bc23
push 0x4462cc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.additional_header_failed...
call fcn.00422a93
push 0x10000000
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0xc]
push eax
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push ecx
call esi
test eax, eax
jne 0x40bc5a
push 0x4462cc
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], str.additional_header_failed...
call fcn.00422a93
mov eax, dword [ebx + 0x9c]
xor ecx, ecx
cmp eax, ecx
jbe 0x40bdee
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ecx
mov byte [esp + 0x28], cl
mov dword [esp + 0x460], ecx
mov eax, dword [ebx + 0x84]
sub eax, 1
je 0x40bc9d
sub eax, 1
jne 0x40bcac
lea eax, [esp + 0x24]
push eax
mov edx, str.https:__
jmp 0x40bca7
lea ecx, [esp + 0x24]
push ecx
mov edx, str.http:__
call fcn.004081c0
cmp dword [ebx + 0x28], 0x10
jb 0x40bcb7
mov edx, dword [ebx + 0x14]
jmp 0x40bcba
lea edx, [ebx + 0x14]
lea eax, [esp + 0x24]
push eax
call fcn.0040bfc0
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40bcd8
cmp dword [ebx + 0x80], 0x50
je 0x40bd1f
cmp eax, 2
jne 0x40bce9
cmp dword [ebx + 0x80], 0x1bb
je 0x40bd1f
mov ecx, dword [ebx + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x44]
push 0x441fbc
push edx
mov word [esp + 0x4c], ax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
call fcn.00421f49
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x44]
call fcn.0040bfc0
lea ecx, [esp + 0x24]
push ecx
mov edx, edi
call fcn.0040bfc0
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
lea eax, [ebx + 0x94]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jmp 0x40bd50
mov eax, dword [ebx + 0x98]
lea esi, [esp + 0x1c]
lea edi, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0040f540
test al, al
je 0x40bdd4
mov esi, edi
call fcn.0040bfe0
mov eax, dword [eax]
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x40bd83
mov edx, dword [eax + 0x20]
jmp 0x40bd86
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x40bd90
mov eax, dword [eax + 4]
jmp 0x40bd93
add eax, 4
cmp dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
jae 0x40bda1
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40bdbd
lea edi, [esp + 0x40]
lea esi, [esp + 0x14]
call fcn.0040c000
jmp 0x40bd50
push 0x4462cc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], str.add_cookie_failed...
call fcn.00422a93
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], 0xffffffff
call fcn.004077a0
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.0040a6f0
push 0x3fe
mov edi, eax
lea eax, [esp + 0x52]
push 0
push eax
mov word [esp + 0x58], 0
call fcn.00422b60
add esp, 0xc
push edi
lea ecx, [esp + 0x50]
push str.Content_Length:__d_r_n
push ecx
call fcn.00421f49
lea eax, [esp + 0x58]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40be31
sub eax, edx
push 0x10000000
push eax
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x54]
push edx
push eax
call esi
test eax, eax
jne 0x40be68
push 0x4462cc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], str.additional_header_failed...
call fcn.00422a93
mov esi, dword [esp + 0x10]
mov dword [0x453c38], 0x28
mov dword [0x453c3c], 0
mov dword [0x453c4c], esi
mov dword [0x453c50], edi
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xc]
push edx
push 8
push 0
push 0x453c38
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40bee0
call edi
cmp eax, 0x3e5
je 0x40bee0
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 + 0x14]
push ecx
mov dword [esp + 0x18], str.request_failed
call fcn.00422a93
mov eax, ebx
call fcn.0040bfa0
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 0x40bf30
call edi
cmp eax, 0x3e5
je 0x40bf30
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 + 0x18]
push ecx
mov dword [esp + 0x1c], 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 + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
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