Function at 0x14005d230
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x178]
sub rsp, 0x268
mov rax, qword [0x1400fa448]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov qword [r11 + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [r11 - 0x18], r14
mov rdi, rcx
lea r14, [0x140068e58]
mov ecx, 0x104
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x14005d3b1
cmp ebx, 0x104
jbe 0x14005d345
mov eax, 2
mov qword [rsp + 0x290], rsi
mul rbx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.140065fb4
mov rdx, rax
mov ecx, 0x104
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005d333
mov r8d, ebx
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14001d070
mov rbx, qword [rax]
mov qword [rax], r14
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005d2fb
cmp eax, 0xffffffff
je 0x14005d309
sub eax, 1
mov dword [rcx], eax
jne 0x14005d309
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov eax, dword [rcx]
test eax, eax
je 0x14005d325
cmp eax, 0xffffffff
je 0x14005d333
sub eax, 1
mov dword [rcx], eax
jne 0x14005d333
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, rsi
call fcn.1400657d0
mov rsi, qword [rsp + 0x290]
jmp 0x14005d3b1
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14001d070
mov rbx, qword [rax]
mov qword [rax], r14
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005d379
cmp eax, 0xffffffff
je 0x14005d387
sub eax, 1
mov dword [rcx], eax
jne 0x14005d387
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov eax, dword [rcx]
test eax, eax
je 0x14005d3a3
cmp eax, 0xffffffff
je 0x14005d3b6
sub eax, 1
mov dword [rcx], eax
jne 0x14005d3b1
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rbx, qword [rsp + 0x20]
mov edx, dword [rbx + 4]
mov r14, qword [rsp + 0x260]
cmp edx, 2
jl 0x14005d477
cmp dword [rbx], 1
ja 0x14005d3d6
cmp qword [rbx + 0x10], 0x18
je 0x14005d3ea
inc edx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.14001f120
mov rbx, qword [rsp + 0x20]
cmp dword [rbx + 4], 1
jle 0x14005d477
mov rax, qword [rbx + 0x10]
cmp word [rax + rbx + 2], 0x3a
jne 0x14005d477
movzx ecx, word [rax + rbx]
call fcn.140021af0
mov ebx, eax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 1
ja 0x14005d41c
cmp qword [rax + 0x10], 0x18
je 0x14005d433
mov edx, dword [rax + 4]
lea rcx, [rsp + 0x20]
inc edx
xor r8d, r8d
call fcn.14001f120
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x14005d44f
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x1f]
call fcn.140020a50
jmp 0x14005d46a
cmp dword [rax], 1
ja 0x14005d45b
cmp qword [rax + 0x10], 0x18
je 0x14005d46f
inc edx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.14001f120
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], bx
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140059dc0
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x288]
mov eax, dword [rcx]
test eax, eax
je 0x14005d4ae
cmp eax, 0xffffffff
je 0x14005d4bc
sub eax, 1
mov dword [rcx], eax
jne 0x14005d4bc
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140016170
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140065ad0
add rsp, 0x268
pop rdi
pop rbp
ret