Function at 0x40e640
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 0x422096
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.004181c0
mov eax, dword [0x42e460]
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 0x42a6be
mov dword [ebp - 0x1060], eax
call fcn.00401b50
push 0
push 0
push 0
push 0
push 0x42abe8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x1064], edi
test edi, edi
je 0x40e96e
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 0x40e6de
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40e96e
push 1
push 0x600
push 0x4318d0
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 0x40e712
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x40e96e
push 0x42a6be
lea ecx, [ebp - 0x104c]
call fcn.00401810
push 0xffffffffffffffff
push 0
push dword [ebp - 0x1054]
lea ecx, [ebp - 0x104c]
mov dword [ebp - 4], 0
call fcn.004079d0
push str.Content_type:application_x_www_form_urlencoded__charsetutf8_r_n
lea ecx, [ebp - 0x1034]
call fcn.00401810
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.0041116e
push dword [ebp - 0x1050]
mov dword [ebp - 0x1058], eax
call fcn.0041116e
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.0041116e
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.004181f0
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 0x40e8f2
mov edi, dword [ebp - 0x1060]
lea esp, [esp]
cmp dword [ebp - 0x1050], 0
jbe 0x40e8ec
cmp byte [ebp - 0x101c], 0
jne 0x40e896
xor eax, eax
jmp 0x40e8a9
lea eax, [ebp - 0x101c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e8a0
sub eax, edx
push eax
lea eax, [ebp - 0x101c]
mov ecx, edi
push eax
call fcn.0040a800
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.004181f0
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 0x40e880
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.00412474
push dword [ebp - 0x1058]
call fcn.00412474
push dword [ebp - 0x105c]
call fcn.00412474
add esp, 0xc
cmp dword [ebp - 0x1020], 0x10
jb 0x40e93c
push dword [ebp - 0x1034]
call fcn.00411307
add esp, 4
cmp dword [ebp - 0x1038], 0x10
mov dword [ebp - 0x1020], 0xf
mov dword [ebp - 0x1024], 0
mov byte [ebp - 0x1034], 0
jb 0x40e96e
push dword [ebp - 0x104c]
call fcn.00411307
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.004112f8
mov esp, ebp
pop ebp
ret