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

Disassembly:
sub esp, 0x588
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x584], eax
lea eax, [esp]
mov dword [esp], 0xc
mov dword [esp + 8], 0
test eax, eax
je 0x40103d
push 0
lea ecx, [esp + 8]
push ecx
push 1
push str.D:_A_OICI_GA___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
push ebx
push esi
push edi
push 0x104
lea edx, [esp + 0x490]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
push str.DECOMPRESSOR
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
call ebx
push 0xa
push str.ARCHIVE
push 0
mov edi, eax
call esi
push eax
call ebx
mov ebx, eax
test edi, edi
je 0x4013a2
push ebp
push edi
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
call ebp
push ebx
push 0
mov dword [esp + 0x24], eax
call esi
push eax
call ebp
push edi
push 0
mov ebp, eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call edi
push ebx
push 0
mov dword [esp + 0x28], eax
call esi
push eax
call edi
lea ecx, [esp + 0x38c]
push ecx
push 0x104
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4013a1
lea eax, [esp + 0x38c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4010f5
mov edx, dword [str.cetrainers]
mov ecx, dword [0x4092f0]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [eax], edx
mov dx, word [0x4092f4]
mov dword [eax + 4], ecx
mov cl, byte [0x4092f6]
mov word [eax + 8], dx
lea edx, [esp + 0x10]
mov byte [eax + 0xa], cl
push edx
lea eax, [esp + 0x390]
push eax
call esi
lea ecx, [esp + 0x80]
push ecx
push 0
push 0x4092f8
lea edx, [esp + 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4013a1
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x84]
push edx
call esi
test eax, eax
je 0x4013a1
xor eax, eax
jmp 0x401190
mov cl, byte [esp + eax + 0x80]
mov byte [esp + eax + 0x288], cl
inc eax
test cl, cl
jne 0x401190
lea edi, [esp + 0x288]
dec edi
jmp 0x4011b0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011b0
mov ax, word [0x4092fc]
mov word [edi], ax
lea eax, [esp + 0x288]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4011d0
mov ecx, dword [str.CET_Archive.dat]
mov edx, dword [0x409304]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [eax], ecx
mov ecx, dword [0x409308]
push 0
mov dword [eax + 4], edx
mov edx, dword [0x40930c]
push 0x80
mov dword [eax + 8], ecx
push 2
mov dword [eax + 0xc], edx
lea eax, [esp + 0x1c]
push eax
push 3
push 0x40000000
lea ecx, [esp + 0x2a0]
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x401241
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401250
mov cl, byte [esp + eax + 0x80]
mov byte [esp + eax + 0x184], cl
inc eax
test cl, cl
jne 0x401250
lea edi, [esp + 0x184]
dec edi
jmp 0x401270
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401270
mov cx, word [0x4092fc]
lea eax, [esp + 0x490]
mov word [edi], cx
mov esi, eax
jmp 0x401290
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401290
lea edi, [esp + 0x184]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4012a1
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
lea edx, [esp + 0x1c]
push edx
push 3
mov ecx, eax
push 0x40000000
lea eax, [esp + 0x19c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x4012fb
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00405730
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x88]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1a8]
push edx
mov dword [esp + 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401365
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401379
push 0x10
push str.Trainer_failure
push str.Failure_loading_the_trainer._Your_tempfolder_must_allow_execution.__Check_your_anti_virus__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x288]
push ecx
call esi
lea edx, [esp + 0x184]
push edx
call esi
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
mov ecx, dword [esp + 0x590]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004013c4
add esp, 0x588
ret 0x10