Function at 0x40a960
Capabilities:
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x544958
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5a61b0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x5a61b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
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 + 0x14], 0x58811c
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x40ab81
xor eax, eax
mov dword [esp + 0xc], 0x800000
cmp dword [edi + 0x74], 2
push 0
cmove eax, dword [esp + 0x10]
or eax, 0x4400040
push eax
lea eax, [esp + 0x1c]
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 0x40ab81
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x40ab81
cmp dword [edi + 0x84], 0
jbe 0x40ab40
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x74]
dec eax
je 0x40aa4a
dec eax
jne 0x40aa58
push str.https:__
jmp 0x40aa4f
push str.http:__
lea ecx, [esp + 0x20]
call fcn.0040b760
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x40aa63
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
call fcn.0040b7b0
mov eax, dword [edi + 0x74]
cmp eax, 1
jne 0x40aa7b
cmp dword [edi + 0x70], 0x50
je 0x40aabd
cmp eax, 2
jne 0x40aa89
cmp dword [edi + 0x70], 0x1bb
je 0x40aabd
push dword [edi + 0x70]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
push 0x588180
push eax
movdqu xmmword [esp + 0x44], xmm0
call fcn.0052bc55
add esp, 0xc
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040b7b0
push esi
lea ecx, [esp + 0x20]
call fcn.0040b7b0
mov eax, dword [edi + 0x80]
mov esi, dword [eax]
cmp esi, eax
je 0x40ab0e
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x2c], 8
lea edx, [ecx + 0x18]
jb 0x40aae1
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x40aae9
mov ecx, dword [ecx]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push edx
cmovae eax, dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
je 0x40ab6e
mov esi, dword [esi]
cmp esi, dword [edi + 0x80]
jne 0x40aad3
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x40ab29
push dword [esp + 0x1c]
call fcn.0040c05c
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
xor esi, esi
cmp dword [edi + 0x7c], esi
jbe 0x40ab88
mov ecx, dword [edi + 0x78]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40ab88
mov ecx, dword [eax + 8]
add esi, 2
mov eax, dword [eax]
mov edx, dword [ecx + 0x28]
add edx, dword [ecx + 0x10]
add esi, edx
cmp eax, dword [edi + 0x78]
jne 0x40ab50
test esi, esi
je 0x40ab88
lea eax, [esi - 1]
jmp 0x40ab8a
cmp dword [esp + 0x30], 8
jb 0x40ab81
push dword [esp + 0x1c]
call fcn.0040c05c
add esp, 4
xor al, al
jmp 0x40acbe
xor eax, eax
xor ecx, ecx
lea eax, [eax*4 + 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c061
xor esi, esi
mov dword [esp + 0x10], eax
add esp, 4
cmp dword [edi + 0x7c], esi
jbe 0x40abde
mov eax, dword [edi + 0x78]
mov ecx, dword [eax]
cmp ecx, eax
je 0x40abde
mov edi, edi
mov eax, dword [ecx + 8]
add esi, 2
mov ecx, dword [ecx]
mov edx, dword [eax + 0x28]
add edx, dword [eax + 0x10]
add esi, edx
cmp ecx, dword [edi + 0x78]
jne 0x40abc0
test esi, esi
je 0x40abde
lea eax, [esi - 1]
jmp 0x40abe0
xor eax, eax
inc eax
mov ecx, edi
push eax
push dword [esp + 0x10]
call fcn.0040a8a0
xor esi, esi
cmp dword [edi + 0x7c], esi
jbe 0x40ac1c
mov ecx, dword [edi + 0x78]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40ac1c
lea ecx, [ecx]
mov ecx, dword [eax + 8]
add esi, 2
mov eax, dword [eax]
mov edx, dword [ecx + 0x28]
add edx, dword [ecx + 0x10]
add esi, edx
cmp eax, dword [edi + 0x78]
jne 0x40ac00
test esi, esi
je 0x40ac1c
dec esi
jmp 0x40ac1e
xor esi, esi
mov eax, dword [esp + 0xc]
lea esi, [esi + 1]
lea edx, [eax + esi*4]
mov esi, eax
mov ecx, esi
mov byte [edx], 0
mov dword [esp + 0x10], edx
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac40
sub ecx, dword [esp + 0xc]
push 0
sar ecx, 1
push 0
lea eax, [ecx*2 + 1]
push eax
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ac78
sub ecx, dword [esp + 0x10]
push ecx
push edx
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40acb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x40acb3
push esi
call fcn.0040c05c
add esp, 4
xor al, al
jmp 0x40acbe
push esi
call fcn.0040c05c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0052ace1
mov esp, ebp
pop ebp
ret 8