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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r12d, r12d
call fcn.1800232c0
test eax, eax
jne 0x180024f33
lea rcx, [rsp + 0x20]
call fcn.1800272c0
mov r11, qword [0x1800f5df0]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rbp - 0x80], r11
mov qword [rbp - 0x78], r11
mov qword [rbp - 0x70], r11
lea rcx, [rbx + 8]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.180022d00
test eax, eax
jne 0x180024cdd
lea rcx, [rbp - 0x70]
call fcn.180040610
nop
lea rcx, [rbp - 0x78]
call fcn.180040610
nop
lea rcx, [rbp - 0x80]
call fcn.180040610
nop
lea rcx, [rsp + 0x58]
call fcn.180040610
nop
lea rcx, [rsp + 0x50]
call fcn.180040610
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
nop
lea rcx, [rsp + 0x40]
call fcn.180040610
nop
lea rcx, [rsp + 0x38]
call fcn.180040610
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
nop
jmp 0x180024f29
mov rdx, rdi
mov rcx, rbx
call fcn.180024200
test eax, eax
jne 0x180024d51
lea rcx, [rbp - 0x70]
call fcn.180040610
nop
lea rcx, [rbp - 0x78]
call fcn.180040610
nop
lea rcx, [rbp - 0x80]
call fcn.180040610
nop
lea rcx, [rsp + 0x58]
call fcn.180040610
nop
lea rcx, [rsp + 0x50]
call fcn.180040610
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
nop
lea rcx, [rsp + 0x40]
call fcn.180040610
nop
lea rcx, [rsp + 0x38]
call fcn.180040610
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
nop
jmp 0x180024f29
mov rdx, rdi
mov rcx, rbx
call fcn.180023410
test eax, eax
je 0x180024dc5
lea rcx, [rbp - 0x70]
call fcn.180040610
nop
lea rcx, [rbp - 0x78]
call fcn.180040610
nop
lea rcx, [rbp - 0x80]
call fcn.180040610
nop
lea rcx, [rsp + 0x58]
call fcn.180040610
nop
lea rcx, [rsp + 0x50]
call fcn.180040610
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
nop
lea rcx, [rsp + 0x40]
call fcn.180040610
nop
lea rcx, [rsp + 0x38]
call fcn.180040610
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
nop
jmp 0x180024f29
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180024e4a
mov rax, qword [rcx]
call qword [rax]
mov ebx, eax
test eax, eax
jne 0x180024e4a
lea rcx, [rbp - 0x70]
call fcn.180040610
nop
lea rcx, [rbp - 0x78]
call fcn.180040610
nop
lea rcx, [rbp - 0x80]
call fcn.180040610
nop
lea rcx, [rsp + 0x58]
call fcn.180040610
nop
lea rcx, [rsp + 0x50]
call fcn.180040610
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
nop
lea rcx, [rsp + 0x40]
call fcn.180040610
nop
lea rcx, [rsp + 0x38]
call fcn.180040610
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
nop
lea rcx, [rsp + 0x20]
call fcn.180027260
mov eax, ebx
jmp 0x180024f36
cmp dword [rsp + 0x68], 2
jne 0x180024eb8
mov word [rbp - 0x50], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.18006f140
lea rdx, [rbp - 0x50]
mov ecx, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x60]
call fcn.180042470
nop
mov rcx, qword [rax]
call fcn.180052f50
nop
lea rcx, [rbp - 0x60]
call fcn.18003ecb0
test rsi, rsi
je 0x180024ead
mov dword [rsi], 1
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rbp - 0x70]
call fcn.180040610
nop
lea rcx, [rbp - 0x78]
call fcn.180040610
nop
lea rcx, [rbp - 0x80]
call fcn.180040610
nop
lea rcx, [rsp + 0x58]
call fcn.180040610
nop
lea rcx, [rsp + 0x50]
call fcn.180040610
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
nop
lea rcx, [rsp + 0x40]
call fcn.180040610
nop
lea rcx, [rsp + 0x38]
call fcn.180040610
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
nop
lea rcx, [rsp + 0x20]
call fcn.180027260
mov eax, 1
jmp 0x180024f36
lea rcx, [rsp + 0x20]
call fcn.180027260
mov eax, r12d
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.18006f110
add rsp, 0x8c0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret