Function at 0x140055570
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x798]
sub rsp, 0x880
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1415dbbb0]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rax, [0x1415d9378]
mov qword [rsp + 0x20], rax
lock inc dword [0x1415d9378]
mov rax, qword [rdx]
or rbx, 0xffffffffffffffff
cmp dword [rax + 8], 2
jl 0x14005569e
mov rax, qword [rax + 0x10]
movzx edx, word [rax]
mov word [rsp + 0x2a], dx
lea rcx, [rsp + 0x2a]
call fcn.14000eef0
test al, al
je 0x14005569e
mov rax, qword [rsi]
mov rdx, qword [rax + 0x10]
cmp word [rdx + 2], 0x3a
jne 0x14005569e
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.1400150e0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
movzx eax, word [rax]
movzx ecx, al
mov edx, 0xff
cmp ax, dx
cmova ecx, r12d
movsx esi, cl
sub esi, 0x40
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x14005564e
mov rcx, qword [rsp + 0x48]
call fcn.140012a00
call fcn.1400b2f08
cmp eax, esi
je 0x14005569e
mov r8d, 0x200
lea rdx, [rsp + 0x70]
mov ecx, esi
call fcn.1400b2eb8
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140016c40
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140012be0
nop
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x14005569e
mov rcx, qword [rsp + 0x38]
call fcn.140012a00
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x14005576d
lea rdx, [rbp + 0x370]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005576d
cmp eax, 0x200
jbe 0x140055736
mov edx, eax
mov eax, 2
mul rdx
cmovo rax, rbx
mov rcx, rax
call fcn.1400ada44
mov rsi, rax
mov rdx, rax
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005572c
mov r8d, ebx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140016c40
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140012be0
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x14005572c
mov rcx, qword [rsp + 0x40]
call fcn.140012a00
mov rcx, rsi
call fcn.1400aeaac
jmp 0x14005576d
mov r8d, ebx
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x50]
call fcn.140016c40
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140012be0
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x14005576d
mov rcx, qword [rsp + 0x50]
call fcn.140012a00
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
cmp ecx, 2
jl 0x1400557ec
cmp ecx, 1
jle 0x1400557ec
mov rcx, qword [rax + 0x10]
cmp word [rcx + 2], 0x3a
jne 0x1400557ec
movzx eax, word [rcx]
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x28]
call fcn.14000f260
mov rsi, rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jg 0x1400557bd
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140013360
jmp 0x1400557dd
mov ecx, dword [rax]
cmp ecx, 1
jne 0x1400557d3
mov r11, qword [rsp + 0x20]
lea rax, [r11 + 0x1a]
cmp qword [r11 + 0x10], rax
je 0x1400557e2
lea rcx, [rsp + 0x20]
call fcn.140012bd0
mov r11, qword [rsp + 0x20]
movzx ecx, word [rsi]
mov rax, qword [r11 + 0x10]
mov word [rax], cx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001c5f0
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x20]
lock dec dword [rcx]
jne 0x140055815
mov rcx, qword [rsp + 0x20]
call fcn.140012a00
mov rax, rdi
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400af490
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret