Function at 0x404180
Capabilities:
Copy file
Create directory
Create process on windows
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x409017
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403390
cmp al, 5
mov byte [esp + 0x23], al
jne 0x4041b3
call fcn.00403420
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x40e91c
call ebx
push 0x40e91c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or al, 2
push eax
push 0x40e91c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
call fcn.00408566
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_CString::LoadStringA
push 0x40e160
push 0x9c
call fcn.00403430
add esp, 8
test eax, eax
jne 0x40423e
mov eax, dword [esp + 0x10]
push 0x30
push eax
push 0x40e9b4
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404759
push str.C:OKGFileXSBIndex.ref
push 0xa7
call fcn.00403430
push str.C:OKGFileubs.okd
push 0xac
call fcn.00403430
mov ecx, dword [esi + 0x80]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
push 0
push 0xa
push 0x402
push ecx
call ebp
push str.C:OKGFileXug.dll
push 0xa0
call fcn.00403430
mov edx, dword [esi + 0x80]
add esp, 8
push 0
push 0x14
push 0x402
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call fcn.00401e40
add esp, 4
lea ecx, [esp + 0x18]
push str.SBGHOST.IMG
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x40e8b4
push eax
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push 0
push str.C:OKGFileDOSTOOLS
call ebx
lea eax, [esp + 0x18]
push str.Ghost.exe
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFileDOSTOOLSGhost.exe
push eax
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
push 0x40e868
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFile_top.bmp
push eax
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push 0x40e848
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFileokgstr.ini
push eax
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x80]
push 0
push 0x1e
push 0x402
push eax
call ebp
mov al, byte [esp + 0x23]
cmp al, 5
je 0x404385
cmp al, 6
jne 0x404441
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x40e388
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x1c]
push eax
push 0x9f
call fcn.00403430
add esp, 8
test eax, eax
jne 0x40442c
mov ecx, dword [esp + 0x10]
push 0x10
push ecx
push 0x40e99c
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov byte [esp + 0x134], 1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404759
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x23]
cmp al, 5
jne 0x4045a4
lea ecx, [esp + 0x14]
call fcn.00408566
movsx edx, byte [0x40e041]
push edx
lea eax, [esp + 0x18]
push str._c:_sbldr
push eax
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
push 0x98
call fcn.00403430
add esp, 8
test eax, eax
jne 0x4044b5
mov ecx, dword [esp + 0x10]
push 0x10
push ecx
push 0x40e988
jmp 0x4044f8
movsx edx, byte [0x40e041]
push edx
lea eax, [esp + 0x18]
push str._c:_sbldr.mbr
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
push 0x9e
call fcn.00403430
add esp, 8
test eax, eax
jne 0x404510
mov eax, dword [esp + 0x10]
push 0x10
push eax
push 0x40e970
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov byte [esp + 0x134], 1
lea ecx, [esp + 0x14]
jmp 0x4043fb
mov al, byte [0x40e041]
cmp al, 0x43
je 0x404569
movsx ecx, al
push ecx
lea edx, [esp + 0x18]
push str._c:OKGFile
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push eax
call ebx
movsx ecx, byte [0x40e041]
push ecx
lea edx, [esp + 0x18]
push str._c:OKGFile_sbghost.img
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x80
push 0x40e44c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40e44c
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
or edi, 0xffffffff
push str.C:OKGFileUninst.exe
push 0x9d
call fcn.00403430
add esp, 8
test eax, eax
jne 0x4045fe
mov ecx, dword [esp + 0x10]
push 0x10
push ecx
push 0x40e954
jmp 0x40465b
cmp al, 6
je 0x40457a
push 0
push 0x40e44c
call dword [sym.imp.MSVCRT.dll__access]
or edi, 0xffffffff
add esp, 8
cmp eax, edi
je 0x4045da
push 0x80
push 0x40e44c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40e44c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40e44c
push 0x98
call fcn.00403430
add esp, 8
test eax, eax
jne 0x40457d
mov eax, dword [esp + 0x10]
push 0x10
push eax
push 0x40e988
jmp 0x40465b
mov edx, dword [esi + 0x80]
push 0
push 0x46
push 0x402
push edx
call ebp
push str.C:OKGFileXSBInst.exe
push 0xa9
call fcn.00403430
add esp, 8
test eax, eax
jne 0x404634
mov eax, dword [esp + 0x10]
push 0x10
push eax
push 0x40e938
jmp 0x40465b
mov ecx, dword [esi + 0x80]
push 0
push 0x50
push 0x402
push ecx
call ebp
call fcn.00402810
test eax, eax
jne 0x40468a
mov edx, dword [esp + 0x10]
push 0x10
push edx
push 0x40e928
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404759
mov eax, dword [esi + 0x80]
push 0
push 0x5a
push 0x402
push eax
call ebp
mov eax, dword [0x40ed24]
test eax, eax
je 0x4046bc
call fcn.00401090
mov ecx, dword [esi + 0x80]
push 0
push 0x5f
push 0x402
push ecx
call ebp
call fcn.004014a0
call fcn.00401a50
push 0x40e7e8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x40edfc]
mov byte [esp + 0x134], 4
test eax, eax
je 0x4046f3
push str.__hide
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x24]
push 0
push 0
push edx
push 0x40e160
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004036c0
mov eax, dword [esi + 0x80]
push 0
push 0x64
push 0x402
push eax
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret