Function at 0x41efe0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43be1e
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4b249c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
xor eax, eax
mov word [ebp - 0x434], ax
push 0x208
push 0
lea ecx, [ebp - 0x432]
push ecx
call fcn.00426300
add esp, 0xc
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 0x34]
push eax
push 0x441ba0
push 0xffffffffffffffff
push 0x104
lea ecx, [ebp - 0x434]
push ecx
call fcn.004262dd
add esp, 0x14
xor edx, edx
mov word [ebp - 0x224], dx
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00426300
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x10], 0
push str.libexpat.dll
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x448]
add ecx, 0x38
call fcn.004224c0
push str...zlib1.dll
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x448]
add ecx, 0x38
call fcn.004224c0
push str...libpng13.dll
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x448]
add ecx, 0x38
call fcn.004224c0
mov dword [ebp - 0x43c], 0
jmp 0x41f151
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 4
jge 0x41f221
push 0x441c6c
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x43c]
mov eax, dword [edx*4 + 0x4b23d8]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41f20a
push 0x441c98
call fcn.0040de50
add esp, 4
test eax, eax
jne 0x41f203
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__Error_Code_
lea eax, [ebp - 0x434]
push eax
push str.Load_XLUEModule_FAILED__Path_
mov ecx, dword [ebp - 0x448]
push ecx
push 0x441ce0
call fcn.0040e820
add esp, 8
mov ecx, eax
call fcn.0040d970
mov ecx, eax
call fcn.0041adf0
mov ecx, eax
call fcn.0040d970
mov ecx, eax
call fcn.0040d7c0
mov ecx, eax
call fcn.0040de00
xor eax, eax
jmp 0x41f321
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x448]
add ecx, 0x38
call fcn.004224c0
jmp 0x41f142
mov eax, dword [ebp - 0x448]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a240
mov dword [ebp - 4], 0
push str.PetalSetup.dll
lea ecx, [ebp - 0x438]
call fcn.00421c10
lea ecx, [ebp - 0x438]
call fcn.004053b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41f2d4
push 0x441d78
call fcn.0040de50
add esp, 4
test eax, eax
jne 0x41f2b0
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary_PetalSetup.dll__Failed_
mov ecx, dword [ebp - 0x448]
push ecx
push str.CKKPSetupEnvironment::LoadUIModule
call fcn.0040e820
add esp, 8
mov ecx, eax
call fcn.0040d970
mov ecx, eax
call fcn.0040d7c0
mov ecx, eax
call fcn.0040de00
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00403cf0
mov eax, dword [ebp - 0x440]
jmp 0x41f321
mov edx, dword [ebp - 0x448]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x54], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x448]
add ecx, 0x38
call fcn.004224c0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 0x444], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00403cf0
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042624f
mov esp, ebp
pop ebp
ret