Function at 0x4017d0
Capabilities:
Create directory
Create process on windows
Delete file
Enumerate files on windows
Extract resource via kernel32 functions
Get common file path
Get program files directory
Set current directory
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x94c
mov eax, dword [0x408098]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push edi
mov edi, dword [esp + 0x95c]
push str.DATAEX
push str.RUNFILE
push edi
mov dword [esp + 0x960], eax
mov dword [0x4083ec], edi
mov dword [esp + 0x18], 0x406224
call ebx
mov esi, eax
test esi, esi
jne 0x401837
mov eax, dword [0x4083ec]
push str.DATAEX
push str.CHMFILE
push eax
mov dword [esp + 0x18], 0x406214
call ebx
mov esi, eax
test esi, esi
je 0x401b7b
mov ecx, dword [0x4083ec]
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x4083ec]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
lea eax, [esp + 0x558]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.RunShell_
lea ecx, [esp + 0x55c]
push ecx
call esi
push 0
lea edx, [esp + 0x55c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x558]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4062dc
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x418]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40191a
test byte [esp + 0x418], 0x10
jne 0x401907
lea edx, [esp + 0x558]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x418]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4018d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.RSF_
lea edx, [esp + 0x55c]
push edx
call esi
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00405ba9
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x55c]
push edx
call esi
push 0x4063e4
lea eax, [esp + 0x55c]
push eax
call esi
push 0x10
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00405ba9
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x55c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x55c]
push edx
call esi
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [esp + 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov bl, 0x43
lea esp, [esp]
movsx edx, bl
push edx
lea eax, [esp + 0x1c]
push str._c:Program_FilesFancyBoxII_Games_system_
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x401a07
inc bl
cmp bl, 0x5a
jle 0x4019e0
jmp 0x401a0c
cmp bl, 0x5a
jle 0x401a57
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push str._sFancyBoxII_Games_
push ecx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
call edi
push str.system_
lea eax, [esp + 0x1c]
push eax
call esi
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
jmp 0x401a5d
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.ActiveX_
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
pop ebp
jne 0x401a7d
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
push str.fc2boot.dll
lea edx, [esp + 0x18]
push edx
call esi
mov eax, dword [0x4083ec]
push str.DATAEX
push str.BOOTDLL
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x4083ec]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x4083ec]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 1
mov ebx, eax
push 0x40000000
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x401b2d
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jb 0x401b2d
push 0x406348
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401b26
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push 0
push 0
lea eax, [esp + 0x560]
push eax
push 0x406370
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jae 0x401b63
mov ecx, dword [0x4083f0]
push 0x10
push 0
push 0x40635c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x948]
call fcn.00401f42
add esp, 0x94c
ret
push 0
push edi
push 0
push 0
push 0xc8
push 0x12c
push 0
push 0x80000000
push 0xca0000
push 0x408388
push 0x408320
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401b63
mov edx, dword [esp + 0x960]
push edx
push esi
mov dword [0x4083f0], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x954]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.00401f42
add esp, 0x94c
ret