Function at 0x421811
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
push edi
test ecx, ecx
je 0x421a98
cmp ecx, 0xffffffff
je 0x421a98
cmp dword [esi + 0x84], 2
jne 0x421850
mov eax, 0x800000
jmp 0x421852
xor eax, eax
push 0
or eax, 0x4400040
push eax
push 0x46a2ac
push edx
push str.HTTP_1.0
push ebx
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc], eax
test eax, eax
je 0x421a61
cmp eax, 0xffffffff
je 0x421a61
push SysReAllocStringLen
mov edi, str.Accept:___r_n
push edi
call fcn.00428940
pop ecx
push eax
push edi
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x4218bb
mov dword [ebp - 0x30], str.additional_header_failed...
push 0x4664c0
lea eax, [ebp - 0x30]
push eax
call fcn.0042917e
cmp dword [esi + 0xbc], 0
jbe 0x4219f9
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040167c
mov eax, dword [esi + 0x84]
dec eax
je 0x4218ec
dec eax
jne 0x4218f9
push str.https:__
jmp 0x4218f1
push str.http:__
lea ecx, [ebp - 0x2c]
call fcn.004021ad
cmp dword [esi + 0x28], 0x10
jb 0x421904
mov eax, dword [esi + 0x14]
jmp 0x421907
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420a2f
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x421924
cmp dword [esi + 0x80], 0x50
je 0x421963
cmp eax, 2
jne 0x421935
cmp dword [esi + 0x80], 0x1bb
je 0x421963
push dword [esi + 0x80]
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push 0x45ece4
push eax
call fcn.0041faa8
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420a2f
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00420a2f
lea edi, [esi + 0xa4]
mov eax, dword [edi + 0x14]
push edi
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.00420575
push edi
push dword [edi + 0x14]
jmp 0x4219d5
lea ecx, [ebp - 0x34]
call fcn.0041fb1c
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x42199b
mov edx, dword [eax + 0x20]
jmp 0x42199e
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x4219a9
mov eax, dword [eax + 4]
jmp 0x4219ac
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x4219b8
lea ecx, [ebp - 0x28]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x421a6d
lea ecx, [ebp - 0x34]
call fcn.0041f9f1
push edi
push dword [edi + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00420575
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041f993
test al, al
je 0x421986
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017e8
mov ecx, esi
call fcn.004207a5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, esi
mov ebx, eax
call fcn.004207a5
inc eax
push eax
push ebx
mov ecx, esi
call fcn.00420816
push eax
push ebx
push dword [0x46a2a8]
call fcn.00428940
pop ecx
push eax
push dword [0x46a2a8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x421a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x421a79
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x30], str.request_failed...
jmp 0x4218ad
mov dword [ebp - 0x30], str.add_cookie_failed...
jmp 0x4218ad
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00429649
leave
ret 8
mov dword [ebp - 0x30], str.handle_not_opened...
jmp 0x4218ad