Function at 0x403a80
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 0x408aa1
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
call fcn.004030d0
mov bl, al
cmp bl, 5
jne 0x403ab0
call fcn.00403160
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push str.C:OKGFile
call ebp
push str.C:OKGFile
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or al, 2
push eax
push str.C:OKGFile
call edi
push str.C:OKGFileOKGCon.exe
push 0x9c
call fcn.00403170
add esp, 8
test eax, eax
je 0x403e2d
push str.C:OKGFileXSBIndex.ref
push 0xa7
call fcn.00403170
push str.C:OKGFileubs.okd
push 0xac
call fcn.00403170
push str.C:OKGFileupdate.exe
push 0xa0
call fcn.00403170
push str.C:OKGFileOKSvc.exe
push 0xa3
call fcn.00403170
push str.C:OKGFile_sbghost.img
push 0xae
call fcn.00403170
add esp, 0x28
test eax, eax
je 0x403e2d
lea eax, [esp + 0x14]
push eax
call fcn.00401cb0
add esp, 4
lea ecx, [esp + 0x14]
push str.SBGHOST.IMG
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x134], 0
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.C:OKGFile_sbghost.img
push eax
call esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0
push str.C:OKGFileDOSTOOLS
call ebp
push str.C:OKGFileDOSTOOLSGhost.exe
push 0xad
call fcn.00403170
add esp, 8
test eax, eax
jne 0x403bcb
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ebf
lea eax, [esp + 0x14]
push str._top.bmp
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFile_top.bmp
push eax
call esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push str.okgstr.ini
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push str.C:OKGFileokgstr.ini
push eax
call esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
cmp bl, 5
je 0x403c2b
cmp bl, 6
jne 0x403cb9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
push str.Drivers_sioctl.sys
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
push eax
push 0x9f
call fcn.00403170
add esp, 8
mov byte [esp + 0x128], 0
test eax, eax
lea ecx, [esp + 0x18]
jne 0x403cae
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ebf
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp bl, 5
jne 0x403e34
lea ecx, [esp + 0x10]
call fcn.0040809a
movsx ecx, byte [0x40d031]
push ecx
lea edx, [esp + 0x14]
push str._c:_sbldr
push edx
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0x80
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
push 0x98
call fcn.00403170
add esp, 8
test eax, eax
jne 0x403d48
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ebf
movsx eax, byte [0x40d031]
push eax
lea ecx, [esp + 0x14]
push str._c:_sbldr.mbr
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
push 0x9e
call fcn.00403170
add esp, 8
test eax, eax
je 0x403d1c
mov al, byte [0x40d031]
cmp al, 0x43
je 0x403dd8
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push str._c:OKGFile
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
call ebp
movsx ecx, byte [0x40d031]
push ecx
lea edx, [esp + 0x14]
push str._c:OKGFile_sbghost.img
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
push 0xae
call fcn.00403170
add esp, 0x14
test eax, eax
je 0x403d1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
push str.C:OKGFileUninst.exe
push 0x9d
call fcn.00403170
add esp, 8
test eax, eax
je 0x403e1d
push str.C:OKGFileXSBInst.exe
push 0xa9
call fcn.00403170
add esp, 8
call fcn.00402680
test eax, eax
jne 0x403e83
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403ebf
cmp bl, 6
je 0x403de9
push 0
push str.C:_sbldr
call dword [sym.imp.MSVCRT.dll__access]
or esi, 0xffffffff
add esp, 8
cmp eax, esi
je 0x403e67
push 0x80
push str.C:_sbldr
call edi
push str.C:_sbldr
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:_sbldr
push 0x98
call fcn.00403170
add esp, 8
test eax, eax
jne 0x403dec
jmp 0x403e1d
call fcn.00401380
call fcn.004018c0
push 0
push 0
push str._Service
push str.C:OKGFileOKSvc.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00403400
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], esi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret