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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4530c5
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c0], ecx
lea ecx, [ebp - 0x84]
call fcn.00409920
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040a0c0
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xe8]
cmp dword [edx + 0x18], 0x10
jb 0x4081fa
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c8], ecx
jmp 0x408209
mov edx, dword [ebp - 0xe8]
add edx, 4
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004093b0
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.00401600
push 0x567850
lea ecx, [ebp - 0x18]
call fcn.00404a40
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00409720
mov dword [ebp - 0xf0], eax
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00409770
mov ecx, dword [ebp - 0xf0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x8c]
call fcn.004042b0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.RSDUI.DLL
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00409490
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf8]
push edx
lea ecx, [ebp - 0x84]
call fcn.0040acc0
test eax, eax
jne 0x40834a
push str.RSDUI.dll_no_Exists_.
call fcn.00407f90
add esp, 4
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
sub eax, 0x10
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
call fcn.004063e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
sub ecx, 0x10
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x100]
call fcn.004063e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x8c]
sub edx, 0x10
mov dword [ebp - 0x104], edx
mov ecx, dword [ebp - 0x104]
call fcn.004063e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xb0]
jmp 0x408a0b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4084d3
push 0x457ecc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408395
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibary_RSDUI.DLL_Failed_Error__d
call fcn.00407f90
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x1c]
push edx
push str.LoadLibary__s_Failed_Error__d
call fcn.00407f90
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push str.LoadLibary_.
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00409570
add esp, 0xc
mov dword [ebp - 0x1cc], eax
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], edx
mov byte [ebp - 4], 6
push str.Failed
mov eax, dword [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx]
mov dword [ebp - 0x110], eax
push 0
push str.ERROR
mov ecx, dword [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0xb8]
sub edx, 0x10
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x114]
call fcn.004063e0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
sub eax, 0x10
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
call fcn.004063e0
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x11c]
call fcn.004063e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
sub edx, 0x10
mov dword [ebp - 0x120], edx
mov ecx, dword [ebp - 0x120]
call fcn.004063e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
sub eax, 0x10
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
call fcn.004063e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xbc]
jmp 0x408a0b
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
push str.OpenSkinA
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x4085a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_OpenSkinA__Failed_Error__d
call fcn.00407f90
add esp, 8
push 0
push str.ERROR
push str.GetProcAddress_OpenSkinA_Failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x128]
call fcn.004063e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
sub edx, 0x10
mov dword [ebp - 0x12c], edx
mov ecx, dword [ebp - 0x12c]
call fcn.004063e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
sub eax, 0x10
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
call fcn.004063e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xc0]
jmp 0x408a0b
push str.FreeSkin
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40864f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_OpenSkinA__FreeSkin_Failed_Error__d
call fcn.00407f90
add esp, 8
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
sub edx, 0x10
mov dword [ebp - 0x134], edx
mov ecx, dword [ebp - 0x134]
call fcn.004063e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
call fcn.004063e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
sub ecx, 0x10
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp - 0x13c]
call fcn.004063e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xc4]
jmp 0x408a0b
mov edx, dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
push 0x567850
lea ecx, [ebp - 0x10]
call fcn.00404a40
mov byte [ebp - 4], 7
push str.Install.rsu
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xc8]
push edx
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404ad0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xc8]
sub edx, 0x10
mov dword [ebp - 0x144], edx
mov ecx, dword [ebp - 0x144]
call fcn.004063e0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040acc0
test eax, eax
jne 0x4087a4
mov edx, dword [ebp - 0x10]
push edx
push str._s_file_not_exists
call fcn.00407f90
add esp, 8
push str.file_not_exists
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx]
mov dword [ebp - 0x150], eax
push 0
push str.ERROR
mov ecx, dword [ebp - 0x150]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0xcc]
call fcn.00404a90
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xd0]
jmp 0x408a0b
push 0x567850
lea ecx, [ebp - 0x90]
call fcn.00404a40
mov byte [ebp - 4], 9
push str.Install.rsk
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0xd4]
push eax
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x168]
push edx
lea ecx, [ebp - 0x90]
call fcn.00404ad0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.00404a90
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040acc0
test eax, eax
jne 0x4088fd
mov edx, dword [ebp - 0x90]
push edx
push str._s_file_not_exists
call fcn.00407f90
add esp, 8
push str.file_not_exists
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x174]
mov eax, dword [edx]
mov dword [ebp - 0x178], eax
push 0
push str.ERROR
mov ecx, dword [ebp - 0x178]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0xd8]
call fcn.00404a90
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x90]
call fcn.00404a90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xdc]
jmp 0x408a0b
push 0
push 0
push 0
push 0x457d7c
push 0x457d70
call dword [ebp - 0x88]
mov edx, dword [ebp + 8]
mov dword [edx], eax
cmp dword [ebp + 8], 0
jne 0x408998
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSkin_Failed__Error__d
call fcn.00407f90
add esp, 8
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x90]
call fcn.00404a90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xe0]
jmp 0x408a0b
lea ecx, [ebp - 0x18]
call fcn.004042b0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0xe4], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x90]
call fcn.00404a90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00409ac0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret 4