Function at 0x40a800
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43afab
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x460]
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 + 0x14], edi
mov dword [esp + 0x1c], 0
je 0x40ac42
cmp eax, 0xffffffff
je 0x40ac42
xor ecx, ecx
cmp dword [ebx + 0x84], 2
push 0
setne cl
sub ecx, 1
and ecx, 0x800000
or ecx, 0x4400040
push ecx
push 0x451ea0
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 0x40ac2b
cmp eax, 0xffffffff
je 0x40ac2b
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
jne 0x40a8e2
push 0x4462cc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 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]
push eax
mov eax, dword [ebx + 0xc]
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push eax
call edi
test eax, eax
jne 0x40a919
push 0x4462cc
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], str.additional_header_failed...
call fcn.00422a93
mov eax, dword [ebx + 0x9c]
xor esi, esi
cmp eax, esi
jbe 0x40aaae
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
mov dword [esp + 0x468], esi
mov eax, dword [ebx + 0x84]
sub eax, 1
je 0x40a95d
sub eax, 1
jne 0x40a96c
lea edx, [esp + 0x2c]
push edx
mov edx, str.https:__
jmp 0x40a967
lea eax, [esp + 0x2c]
push eax
mov edx, str.http:__
call fcn.004081c0
cmp dword [ebx + 0x28], 0x10
jb 0x40a977
mov edx, dword [ebx + 0x14]
jmp 0x40a97a
lea edx, [ebx + 0x14]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040bfc0
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40a998
cmp dword [ebx + 0x80], 0x50
je 0x40a9df
cmp eax, 2
jne 0x40a9a9
cmp dword [ebx + 0x80], 0x1bb
je 0x40a9df
mov edx, dword [ebx + 0x80]
xor eax, eax
push edx
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
lea eax, [esp + 0x4c]
push 0x441fbc
push eax
mov word [esp + 0x54], si
call fcn.00421f49
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x4c]
call fcn.0040bfc0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
call fcn.0040bfc0
mov ecx, dword [ebx + 0x98]
mov ecx, dword [ecx]
lea eax, [ebx + 0x94]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
jmp 0x40aa10
mov edx, dword [ebx + 0x98]
lea esi, [esp + 0x14]
lea edi, [esp + 0x20]
mov dword [esp + 0x18], edx
call fcn.0040f540
test al, al
je 0x40aa94
mov esi, edi
call fcn.0040bfe0
mov eax, dword [eax]
mov ecx, 0x10
cmp dword [eax + 0x34], ecx
jb 0x40aa43
mov edx, dword [eax + 0x20]
jmp 0x40aa46
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], ecx
jb 0x40aa50
mov eax, dword [eax + 4]
jmp 0x40aa53
add eax, 4
cmp dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
jae 0x40aa61
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40aa7d
lea edi, [esp + 0x48]
lea esi, [esp + 0x20]
call fcn.0040c000
jmp 0x40aa10
push 0x4462cc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.add_cookie_failed...
call fcn.00422a93
lea ecx, [esp + 0x2c]
mov dword [esp + 0x468], 0xffffffff
call fcn.004077a0
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [esp + 0x1c]
push ecx
mov eax, ebx
call fcn.0040a6f0
push 0x3fe
lea edx, [esp + 0x5a]
push 0
push edx
mov esi, eax
mov word [esp + 0x60], 0
call fcn.00422b60
add esp, 0xc
push esi
lea eax, [esp + 0x58]
push str.Content_Length:__d_r_n
push eax
call fcn.00421f49
lea eax, [esp + 0x60]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aaf1
push 0x10000000
sub eax, edx
mov edx, dword [ebx + 0xc]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call edi
test eax, eax
jne 0x40ab28
push 0x4462cc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.additional_header_failed...
call fcn.00422a93
xor edi, edi
push edi
push 8
push edi
mov dword [0x453be8], 0x28
mov dword [0x453bec], edi
mov ecx, dword [ebx + 0xc]
push 0x453be8
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x40ab7b
mov edx, dword [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4462cc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed
call fcn.00422a93
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x28]
push ecx
push esi
mov esi, dword [esp + 0x24]
push esi
push edx
mov dword [esp + 0x38], edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x40abbe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4462cc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed
call fcn.00422a93
mov ecx, dword [ebx + 0xc]
push edi
push 8
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
push esi
push edi
jne 0x40abf6
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4462cc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], str.request_failed
call fcn.00422a93
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 8
push 0x4462cc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.request_failed...
call fcn.00422a93
push 0x4462cc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.handle_not_opened...
call fcn.00422a93
int3