Function at 0x40ae20
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5449bb
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x5a61b0]
xor eax, esp
mov dword [esp + 0x844], eax
push esi
push edi
mov eax, dword [0x5a61b0]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 8]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0x58811c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x40b0dd
xor eax, eax
mov dword [esp + 0x14], 0x800000
cmp dword [edi + 0x74], 2
push 0
cmove eax, dword [esp + 0x18]
or eax, 0x4400040
push eax
lea eax, [esp + 0x20]
push eax
push edx
push str.HTTP_1.0
push esi
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40b0dd
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x40b0dd
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x40b0dd
cmp dword [edi + 0x84], 0
jbe 0x40b016
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x860], eax
mov eax, dword [edi + 0x74]
dec eax
je 0x40af3b
dec eax
jne 0x40af49
push str.https:__
jmp 0x40af40
push str.http:__
lea ecx, [esp + 0x24]
call fcn.0040b760
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x40af54
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
call fcn.0040b7b0
mov eax, dword [edi + 0x74]
cmp eax, 1
jne 0x40af6c
cmp dword [edi + 0x70], 0x50
je 0x40afae
cmp eax, 2
jne 0x40af7a
cmp dword [edi + 0x70], 0x1bb
je 0x40afae
push dword [edi + 0x70]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
push 0x588180
push eax
movdqu xmmword [esp + 0x48], xmm0
call fcn.0052bc55
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
call fcn.0040b7b0
push esi
lea ecx, [esp + 0x24]
call fcn.0040b7b0
mov eax, dword [edi + 0x80]
mov esi, dword [eax]
cmp esi, eax
je 0x40b003
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x2c], 8
lea edx, [ecx + 0x18]
jb 0x40afd2
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x40afda
mov ecx, dword [ecx]
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push edx
cmovae eax, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
je 0x40b0ca
mov esi, dword [esi]
cmp esi, dword [edi + 0x80]
jne 0x40afc4
cmp dword [esp + 0x34], 8
jb 0x40b016
push dword [esp + 0x20]
call fcn.0040c05c
add esp, 4
push ecx
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040ad80
push 0x7fc
mov esi, eax
mov dword [esp + 0x50], 0
lea eax, [esp + 0x54]
push 0
push eax
call fcn.0052cef0
push esi
lea eax, [esp + 0x5c]
push str.Content_Length:__d_r_n
push eax
call fcn.0052bc55
lea ecx, [esp + 0x64]
add esp, 0x18
lea edx, [ecx + 2]
jmp 0x40b060
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b060
sub ecx, edx
lea eax, [esp + 0x4c]
push 0x10000000
sar ecx, 1
push ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x40b0dd
push 0
push 8
push 0
push 0x5c4178
mov dword [0x5c4178], 0x28
mov dword [0x5c417c], 0
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x40b0e1
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x40b129
cmp dword [esp + 0x34], 8
jb 0x40b0dd
push dword [esp + 0x20]
call fcn.0040c05c
add esp, 4
xor al, al
jmp 0x40b129
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push esi
mov esi, dword [esp + 0x18]
push esi
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x40b104
push esi
jmp 0x40b0b7
push 0
push 8
push 0
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push esi
push 0
test eax, eax
je 0x40b0b9
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 8