Function at 0x14005f5d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x20], 0
lea rax, [0x14143f7c8]
mov qword [rcx], rax
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test eax, eax
je 0x14005f71c
mov r8d, 0x104
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8d, eax
dec eax
cmp eax, 0x102
ja 0x14005f683
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x38]
call fcn.14000e320
mov rdx, rax
mov edi, 3
jmp 0x14005f69d
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14000e320
mov rdx, rax
mov edi, 5
mov dword [rsp + 0x20], edi
mov rcx, qword [rbx]
mov rax, qword [rdx]
mov qword [rbx], rax
mov qword [rdx], rcx
test dil, 4
je 0x14005f6e7
and edi, 0xfffffffb
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005f6d8
cmp eax, 0xffffffff
je 0x14005f6e7
lock dec dword [rcx]
mov edi, dword [rsp + 0x20]
jne 0x14005f6e7
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
test dil, 2
je 0x14005f71c
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14005f70e
cmp eax, 0xffffffff
je 0x14005f71c
lock dec dword [rcx]
jne 0x14005f71c
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rax, qword [rbx]
cmp dword [rax + 4], 0
je 0x14005f7b6
mov edi, 0x5c
mov word [rsp + 0x24], di
lea r8d, [rdi - 0x5b]
movzx edx, di
mov rcx, rbx
call fcn.140014c20
test al, al
je 0x14005f772
mov word [rsp + 0x24], di
nop dword [rax + rax]
mov edx, 1
mov rcx, rbx
call fcn.1400142f0
mov r8d, 1
movzx edx, di
mov rcx, rbx
call fcn.140014c20
test al, al
jne 0x14005f750
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140022720
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005f7a8
cmp eax, 0xffffffff
je 0x14005f7b6
lock dec dword [rcx]
jne 0x14005f7b6
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rdx, qword [rbx]
mov eax, dword [rdx + 4]
test eax, eax
jne 0x14005f80e
lea r8d, [rax + 6]
lea rdx, [0x1414b153c]
lea rcx, [rsp + 0x40]
call fcn.14000aac0
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005f7fe
cmp eax, 0xffffffff
je 0x14005f869
lock dec dword [rcx]
jne 0x14005f869
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x14005f869
cmp eax, 2
jl 0x14005f869
cmp eax, 1
jle 0x14005f869
mov rax, qword [rdx + 0x10]
cmp word [rax + rdx + 2], 0x3a
jne 0x14005f869
movzx ecx, word [rdx + rax]
call fcn.14001a630
mov edi, eax
mov rcx, qword [rbx]
mov edx, dword [rcx + 4]
test edx, edx
jg 0x14005f845
xor edx, edx
mov rcx, rbx
call fcn.140014db0
jmp 0x14005f85e
cmp dword [rcx], 1
ja 0x14005f851
cmp qword [rcx + 0x10], 0x18
je 0x14005f85e
inc edx
xor r8d, r8d
mov rcx, rbx
call fcn.140017440
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov word [rcx + rax], di
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400fb630
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret