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

Disassembly:
test rcx, rcx
je 0x14000b4cf
mov r11, rsp
push rbx
push rsi
sub rsp, 0x478
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000b4b6
mov qword [r11 + 0x20], rbp
dec r8d
xor ecx, ecx
mov qword [r11 - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x1402c1860], 0
jne 0x14000b26f
cmp byte [0x1402c1b90], 0
je 0x14000b39f
mov edx, 0x5c
mov rcx, rsi
call fcn.14010db4c
test rax, rax
je 0x14000b39f
lea rcx, [rax + 1]
lea rdx, [rsp + 0x350]
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14000b2a0
xor ecx, ecx
lea rdx, [0x1402c1860]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
mov byte [rsp + rcx + 0x1f], al
test al, al
jne 0x14000b2c0
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.14010db4c
test rax, rax
je 0x14000b39f
mov byte [rax + 1], 0
cmp byte [rsp + 0x20], 0
je 0x14000b39f
lea rcx, [rsp + 0x20]
call fcn.1400c9bc0
lea rcx, [rsp + 0x20]
call fcn.1400d1d70
test eax, eax
je 0x14000b344
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.140009e80
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 word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14000b360
mov rcx, rsi
call fcn.1400c9bc0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
lea rdx, [rsp + 0x350]
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x14000b390
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 0x14000b3e2
dec rdi
jmp 0x14000b3d6
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], al
call fcn.14010da60
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rbx
call fcn.14010d5f0
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.14010da60
cmp rdi, rbp
jae 0x14000b458
lea rcx, [rbx + rdi]
lea rdx, [rsp + 0x20]
neg rbx
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x2e
je 0x14000b458
inc rcx
mov byte [rdx], al
inc rdx
lea rax, [rbx + rcx]
cmp rax, rbp
jb 0x14000b440
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 word [rax + rax]
movzx eax, byte [r8 + rdx]
inc rdx
mov byte [rdi + rdx - 2], al
test al, al
jne 0x14000b480
xor eax, eax
mov rdi, rsi
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1401eb360]
mov dword [rdi - 1], eax
movzx eax, byte [0x1401eb364]
mov byte [rdi + 3], al
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x478
pop rsi
pop rbx
repz ret