Function at 0x40ee10
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 0x40f002
cmp ecx, 0xffffffff
je 0x40f002
cmp dword [edi + 0x74], 2
mov eax, 0x4000000
push 0
mov ebx, 0x4800000
cmove eax, ebx
push eax
push 0x4240fc
push edx
push str.HTTP_1.0
push esi
push 0x41973c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40f056
cmp eax, 0xffffffff
je 0x40f056
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x40f017
cmp dword [edi + 0x84], 0
jbe 0x40efcd
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 0x40eeee
sub eax, 1
jne 0x40eefd
push 8
push str.https:__
jmp 0x40eef5
push 7
push str.http:__
lea ecx, [ebp - 0x34]
call fcn.00404670
cmp dword [edi + 0x24], 0x10
lea eax, [edi + 0x10]
jb 0x40ef08
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040bee0
mov eax, dword [edi + 0x74]
cmp eax, 1
jne 0x40ef1f
cmp dword [edi + 0x70], 0x50
jmp 0x40ef2b
cmp eax, 2
jne 0x40ef2d
cmp dword [edi + 0x70], 0x1bb
je 0x40ef6b
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 0x40ef55
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 0x40efbe
mov ebx, dword [sym.imp.WININET.dll_InternetSetCookieA]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x2c], 0x10
lea edx, [ecx + 0x18]
jb 0x40ef94
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
jb 0x40ef9c
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 0x40f041
mov esi, dword [esi]
cmp esi, dword [edi + 0x80]
jne 0x40ef86
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004022d0
push 0
push 0
push 0
push 0
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40f02c
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 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