Function at 0x40f474
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x42f080]
xor eax, esp
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebx + 8]
push edi
xor edi, edi
cmp ecx, edi
je 0x40f6d9
cmp ecx, 0xffffffff
je 0x40f6d9
cmp dword [ebx + 0x84], 2
jne 0x40f4b9
mov eax, 0x800000
jmp 0x40f4bb
xor eax, eax
push edi
or eax, 0x4000000
push eax
push 0x430fcc
push edx
push str.HTTP_1.0
push esi
push 0x42ace4
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x40f6c3
cmp eax, 0xffffffff
je 0x40f6c3
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40f51c
mov dword [esp + 0xc], str.additional_header_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
push eax
call fcn.00417520
cmp dword [ebx + 0xbc], edi
jbe 0x40f686
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
call fcn.00403213
mov eax, dword [ebx + 0x84]
dec eax
je 0x40f54d
dec eax
jne 0x40f55b
push str.https:__
jmp 0x40f552
push str.http:__
lea ecx, [esp + 0x20]
call fcn.004028ab
cmp dword [ebx + 0x28], 0x10
jb 0x40f566
mov eax, dword [ebx + 0x14]
jmp 0x40f569
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041062e
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40f588
cmp dword [ebx + 0x80], 0x50
je 0x40f5cd
cmp eax, 2
jne 0x40f599
cmp dword [ebx + 0x80], 0x1bb
je 0x40f5cd
push dword [ebx + 0x80]
xor eax, eax
mov word [esp + 0x3c], ax
lea edi, [esp + 0x3e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push 0x42b82c
push eax
call fcn.00410791
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041062e
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0041062e
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xa4]
lea edi, [esp + 0x14]
lea esi, [esp + 0xc]
mov dword [esp + 0x14], eax
call fcn.00410717
test al, al
je 0x40f677
call fcn.004106b3
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x40f625
mov edx, dword [eax + 0x20]
jmp 0x40f628
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40f633
mov eax, dword [eax + 4]
jmp 0x40f636
add eax, 4
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x40f645
lea ecx, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40f661
lea edi, [esp + 0x38]
lea esi, [esp + 0xc]
call fcn.004106de
jmp 0x40f5ee
mov dword [esp + 0xc], str.add_cookie_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40f516
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.004028ce
xor edi, edi
push edi
push edi
push edi
push edi
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f6ad
mov dword [esp + 0xc], str.request_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40f516
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00411d8c
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0xc], str.request_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40f516
mov dword [esp + 0xc], str.handle_not_opened...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40f516