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

Disassembly:
test rcx, rcx
je 0x140007dc0
mov r11, rsp
push rbx
push rsi
sub rsp, 0x478
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
test rdx, rdx
mov rsi, rdx
mov rbx, rcx
je 0x140007da7
mov qword [r11 + 0x20], rbp
add r8d, 0xffffffff
xor ecx, ecx
mov qword [r11 - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x140168bc0], 0
jne 0x140007b70
cmp byte [0x140168df0], 0
je 0x140007ca0
mov edx, 0x5c
mov rcx, rsi
call fcn.1400c2dd0
test rax, rax
je 0x140007ca0
lea rcx, [rax + 1]
lea rdx, [rsp + 0x350]
sub rdx, rcx
nop
nop
nop
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x140007ba0
xor ecx, ecx
lea rdx, [0x140168bc0]
nop
nop
movzx eax, byte [rcx + rdx]
add rcx, 1
test al, al
mov byte [rsp + rcx + 0x1f], al
jne 0x140007bc0
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.1400c2dd0
test rax, rax
je 0x140007ca0
mov byte [rax + 1], 0
cmp byte [rsp + 0x20], 0
je 0x140007ca0
lea rcx, [rsp + 0x20]
call fcn.1400b3390
lea rcx, [rsp + 0x20]
call fcn.1400b8780
test eax, eax
je 0x140007c45
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x20]
call fcn.140006f90
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rax, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x20]
sub rdx, rax
nop
nop
nop
movzx eax, byte [rcx]
add rcx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x140007c60
mov rcx, rsi
call fcn.1400b3390
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
lea rdx, [rsp + 0x350]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140007c90
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
mov rdi, rsi
not rcx
mov byte [rcx + rsi - 5], 0x5f
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
mov byte [rcx + rsi - 4], al
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rbp, [rcx - 1]
lea rdi, [rcx - 1]
cmp byte [rbx + rdi - 1], 0x5c
je 0x140007ce4
sub rdi, 1
jmp 0x140007cd7
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], al
call fcn.1400c2840
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rbx
call fcn.1400c2b80
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.1400c2840
cmp rdi, rbp
jae 0x140007d4c
lea rax, [rsp + 0x20]
movzx ecx, byte [rbx + rdi]
cmp cl, 0x2e
je 0x140007d4c
add rdi, 1
mov byte [rax], cl
add rax, 1
cmp rdi, rbp
jb 0x140007d34
mov rbp, qword [rsp + 0x4a8]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
lea r8, [rsp + 0x20]
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
movzx eax, byte [r8 + rdx]
add rdx, 1
test al, al
mov byte [rdi + rdx - 2], al
jne 0x140007d70
xor eax, eax
mov rdi, rsi
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400e4e84]
mov dword [rdi - 1], eax
movzx eax, byte [0x1400e4e88]
mov byte [rdi + 3], al
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400c2a20
add rsp, 0x478
pop rsi
pop rbx
ret 0