Function at 0x40e630
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4187bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x264]
push 0
push eax
mov dword [esp + 0x264], 0
mov dword [esp + 0x40], 0xfffffff2
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jge 0x40e6a0
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffff2
jmp 0x40ee7b
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x26c]
mov esi, dword [esp + 0x268]
push ebp
push esi
lea ecx, [esp + 0x38]
push str._.0f
push ecx
mov byte [esp + 0x26c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x50]
lea ebx, [edi + 0x50]
push ebp
push esi
push edx
lea eax, [esp + 0x28]
push str._s_.0f.ini
push eax
mov byte [esp + 0x270], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push 0
push str.isstepscene
push str.jobinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [edi + 0x54]
lea ecx, [esp + 0x2c]
push edx
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x60]
mov byte [esp + 0x25c], 3
cmp eax, 0xa
jne 0x40ebca
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push eax
push 0x200
push ecx
push 0
push str.vrmappath
push str.jobinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
lea eax, [esp + 0x54]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x260], 4
call sub.MFC42.DLL_CString::CString_2
mov edi, eax
push 0x5c
mov ecx, esi
mov byte [esp + 0x260], 5
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x25c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x422d10]
test eax, eax
je 0x40edc8
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x264], 7
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.nrtype
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x268], 8
mov ecx, esp
mov dword [esp + 0x34], esp
push str.jobinfo
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x422c90
mov byte [esp + 0x268], 3
call fcn.00402c20
cmp eax, 6
jne 0x40ea2b
push str.otheroutname.ini
lea eax, [esp + 0x28]
push ebx
push eax
call sub.MFC42.DLL_operator_2
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x264], 9
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x264], 0xa
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x421eb8
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x268], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push str.name
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, 0x422c90
push eax
mov byte [esp + 0x26c], 9
call fcn.00402b30
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x25c], 0xc
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ea09
lea edx, [esp + 0x264]
push 0x42108c
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x268], 0xd
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], 0xf
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x10
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x268]
mov edx, dword [esp + 0x264]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_.0f._s
push eax
mov byte [esp + 0x274], 0x11
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
add esp, 0x18
xor edi, edi
push ecx
push edx
call esi
test eax, eax
jne 0x40e9d6
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc edi
cmp eax, 8
jg 0x40e9d6
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
push 0x3e8
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call esi
test eax, eax
je 0x40e99c
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x25c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push edx
push 0
push str.ispresspic
push str.jobinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x40]
call fcn.00416168
lea eax, [esp + 0x40]
lea edx, [esp + 0x264]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x268], 0x12
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x26c], 0x13
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x268], 0x12
call fcn.0040e050
mov edi, dword [esp + 0x54]
add esp, 0xc
test edi, edi
jle 0x40eda1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x270]
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x268]
mov eax, dword [esp + 0x264]
push ebp
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._s_.0f__.4d.rar
push ecx
mov byte [esp + 0x274], 0x14
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebx]
push ebp
push edx
lea eax, [esp + 0x18]
push str._s_d.txt
push eax
mov byte [esp + 0x26c], 0x15
call sub.MFC42.DLL_CString::Format
add esp, 0x10
xor esi, esi
test edi, edi
jle 0x40eb8c
mov bl, 0x16
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
mov eax, dword [edx - 8]
mov edx, dword [esp + 0x264]
sub eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::Right
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x264], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x268], 0x17
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x264], bl
call fcn.0040e3c0
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 0x15
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x40eb13
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov bl, 0x18
cmp ebp, 0x7530
mov byte [esp + 0x25c], bl
jle 0x40ec68
cmp ebp, 0x8236
jge 0x40ec68
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.a__m4___s_____s_
jmp 0x40ec77
test esi, esi
je 0x40e7e5
mov edx, dword [esp + 0x1c]
push edx
push 0
push str.nrtype
push str.jobinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x40e7e5
push ecx
lea eax, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.0040d120
mov esi, eax
test esi, esi
jge 0x40e7e5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x40ee7b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.a__df__m4___s_____s_
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x264]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x268], 0x19
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x264], bl
call fcn.004146f0
test eax, eax
jge 0x40ed61
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x25c], 3
call fcn.0041616e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffff2
jmp 0x40ee7b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x12
call sub.MFC42.DLL_CString::CString
jmp 0x40eda8
mov ebp, dword [esp + 0x270]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esp + 0x40]
mov byte [esp + 0x25c], 3
call fcn.0041616e
jmp 0x40edcf
mov ebp, dword [esp + 0x270]
mov eax, dword [0x422d28]
test eax, eax
je 0x40ee2d
mov edx, dword [esp + 0x26c]
mov eax, dword [esp + 0x268]
push ebp
push edx
push eax
push 3
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x278], 0x1a
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x274], 3
call fcn.0040d450
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x250
ret 0x10