Function at 0x40e170
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3806
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x20], 0
jne 0x40e4e8
cmp dword [edi + 0x7c], 0
je 0x40e4e8
mov eax, dword [edi + 4]
cmp eax, dword [edi]
jbe 0x40e4e8
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
push 0x4c6d48
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x148], 0
movups xmmword [ebp - 0x15c], xmm0
call fcn.004127b0
lea eax, [edi + 0x24]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40e203
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0x15c]
call fcn.00413580
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x130], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x144], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x134], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x144]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [edi + 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.00410200
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x114], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x118], xmm0
mov byte [ebp - 4], 3
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x130]
cmp ecx, 0x10
jb 0x40e2ef
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e503
push ecx
push edx
call fcn.004885c3
add esp, 8
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x148]
cmp ecx, 0x10
jb 0x40e348
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e33e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e503
push ecx
push edx
call fcn.004885c3
add esp, 8
cmp dword [edi + 0x80], 0x10
lea edx, [edi + 0x6c]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
jb 0x40e371
mov edx, dword [edx]
cmp dword [0x4e7034], 0x10
mov ecx, 0x4e7020
push edx
cmovae ecx, dword [0x4e7020]
mov eax, 0x4e7008
cmp dword [0x4e701c], 0x10
push ecx
cmovae eax, dword [0x4e7008]
push eax
push str.ftp:___s__s__s
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00408d90
add esp, 0x18
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 0x10
cmovae eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x110]
lea esi, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x4c707c
cmovae esi, dword [ebp - 0x128]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea eax, [ebp - 0x12c]
push eax
push 0
push esi
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
js 0x40e4b2
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
jb 0x40e425
mov eax, dword [eax]
push eax
push str.2Downloaded_latest_version_of_5Tiny6Rcon2:_1v_s_n
add edi, 0x284
push 0x200
push edi
call fcn.00408d90
add esp, 0x10
mov edx, edi
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
lea ecx, [ebp - 0x128]
cmp dword [ebp - 0x114], 0x10
cmovae ecx, dword [ebp - 0x128]
call fcn.0040b0d0
test al, al
jne 0x40e508
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push eax
push str.1Couldnt_start_the_temporary_version:_3_s_n
push 0x200
push edi
call fcn.00408d90
add esp, 0x10
mov edx, edi
push 1
push 1
push ecx
mov ecx, dword [0x4e3440]
call fcn.004600e0
add esp, 0xc
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x40e4e8
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e4de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e532
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret
call fcn.0049a67c
mov eax, dword [0x4e3420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40e51a
push eax
call esi
mov eax, dword [0x4e3424]
test eax, eax
je 0x40e526
push eax
call esi
call fcn.0040b000
push 0
call fcn.00499a40
call fcn.0049a67c
int3