Function at 0x40ae40
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dab6
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.00414f30
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1054], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, eax
push 0
push 0x42549e
mov dword [ebp - 0x1060], eax
call fcn.00401a60
push 0
push 0
push 0
push 0
push 0x425700
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x1064], edi
test edi, edi
je 0x40b16e
push 1
push 0
push 3
push 0
push 0
push 0x50
push str.api.elementsbrowser.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x40aede
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40b16e
push 1
push 0x600
push 0x42c888
push 0
push 0
push esi
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40af12
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x40b16e
push 0x42549e
lea ecx, [ebp - 0x104c]
call fcn.00401780
push 0xffffffffffffffff
push 0
push dword [ebp - 0x1054]
lea ecx, [ebp - 0x104c]
mov dword [ebp - 4], 0
call fcn.004071a0
push str.Content_type:application_x_www_form_urlencoded__charsetutf8_r_n
lea ecx, [ebp - 0x1034]
call fcn.00401780
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [ebp - 0x103c]
mov edx, 2
lea eax, [eax*4 + 1]
mov dword [ebp - 0x1050], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040de5e
push dword [ebp - 0x1050]
mov dword [ebp - 0x1058], eax
call fcn.0040de5e
add esp, 8
mov dword [ebp - 0x105c], eax
cmp dword [ebp - 0x1038], 0x10
lea ecx, [ebp - 0x104c]
cmovae ecx, dword [ebp - 0x104c]
push dword [ebp - 0x1050]
push dword [ebp - 0x1058]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push dword [ebp - 0x1050]
push dword [ebp - 0x105c]
push 0xffffffffffffffff
push dword [ebp - 0x1058]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x1050]
call fcn.0040de5e
add esp, 4
mov dword [ebp - 0x1054], eax
lea ecx, [ebp - 0x1050]
push 0
push ecx
push eax
push dword [ebp - 0x105c]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push dword [ebp - 0x1050]
cmp dword [ebp - 0x1020], 0x10
lea ecx, [ebp - 0x1034]
push dword [ebp - 0x1054]
cmovae ecx, dword [ebp - 0x1034]
push dword [ebp - 0x1024]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x1002
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.00414f60
add esp, 0xc
lea eax, [ebp - 0x1050]
push eax
push 0x1000
lea eax, [ebp - 0x101c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40b0f2
mov edi, dword [ebp - 0x1060]
lea esp, [esp]
cmp dword [ebp - 0x1050], 0
jbe 0x40b0ec
cmp byte [ebp - 0x101c], 0
jne 0x40b096
xor eax, eax
jmp 0x40b0a9
lea eax, [ebp - 0x101c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b0a0
sub eax, edx
push eax
lea eax, [ebp - 0x101c]
mov ecx, edi
push eax
call fcn.0040b540
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.00414f60
add esp, 0xc
lea eax, [ebp - 0x1050]
push eax
push 0x1000
lea eax, [ebp - 0x101c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40b080
mov edi, dword [ebp - 0x1064]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
push dword [ebp - 0x1054]
call fcn.0040f3d7
push dword [ebp - 0x1058]
call fcn.0040f3d7
push dword [ebp - 0x105c]
call fcn.0040f3d7
add esp, 0xc
cmp dword [ebp - 0x1020], 0x10
jb 0x40b13c
push dword [ebp - 0x1034]
call fcn.0040dff7
add esp, 4
cmp dword [ebp - 0x1038], 0x10
mov dword [ebp - 0x1020], 0xf
mov dword [ebp - 0x1024], 0
mov byte [ebp - 0x1034], 0
jb 0x40b16e
push dword [ebp - 0x104c]
call fcn.0040dff7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret