Function at 0x403f20
Capabilities:
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 0x408d96
push eax
mov dword fs:[0], esp
sub esp, 0x10c
call fcn.00401dc0
test eax, eax
je 0x403f49
call fcn.00401ed0
push ebx
push ebp
push esi
push edi
call fcn.00403530
mov bl, al
cmp bl, 5
jne 0x403f5e
call fcn.004035c0
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 esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or al, 2
push eax
push str.C:OKGFile
call esi
push str.C:OKGFileOKGCon.exe
push 0x9c
call fcn.004035d0
add esp, 8
test eax, eax
je 0x40418a
push str.C:OKGFileXSBIndex.ref
push 0xa7
call fcn.004035d0
push str.C:OKGFileXug.dll
push 0xa0
call fcn.004035d0
push str.C:OKGFileOKSvr.exe
push 0xa3
call fcn.004035d0
push str.C:OKGFile_sbghost.img
push 0x9b
call fcn.004035d0
add esp, 0x20
test eax, eax
je 0x40418a
cmp bl, 5
je 0x403ff7
cmp bl, 6
jne 0x404081
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push str.Drivers_sioctl.sys
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
push edx
push 0x9f
call fcn.004035d0
add esp, 8
test eax, eax
jne 0x40406c
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404247
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], edi
call sub.MFC42.DLL_CString::CString
jmp 0x404084
or edi, 0xffffffff
cmp bl, 5
jne 0x4041bc
lea ecx, [esp + 0x10]
call fcn.00408300
movsx eax, byte [0x40e0a9]
push eax
lea ecx, [esp + 0x14]
push str._c:grldr
push ecx
mov dword [esp + 0x130], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x80
push edx
call esi
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.004035d0
add esp, 8
test eax, eax
je 0x40417a
movsx edx, byte [0x40e0a9]
push edx
lea eax, [esp + 0x14]
push str._c:grldr.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.004035d0
add esp, 8
test eax, eax
je 0x40417a
mov al, byte [0x40e0a9]
cmp al, 0x43
je 0x404191
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 [0x40e0a9]
push eax
lea ecx, [esp + 0x14]
push str._c:OKGFile_sbghost.img
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
push edx
push 0x9b
call fcn.004035d0
add esp, 0x14
test eax, eax
jne 0x404191
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404247
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], edi
call sub.MFC42.DLL_CString::CString
push str.C:OKGFileUninst.exe
push 0x9d
call fcn.004035d0
add esp, 8
test eax, eax
jne 0x404204
jmp 0x404247
cmp bl, 6
je 0x4041a1
push 0
push str.C:grldr
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, edi
je 0x4041ec
push 0x80
push str.C:grldr
call esi
push str.C:grldr
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:grldr
push 0x98
call fcn.004035d0
add esp, 8
test eax, eax
jne 0x4041a1
jmp 0x404247
call fcn.00402980
test eax, eax
je 0x404247
mov eax, dword [0x40ea8c]
test eax, eax
je 0x40421b
call fcn.00401070
call fcn.004014c0
call fcn.00401a00
push 0
push 0
push str._Service
push str.C:OKGFileOKSvr.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00403860
mov eax, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret