Function at 0x1400ffec0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rbp + 0xd0], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov rax, qword [0x141949208]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
movsxd rsi, edx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rbp], eax
lea rbx, [0x140168648]
mov qword [rsp + 0x20], rbx
mov ecx, dword [0x14194ef20]
mov rax, qword gs:[0x58]
mov r8d, 8
mov rdx, qword [rax + rcx*8]
or edi, 0xffffffff
mov eax, dword [r8 + rdx]
cmp dword [0x14194e800], eax
jle 0x14010003c
lea rcx, [0x14194e800]
call fcn.140103d8c
cmp dword [0x14194e800], edi
jne 0x14010003c
lea edx, [rdi + 8]
lea rcx, [0x1402685d0]
call fcn.140031440
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14002e750
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x48]
call fcn.1400360e0
mov rcx, rax
mov dl, 1
call fcn.140097490
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x50], 1
test rax, rax
je 0x1400fffc7
lea rdx, [0x1402685b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400fffe7
cmp eax, 0xffffffff
je 0x1400ffff5
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffff5
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rax, qword [rsp + 0x60]
mov qword [0x14194e7f8], rax
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140100021
cmp eax, 0xffffffff
je 0x140100030
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100030
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
lea rcx, [0x14194e800]
call fcn.140103d2c
cmp esi, 0x12
ja case.default.0x140100056
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x10084c]
add rcx, rdx
jmp rcx
mov eax, 0x1a
mov r8d, 0x1c
cmp esi, 0x11
cmove r8d, eax
xor r9d, r9d
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1401000d6
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x70]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x68], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1401000c8
cmp eax, 0xffffffff
je 0x1401000d6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401000d6
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
call fcn.1400c3f50
test al, al
je 0x140100111
mov dword [rsp + 0x60], 7
lea rax, [0x1402685d8]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0xc0], xmm0
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x20]
call fcn.14002ef40
cmp esi, 0xb
je case.default.0x140100056
cmp esi, 0x10
je case.default.0x140100056
lea rcx, [rsp + 0x78]
call fcn.1400449a0
mov rcx, qword [rax]
mov esi, dword [rcx + 4]
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140100153
cmp eax, 0xffffffff
je 0x140100161
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100161
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test esi, esi
je 0x1401001bc
lea rcx, [rbp - 0x80]
call fcn.1400449a0
nop
mov byte [rsp + 0x28], 0x2f
lea rcx, [rsp + 0x28]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x20]
call fcn.1400ac0a0
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1401001ae
cmp eax, 0xffffffff
je 0x1401001bc
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401001bc
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
lea rcx, [rbp - 0x78]
call fcn.140043c20
mov rcx, qword [rax]
mov esi, dword [rcx + 4]
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1401001e9
cmp eax, 0xffffffff
je 0x1401001f7
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401001f7
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test esi, esi
je case.default.0x140100056
lea rcx, [rbp - 0x70]
call fcn.140043c20
nop
mov byte [rsp + 0x29], 0x2f
lea rcx, [rsp + 0x29]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1400ac0a0
nop
mov rcx, qword [rbp - 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x70]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x68]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x70], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x68]
jmp 0x1401007d0
mov rax, qword [0x14194e7f8]
test rax, rax
je case.0x140100056.1
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140268530]
call rax
test eax, eax
jne case.default.0x140100056
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x78], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140100335
cmp eax, 0xffffffff
je 0x140100343
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100343
mov rcx, qword [rbp - 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.default.0x140100056
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x50]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x80], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x50]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 0x14]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x48]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x88], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x48]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x40]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x90], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x40]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 0xd]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x38]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0x98], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x38]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 0xe]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x30]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0xa0], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x30]
jmp 0x1401007d0
xor r9d, r9d
lea r8d, [r9 + 0x27]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x140100056
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x28]
call fcn.1400ffaa0
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rbp + 0xa8], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x28]
jmp 0x1401007d0
mov edx, 9
lea rcx, [rbp - 0x20]
call fcn.1400ffec0
nop
mov dword [rbp + 0x38], 6
lea rcx, [0x1402685e0]
mov qword [rbp + 0x40], rcx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x10], rax
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.1400c4420
nop
mov rcx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140100679
cmp eax, 0xffffffff
je 0x140100688
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100688
mov rcx, qword [rbp - 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140100815
cmp eax, 0xffffffff
je 0x140100824
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140100824
mov rcx, qword [rsp + 0x20]
jmp 0x140100815
mov edx, 0xb
lea rcx, [rbp - 0x18]
call fcn.1400ffec0
nop
mov dword [rbp + 0x48], 6
lea rcx, [0x1402685e0]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0x60], rax
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x58]
call fcn.1400c4420
nop
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x140100714
cmp eax, 0xffffffff
je 0x140100723
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100723
mov rcx, qword [rbp - 0x18]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140100815
cmp eax, 0xffffffff
je 0x140100824
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140100824
mov rcx, qword [rsp + 0x20]
jmp 0x140100815
lea rcx, [rbp - 0x10]
call fcn.14003c600
mov rdx, qword [rsp + 0x20]
mov qword [rbp + 0xb8], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x10]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 0x10]
jmp 0x1401007d0
lea rcx, [rbp - 8]
call fcn.14003d750
mov rdx, qword [rsp + 0x20]
mov qword [rbp + 0xb0], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 8]
mov eax, dword [rcx]
test eax, eax
je 0x1401007d0
cmp eax, 0xffffffff
je case.default.0x140100056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne case.default.0x140100056
mov rcx, qword [rbp - 8]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400397e0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
mov qword [rsi], rax
mov qword [rsp + 0x20], rbx
mov eax, dword [0x140168648]
test eax, eax
je 0x140100812
cmp eax, 0xffffffff
je 0x140100824
lock xadd dword [0x140168648], edi
cmp edi, 1
jne 0x140100824
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400397e0
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140103500
mov rbx, qword [rsp + 0x430]
add rsp, 0x400
pop rdi
pop rsi
pop rbp
ret