Function at 0x4215e3
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 0x421805
cmp ecx, 0xffffffff
je 0x421805
cmp dword [esi + 0x84], 2
jne 0x421622
mov eax, 0x800000
jmp 0x421624
xor eax, eax
push 0
or eax, 0x4000000
push eax
push 0x46a2a4
push edx
push str.HTTP_1.0
push ebx
push 0x45d84c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4217dd
cmp eax, 0xffffffff
je 0x4217dd
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 0x42168d
mov dword [ebp - 0x30], str.additional_header_failed...
push 0x4664c0
lea eax, [ebp - 0x30]
push eax
call fcn.0042917e
xor eax, eax
cmp dword [esi + 0xbc], eax
jbe 0x4217c9
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040167c
mov eax, dword [esi + 0x84]
dec eax
je 0x4216be
dec eax
jne 0x4216cb
push str.https:__
jmp 0x4216c3
push str.http:__
lea ecx, [ebp - 0x2c]
call fcn.004021ad
cmp dword [esi + 0x28], 0x10
jb 0x4216d6
mov eax, dword [esi + 0x14]
jmp 0x4216d9
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420a2f
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x4216f6
cmp dword [esi + 0x80], 0x50
je 0x421735
cmp eax, 2
jne 0x421707
cmp dword [esi + 0x80], 0x1bb
je 0x421735
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 0x4217a3
lea ecx, [ebp - 0x34]
call fcn.0041fb1c
mov eax, dword [eax]
cmp dword [eax + 0x34], 0x10
jb 0x42176d
mov edx, dword [eax + 0x20]
jmp 0x421770
lea edx, [eax + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x42177b
mov eax, dword [eax + 4]
jmp 0x42177e
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x42178a
lea ecx, [ebp - 0x28]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
je 0x4217e9
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 0x421758
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017e8
xor eax, eax
push eax
push eax
push eax
push eax
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4217f5
mov dword [ebp - 0x30], str.request_failed...
jmp 0x42167f
mov dword [ebp - 0x30], str.add_cookie_failed...
jmp 0x42167f
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00429649
leave
ret 8
mov dword [ebp - 0x30], str.handle_not_opened...
jmp 0x42167f