Function at 0x404aa1
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419ef9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4241d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4241d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor edi, edi
cmp ecx, edi
je 0x404d8e
cmp ecx, 0xffffffff
je 0x404d8e
cmp dword [ebx + 0x84], 2
jne 0x404b06
mov eax, 0x800000
jmp 0x404b08
xor eax, eax
push edi
or eax, 0x4400040
push eax
push 0x4262ac
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 0x404d78
cmp eax, 0xffffffff
je 0x404d78
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x404b69
mov dword [esp + 0x10], str.additional_header_failed...
push 0x422228
lea eax, [esp + 0x14]
push eax
call fcn.0040d12b
mov eax, dword [ebx + 0xbc]
cmp eax, edi
jbe 0x404cdc
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
call fcn.004020ae
mov dword [esp + 0x58], edi
mov eax, dword [ebx + 0x84]
dec eax
je 0x404ba0
dec eax
jne 0x404bae
push str.https:__
jmp 0x404ba5
push str.http:__
lea ecx, [esp + 0x24]
call fcn.00401ae6
cmp dword [ebx + 0x28], 0x10
jb 0x404bb9
mov eax, dword [ebx + 0x14]
jmp 0x404bbc
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405770
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x404bdb
cmp dword [ebx + 0x80], 0x50
je 0x404c20
cmp eax, 2
jne 0x404bec
cmp dword [ebx + 0x80], 0x1bb
je 0x404c20
push dword [ebx + 0x80]
xor eax, eax
mov word [esp + 0x40], ax
lea edi, [esp + 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push 0x41d59c
push eax
call fcn.0040bf76
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405770
push esi
lea eax, [esp + 0x24]
push eax
call fcn.00405770
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xa4]
lea edi, [esp + 0x10]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.00405791
test al, al
je 0x404cca
call fcn.004057ae
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x404c78
mov edx, dword [eax + 0x20]
jmp 0x404c7b
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x404c86
mov eax, dword [eax + 4]
jmp 0x404c89
add eax, 4
cmp dword [esp + 0x38], 0x10
mov ecx, dword [esp + 0x24]
jae 0x404c98
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x404cb4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x18]
call fcn.004057d9
jmp 0x404c41
mov dword [esp + 0x10], str.add_cookie_failed...
push 0x422228
lea eax, [esp + 0x14]
jmp 0x404b63
or dword [esp + 0x58], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.004020ca
call fcn.00404926
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.00404926
inc eax
push eax
push edi
mov eax, ebx
call fcn.0040499e
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 0x404d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x404d4a
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x18], str.request_failed...
push 0x422228
lea eax, [esp + 0x1c]
jmp 0x404b63
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040b557
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x10], str.request_failed...
push 0x422228
lea eax, [esp + 0x14]
jmp 0x404b63
mov dword [esp + 0x10], str.handle_not_opened...
push 0x422228
lea eax, [esp + 0x14]
jmp 0x404b63