Function at 0x40ded9
Capabilities:
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7b0]
sub esp, 0x830
mov eax, dword [0x47a4b0]
xor eax, ebp
mov dword [ebp + 0x7ac], eax
mov eax, dword [ebp + 0x7b8]
push ebx
mov ebx, dword [ebp + 0x7bc]
push esi
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x7c0]
push ecx
push dword [eax + 0x88]
mov dword [ebp - 0x60], ebx
call dword [sym.imp.NfoMgr4.dll_Nfo_DecompressID]
mov esi, dword [sym.imp.NfoMgr4.dll_Nfo_ReadPropertyA]
lea eax, [ebp - 0x50]
push eax
mov edi, 0x80
push edi
lea eax, [ebp + 0x620]
push eax
push 0x46a524
push 1
lea eax, [ebp - 0x70]
push eax
push ebx
call esi
test eax, eax
jne 0x40e281
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x31c]
push eax
push 0x46a520
push 1
lea eax, [ebp - 0x70]
push eax
push ebx
call esi
test eax, eax
jne 0x40e281
lea eax, [ebp - 0x50]
push eax
push 8
lea eax, [ebp + 0x7a4]
push eax
push 0x46a51c
push 1
lea eax, [ebp - 0x70]
push eax
push ebx
call esi
test eax, eax
je 0x40dfb7
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp + 0x7a8], eax
push 0x104
lea eax, [ebp + 0x6a0]
push eax
push dword [0x47d72c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x6a0]
push eax
call dword [sym.imp.MSVCR80.dll__splitpath]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x14
push str.Cache_
call esi
mov edi, eax
lea eax, [ebp - 0x30]
push eax
call esi
add edi, eax
lea eax, [ebp + 0x39c]
push eax
call esi
add edi, eax
lea eax, [ebp + 0x620]
push eax
call esi
lea eax, [eax + edi + 1]
cmp eax, 0x104
ja 0x40e281
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Cache_
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x51c]
push str._s_s_s
push eax
call edi
lea eax, [ebp + 0x620]
push eax
lea eax, [ebp + 0x51c]
push eax
lea eax, [ebp + 0x6a0]
push 0x46a530
push eax
call edi
add esp, 0x24
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x6a0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
je 0x40e0c0
mov eax, dword [ebp + 0x7a4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x7a8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push dword [ebp - 0x34]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x5c], ebx
jne 0x40e297
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.NfoMgr4.dll_Nfo_OpenObject]
test eax, eax
jne 0x40e281
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x51c]
push eax
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 0x80
push 2
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40000000
lea eax, [ebp + 0x6a0]
push eax
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
jne 0x40e20b
lea eax, [ebp + 0x6a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push ebx
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x6a0]
push eax
call dword [sym.imp.MSVCR80.dll__splitpath]
add esp, 0x14
push str.Cache_
call esi
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
call esi
add ebx, eax
lea eax, [ebp + 0x39c]
push eax
call esi
add ebx, eax
lea eax, [ebp + 0x620]
push eax
call esi
lea eax, [eax + ebx + 1]
cmp eax, 0x104
ja 0x40e281
push str.Cache_
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x51c]
push str._s_s_s
push eax
call edi
lea eax, [ebp + 0x620]
push eax
lea eax, [ebp + 0x51c]
push eax
lea eax, [ebp + 0x6a0]
push 0x46a530
push eax
call edi
add esp, 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
push ebx
push 0x80
push 2
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40000000
lea eax, [ebp + 0x6a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
je 0x40e278
lea eax, [ebp + 0x6a0]
push eax
push 0x30f7
call fcn.0046708d
push eax
lea eax, [ebp + 0x114]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0x272a
push 0x30f8
call fcn.0046708d
push eax
lea eax, [ebp + 0x114]
push eax
push ebx
push dword [ebp - 0x58]
call fcn.004467c8
test eax, eax
je 0x40e26f
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.0040cd6f
pop ecx
pop ecx
push dword [ebp - 0x54]
mov esi, eax
call fcn.004467fa
cmp esi, ebx
jne 0x40e285
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x38]
call dword [sym.imp.NfoMgr4.dll_Nfo_CloseObject]
xor eax, eax
jmp 0x40e2e2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x38]
call dword [sym.imp.NfoMgr4.dll_Nfo_CloseObject]
lea eax, [ebp + 0x31c]
push 0x80
push eax
lea esi, [ebp + 0x49c]
call fcn.0040d1ce
pop ecx
pop ecx
push 1
lea eax, [ebp + 0x51c]
push eax
push ebx
lea eax, [ebp + 0x6a0]
push eax
mov al, byte [ebp + 0x49c]
neg al
mov ecx, esi
sbb eax, eax
and eax, ecx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x7ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456f61
add ebp, 0x7b0
leave
ret