Function at 0x401000
Capabilities:
Create directory
Create process on windows
Delete directory
Delete file
Extract resource via kernel32 functions
Get common file path
Get file version info
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe04
push ebp
lea eax, [esp + 0xc]
push esi
push edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 0
test eax, eax
je 0x40103a
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
push str.D:_A_OICI_GA___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
push 0x104
lea edx, [esp + 0x4dc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [esp + eax + 0x4d8]
mov byte [esp + eax + 0x2c8], cl
inc eax
test cl, cl
jne 0x401051
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x2c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 0x2c8]
push edx
push str._ORIGIN:__s_
lea eax, [esp + 0x5e8]
push 0x114
push eax
call fcn.00401528
add esp, 0x10
lea ecx, [esp + 0x4d8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
push str.ARCHIVE
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov ebp, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x3d0]
push edx
push 0x104
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4014f1
lea eax, [esp + 0x3d0]
dec eax
jmp 0x401110
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401110
mov ecx, dword [str.cetrainers]
mov edx, dword [0x40e448]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [eax], ecx
mov cx, word [0x40e44c]
mov dword [eax + 4], edx
mov dl, byte [0x40e44e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3d4]
push ecx
call esi
lea edx, [esp + 0xb8]
push edx
push 0
push 0x40e450
lea eax, [esp + 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4014d2
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xbc]
push eax
call esi
test eax, eax
je 0x4014b3
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0xb8]
mov byte [esp + eax + 0x6f8], cl
inc eax
test cl, cl
jne 0x4011a0
lea edi, [esp + 0x6f8]
dec edi
jmp 0x4011c0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011c0
mov cx, word [0x40e454]
lea eax, [esp + 0x6f8]
mov word [edi], cx
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4011e0
mov edx, dword [str.CET_TRAINER.CETRAINER]
mov ecx, dword [0x40e45c]
mov dword [eax], edx
mov edx, dword [0x40e460]
mov dword [eax + 4], ecx
mov ecx, dword [0x40e464]
mov dword [eax + 8], edx
mov edx, dword [0x40e468]
push 0
push 0x80
mov dword [eax + 0xc], ecx
mov cx, word [0x40e46c]
mov dword [eax + 0x10], edx
push 2
lea edx, [esp + 0x20]
push edx
push 3
mov word [eax + 0x14], cx
push 0x40000000
lea eax, [esp + 0x710]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x401263
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x40]
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c4]
push ecx
push 0
push str..CETRAINER
push 2
push 0
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringA]
mov esi, eax
test esi, esi
jl 0x4013f1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c4]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401310
push esi
call fcn.00401595
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push esi
push ecx
lea edx, [esp + 0x1cc]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401303
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40e454
push ebp
mov dword [esp + 0x38], 4
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401303
mov edx, dword [esp + 0x20]
cmp dword [edx + 8], 0x60003
sbb edi, edi
inc edi
push ebp
call fcn.0040165f
add esp, 4
test edi, edi
jne 0x401321
push 0x10
push str.Launch_Error
push str.Please_update_your_Ponyy_Finder_version_to_Ponyy_Finder_6.3_or_later_n
jmp 0x401484
push 0x44
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00406710
xor eax, eax
lea ecx, [esp + 0x5ec]
push ecx
lea edx, [esp + 0x708]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x1d4]
push eax
push str.__s____s___s
lea ecx, [esp + 0xc14]
push 0x218
push ecx
mov dword [esp + 0x64], 0x44
call fcn.00401528
add esp, 0x24
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc0]
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0xc18]
push edx
lea eax, [esp + 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40148c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x6fc]
push edx
call fcn.004017c7
add esp, 8
test eax, eax
jne 0x40148c
push 0x3e8
call edi
sub esi, 1
jne 0x4013c0
jmp 0x40148c
push 5
push 0
lea eax, [esp + 0x5e8]
push eax
lea ecx, [esp + 0x704]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40145a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
jmp 0x401430
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x6fc]
push eax
call fcn.004017c7
add esp, 8
test eax, eax
jne 0x40148c
push 0x3e8
call edi
sub esi, 1
jne 0x401430
jmp 0x40148c
push esi
push str.Your_system_must_have_Ponyy_Finder_installed_to_be_able_to_use_this_trainer_nwww.PonyyFinder.org_n__x_
lea ecx, [esp + 0xb00]
push 0xfe
push ecx
call fcn.00401528
add esp, 0x10
push 0x10
push str.Launch_Error
lea edx, [esp + 0xb00]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x6f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Launch_Error
push str.Failure_creating_a_temporary_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Launch_Error
push str.Failure_assigning_a_temporary_name
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Launch_Error
push str.Failure_getting_the_temp_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10