Function at 0x408b70
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Print debug messages
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5452fa
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x144], 0
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408bd2
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x144], 1
mov ecx, dword [esp + 0x14c]
push ecx
lea edx, [esp + 0x1c]
push str._sGameInfoVirtual_Drive_ManagerVirtual_Drive_Manager.exe
push edx
call fcn.0040de30
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
push ebp
call esi
test eax, eax
jne 0x408cf2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push str.Msg:Virtual_Drive_Manager_Load_false__EXE_file_not_Exists_
push ecx
call fcn.0040d960
push 0x56ece8
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x15c], 2
call fcn.0040db20
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x144], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x14c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4090b3
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408d0c
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x144], 3
mov ecx, dword [edi + 0x110]
mov edx, dword [esp + 0x14c]
push ecx
push edx
lea eax, [esp + 0x28]
push str._s_s
push eax
call fcn.0040de30
mov ebx, dword [esp + 0x30]
add esp, 0x10
push ebx
call esi
test eax, eax
jne 0x408de4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push str.Msg:Virtual_Drive_Manager_Load_false__ISO_file_not_Exists_
push edx
call fcn.0040d960
push 0x56ece8
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x15c], 4
call fcn.0040db20
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 1
lea eax, [ebx - 0x10]
jmp 0x408c80
call fcn.004085e0
mov edi, eax
test edi, edi
jne 0x408e0a
push str.Msg:Virtual_Drive_Manager_Load_false:_Available_partition_can_not_be_found__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x144], 1
lea eax, [ebx - 0x10]
jmp 0x408c80
push 0x103
lea ecx, [esp + 0x39]
push 0
push ecx
mov byte [esp + 0x40], 0
call fcn.00507960
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push edi
push str._c:_cauto_detect_cdisabled_c_s_c1_c_c
lea edx, [esp + 0x64]
call fcn.0040cd80
add esp, 0x30
push str.SoftwareTowodo_SoftwareVirtual_Drive_ManagerSettings
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 2
call fcn.0040d8a0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408eae
lea ecx, [esp + 0x28]
call fcn.0040e390
lea ecx, [esp + 0x20]
call fcn.0040e390
lea ecx, [esp + 0x18]
call fcn.0040e390
lea ecx, [esp + 0x14c]
call fcn.0040e390
xor eax, eax
jmp 0x4090b3
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x104
lea edx, [esp + 0x38]
push edx
push 7
push 0
push str.LastMounts
push eax
call esi
mov edx, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
push 0
push str.MountPrevious
push edx
mov dword [esp + 0x44], 1
call esi
mov ecx, dword [esp + 0x24]
push 4
lea eax, [esp + 0x30]
push eax
push 4
push 0
push str.XbtnQuit
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call ebx
lea ecx, [esp + 0x28]
call fcn.0040e390
push 0x5c
push ebp
call fcn.00506452
add esp, 8
test eax, eax
jne 0x408f36
or eax, 0xffffffff
jmp 0x408f38
sub eax, ebp
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.0040a5b0
push 6
mov byte [esp + 0x148], 5
mov ecx, dword [esp + 0x20]
push ecx
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408f82
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push str._c:_
push ecx
mov byte [esp + 0x150], 6
call fcn.0040de30
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
xor esi, esi
lea esp, [esp]
push edi
call ebp
cmp eax, 0xffffffff
je 0x408fcc
test al, 0x10
jne 0x408fd9
push 0xc8
call ebx
inc esi
cmp esi, 0x32
jl 0x408fc0
push str.Msg:Virtual_Drive_Manager_Load_success._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [edi - 0x10]
mov byte [esp + 0x144], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x14c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.005043e7
add esp, 0x134
ret 4