Function at 0x40f430
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417668
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 8]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test ecx, ecx
je 0x40f686
cmp ecx, 0xffffffff
je 0x40f686
cmp dword [edi + 0x74], 2
mov eax, 0x4400040
push 0
mov ebx, 0x4c00040
cmove eax, ebx
push eax
push 0x424100
push edx
push str.HTTP_1.0
push esi
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40f6e6
cmp eax, 0xffffffff
je 0x40f6e6
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x40f69b
cmp dword [edi + 0x84], 0
jbe 0x40f5ed
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov eax, dword [edi + 0x74]
mov dword [ebp - 4], 0
sub eax, 1
je 0x40f50e
sub eax, 1
jne 0x40f51d
push 8
push str.https:__
jmp 0x40f515
push 7
push str.http:__
lea ecx, [ebp - 0x34]
call fcn.00404670
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x40f528
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040bee0
mov eax, dword [edi + 0x74]
cmp eax, 1
jne 0x40f53f
cmp dword [edi + 0x70], 0x50
jmp 0x40f54b
cmp eax, 2
jne 0x40f54d
cmp dword [edi + 0x70], 0x1bb
je 0x40f58b
push dword [edi + 0x70]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x14], 0
xorps xmm0, xmm0
push 0x419794
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.0040e1f0
lea ecx, [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f575
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00407310
push esi
lea ecx, [ebp - 0x34]
call fcn.0040bee0
mov eax, dword [edi + 0x80]
mov esi, dword [eax]
cmp esi, eax
je 0x40f5de
mov ebx, dword [sym.imp.WININET.dll_InternetSetCookieA]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x2c], 0x10
lea edx, [ecx + 0x18]
jb 0x40f5b4
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
jb 0x40f5bc
mov ecx, dword [ecx]
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push edx
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
call ebx
test eax, eax
je 0x40f6d1
mov esi, dword [esi]
cmp esi, dword [edi + 0x80]
jne 0x40f5a6
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004022d0
mov ecx, edi
call fcn.0040e980
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, edi
mov esi, eax
call fcn.0040e980
inc eax
mov ecx, edi
push eax
push esi
call fcn.0040e9c0
mov edx, dword [str.Content_Type:_application_x_www_form_urlencoded_r_n]
mov ecx, edx
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f630
push dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x38]
push esi
push ecx
push edx
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
jne 0x40f6b0
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd3f
mov esp, ebp
pop ebp
ret 8
push 0x421cb8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.handle_not_opened...
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x421cb8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.additional_header_failed...
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x421cb8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], str.request_failed...
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x421cb8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.add_cookie_failed...
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x421cb8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.request_failed...
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3