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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408fcc
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
call fcn.00403390
mov bl, al
cmp bl, 5
jne 0x403d50
call fcn.00403420
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x40e91c
call ebp
push 0x40e91c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or al, 2
push eax
push 0x40e91c
call edi
push 0x40e160
push 0x9c
call fcn.00403430
add esp, 8
test eax, eax
je 0x404085
push str.C:OKGFileXSBIndex.ref
push 0xa7
call fcn.00403430
push str.C:OKGFileubs.okd
push 0xac
call fcn.00403430
push str.C:OKGFileXug.dll
push 0xa0
call fcn.00403430
lea eax, [esp + 0x30]
push eax
call fcn.00401e40
add esp, 0x1c
lea ecx, [esp + 0x18]
push str.SBGHOST.IMG
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x40e8b4
push eax
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0
push str.C:OKGFileDOSTOOLS
call ebp
lea eax, [esp + 0x18]
push str.Ghost.exe
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFileDOSTOOLSGhost.exe
push eax
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
push 0x40e868
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFile_top.bmp
push eax
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push 0x40e848
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFileokgstr.ini
push eax
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
cmp bl, 5
je 0x403e9a
cmp bl, 6
jne 0x403f28
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x40e388
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
push edx
push 0x9f
call fcn.00403430
add esp, 8
mov byte [esp + 0x12c], 0
test eax, eax
lea ecx, [esp + 0x14]
jne 0x403f1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404163
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp bl, 5
jne 0x40408c
lea ecx, [esp + 0x10]
call fcn.00408566
movsx eax, byte [0x40e041]
push eax
lea ecx, [esp + 0x14]
push str._c:_sbldr
push ecx
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x80
push edx
call edi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
push 0x98
call fcn.00403430
add esp, 8
test eax, eax
jne 0x403fb7
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404163
movsx edx, byte [0x40e041]
push edx
lea eax, [esp + 0x14]
push str._c:_sbldr.mbr
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
push 0x9e
call fcn.00403430
add esp, 8
test eax, eax
je 0x403f8b
mov al, byte [0x40e041]
cmp al, 0x43
je 0x404030
movsx eax, al
push eax
lea ecx, [esp + 0x14]
push str._c:OKGFile
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
call ebp
movsx eax, byte [0x40e041]
push eax
lea ecx, [esp + 0x14]
push str._c:OKGFile_sbghost.img
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
push str.C:OKGFileUninst.exe
push 0x9d
call fcn.00403430
add esp, 8
test eax, eax
je 0x404075
push str.C:OKGFileXSBInst.exe
push 0xa9
call fcn.00403430
add esp, 8
call fcn.00402810
test eax, eax
jne 0x4040db
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404163
cmp bl, 6
je 0x404041
push 0
push 0x40e44c
call dword [sym.imp.MSVCRT.dll__access]
or esi, 0xffffffff
add esp, 8
cmp eax, esi
je 0x4040bf
push 0x80
push 0x40e44c
call edi
push 0x40e44c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40e44c
push 0x98
call fcn.00403430
add esp, 8
test eax, eax
jne 0x404044
jmp 0x404075
mov eax, dword [0x40ebb4]
test eax, eax
je 0x4040e9
call fcn.00401090
call fcn.004014a0
call fcn.00401a50
push 0x40e7e8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x40edfc]
mov byte [esp + 0x12c], 3
test eax, eax
je 0x404120
push str.__hide
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push 0x40e160
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004036c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], esi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret