Function at 0x40f9ec
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 0x40fca2
cmp ecx, 0xffffffff
je 0x40fca2
cmp dword [ebx + 0x84], 2
jne 0x40fa31
mov eax, 0x800000
jmp 0x40fa33
xor eax, eax
push edi
or eax, 0x4400040
push eax
push 0x430fd0
push edx
push str.HTTP_1.0
push esi
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x40fc8c
cmp eax, 0xffffffff
je 0x40fc8c
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40fa94
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 0x40fbfc
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
call fcn.00403213
mov eax, dword [ebx + 0x84]
dec eax
je 0x40fac5
dec eax
jne 0x40fad3
push str.https:__
jmp 0x40faca
push str.http:__
lea ecx, [esp + 0x20]
call fcn.004028ab
cmp dword [ebx + 0x28], 0x10
jb 0x40fade
mov eax, dword [ebx + 0x14]
jmp 0x40fae1
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041062e
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x40fb00
cmp dword [ebx + 0x80], 0x50
je 0x40fb45
cmp eax, 2
jne 0x40fb11
cmp dword [ebx + 0x80], 0x1bb
je 0x40fb45
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 0x40fbef
call fcn.004106b3
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x40fb9d
mov edx, dword [eax + 0x20]
jmp 0x40fba0
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x40fbab
mov eax, dword [eax + 4]
jmp 0x40fbae
add eax, 4
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x40fbbd
lea ecx, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x40fbd9
lea edi, [esp + 0x38]
lea esi, [esp + 0xc]
call fcn.004106de
jmp 0x40fb66
mov dword [esp + 0xc], str.add_cookie_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40fa8e
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.004028ce
call fcn.0040f871
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
call fcn.0040f871
inc eax
push eax
push edi
mov eax, ebx
call fcn.0040f8e9
push eax
push edi
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40fc6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x40fc6a
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0xc], str.request_failed...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40fa8e
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
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 0x40fa8e
mov dword [esp + 0xc], str.handle_not_opened...
push 0x42cdc0
lea eax, [esp + 0x10]
jmp 0x40fa8e