Function at 0x4044a4
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 0x404740
cmp ecx, 0xffffffff
je 0x404740
cmp dword [ebx + 0x84], 2
jne 0x404509
mov eax, 0x800000
jmp 0x40450b
xor eax, eax
push edi
or eax, 0x4000000
push eax
push 0x4262a8
push edx
push str.HTTP_1.0
push esi
push 0x41d544
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x40472a
cmp eax, 0xffffffff
je 0x40472a
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40456c
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 0x4046e1
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 0x4045a3
dec eax
jne 0x4045b1
push str.https:__
jmp 0x4045a8
push str.http:__
lea ecx, [esp + 0x24]
call fcn.00401ae6
cmp dword [ebx + 0x28], 0x10
jb 0x4045bc
mov eax, dword [ebx + 0x14]
jmp 0x4045bf
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405770
mov eax, dword [ebx + 0x84]
cmp eax, 1
jne 0x4045de
cmp dword [ebx + 0x80], 0x50
je 0x404623
cmp eax, 2
jne 0x4045ef
cmp dword [ebx + 0x80], 0x1bb
je 0x404623
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 0x4046cd
call fcn.004057ae
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x40467b
mov edx, dword [eax + 0x20]
jmp 0x40467e
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x404689
mov eax, dword [eax + 4]
jmp 0x40468c
add eax, 4
cmp dword [esp + 0x38], 0x10
mov ecx, dword [esp + 0x24]
jae 0x40469b
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x4046b7
lea edi, [esp + 0x3c]
lea esi, [esp + 0x18]
call fcn.004057d9
jmp 0x404644
mov dword [esp + 0x10], str.add_cookie_failed...
push 0x422228
lea eax, [esp + 0x14]
jmp 0x404566
or dword [esp + 0x58], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.004020ca
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 0x404708
mov dword [esp + 0x18], str.request_failed...
push 0x422228
lea eax, [esp + 0x1c]
jmp 0x404566
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 0x404566
mov dword [esp + 0x10], str.handle_not_opened...
push 0x422228
lea eax, [esp + 0x14]
jmp 0x404566