Function at 0x1400ad970
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x20], 0
lea r14, [0x1401a1e20]
mov qword [rcx], r14
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov edi, 0xffffffff
test eax, eax
je 0x1400adb59
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8d, eax
dec eax
cmp eax, 0x102
ja 0x1400ada67
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x48]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ada48
cmp ecx, edi
je 0x1400ada5b
mov ecx, edi
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ada5b
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
lea r8, [rsp + 0x38]
mov edx, 0x23
jmp 0x1400adac3
mov r8d, esi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400adaa6
cmp ecx, 0xffffffff
je 0x1400adab9
mov ecx, edi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400adab9
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140049bf0
lea r8, [rsp + 0x30]
mov edx, 0x105
mov dword [rsp + 0x20], edx
mov rcx, qword [rbx]
mov qword [rbp - 0x80], rcx
mov rax, qword [r8]
mov qword [rbx], rax
mov qword [r8], rcx
test dl, 4
je 0x1400adb1a
and edx, 0xfffffffb
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400adb03
cmp ecx, 0xffffffff
je 0x1400adb16
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400adb16
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov edx, dword [rsp + 0x20]
test dl, 2
je 0x1400adb59
and edx, 0xfffffffd
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400adb46
cmp ecx, 0xffffffff
je 0x1400adb59
mov ecx, edi
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400adb59
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x38]
call fcn.140049bf0
mov rax, qword [rbx]
cmp dword [rax + 4], 0
je 0x1400adbf7
mov esi, 0x5c
mov word [rsp + 0x40], si
lea r8d, [rsi - 0x5b]
movzx edx, si
mov rcx, rbx
call fcn.14003fd00
test al, al
je 0x1400adba5
mov edx, 1
mov rcx, rbx
call fcn.14003f0f0
mov r8d, 1
movzx edx, si
mov rcx, rbx
call fcn.14003fd00
test al, al
jne 0x1400adb83
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14004d290
mov rdx, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x60], rcx
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400adbe4
cmp ecx, 0xffffffff
je 0x1400adbf7
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x1400adbf7
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
mov rcx, qword [rbx]
mov edx, dword [rcx + 4]
test edx, edx
jne 0x1400adc2d
mov dword [rsp + 0x60], 6
lea rax, [0x1401feffc]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14003c4e0
jmp 0x1400adc9c
cmp edx, 2
jl 0x1400adc9c
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
jne 0x1400adc9c
movzx ecx, word [rcx + rax]
call fcn.140045a10
mov word [rsp + 0x28], ax
mov rax, qword [rbx]
cmp dword [rax + 4], 0
jg 0x1400adc68
mov edx, 1
lea r8d, [rdx + 0x1f]
mov rcx, rbx
call fcn.140044980
jmp 0x1400adc8c
mov eax, dword [rax]
cmp eax, 1
ja 0x1400adc79
mov rax, qword [rbx]
cmp qword [rax + 0x10], 0x18
je 0x1400adc8c
mov rax, qword [rbx]
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call fcn.140043650
mov rdx, qword [rbx]
mov rcx, qword [rdx + 0x10]
movzx eax, word [rsp + 0x28]
mov word [rdx + rcx], ax
mov rax, rbx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret