Function at 0x140192250
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x20], 0
lea r14, [0x140484d90]
mov qword [rcx], r14
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov edi, 0xffffffff
test eax, eax
je 0x14019243e
mov r8d, 0x104
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8d, eax
dec eax
cmp eax, 0x102
ja 0x140192347
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x28]
call fcn.1400ba830
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x140192321
cmp ecx, edi
je 0x140192336
mov rax, qword [rsp + 0x28]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140192336
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x28]
call fcn.1400affb0
lea r8, [rsp + 0x40]
mov edx, 0x103
mov rax, qword [rsp + 0x40]
jmp 0x1401923ab
mov r8d, esi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400ba830
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov qword [rcx], r14
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x140192387
cmp ecx, 0xffffffff
je 0x14019239c
mov rax, qword [rsp + 0x30]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14019239c
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1400affb0
lea r8, [rsp + 0x28]
mov edx, 0x25
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x20], edx
mov rcx, qword [rbx]
mov qword [rbx], rax
mov qword [r8], rcx
test dl, 4
je 0x1401923fd
and edx, 0xfffffffb
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401923e4
cmp ecx, 0xffffffff
je 0x1401923f9
mov rax, qword [rsp + 0x28]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401923f9
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x28]
call fcn.1400affb0
mov edx, dword [rsp + 0x20]
test dl, 2
je 0x14019243e
and edx, 0xfffffffd
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x140192429
cmp ecx, 0xffffffff
je 0x14019243e
mov rax, qword [rsp + 0x40]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14019243e
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1400affb0
mov rax, qword [rbx]
cmp dword [rax + 4], 0
je 0x1401924e1
mov esi, 0x5c
mov r8d, 1
movzx edx, si
mov rcx, rbx
call fcn.1400b9b20
test al, al
je 0x140192492
nop word [rax + rax]
mov edx, 1
mov rcx, rbx
call fcn.1400b8d70
mov r8d, 1
movzx edx, si
mov rcx, rbx
call fcn.1400b9b20
test al, al
jne 0x140192470
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14012bb90
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401924cc
cmp ecx, 0xffffffff
je 0x1401924e1
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x1401924e1
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1400affb0
mov rax, qword [rbx]
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14019251c
mov dword [rsp + 0x30], 6
lea rax, str.C:_tmp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400b6560
jmp 0x1401925aa
cmp ecx, 2
jl 0x1401925aa
mov eax, dword [rax]
cmp eax, 1
ja 0x140192536
mov rax, qword [rbx]
cmp qword [rax + 0x10], 0x18
je 0x140192549
mov rax, qword [rbx]
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call fcn.1400bcbb0
mov rcx, qword [rbx]
cmp dword [rcx + 4], 1
jle 0x1401925aa
mov rax, qword [rcx + 0x10]
cmp word [rax + rcx + 2], 0x3a
jne 0x1401925aa
movzx ecx, word [rax + rcx]
call fcn.1400bf4f0
mov edi, eax
mov rcx, qword [rbx]
mov edx, dword [rcx]
cmp edx, 1
ja 0x14019257d
mov rcx, qword [rbx]
cmp qword [rcx + 0x10], 0x18
je 0x140192590
mov rcx, qword [rbx]
mov edx, dword [rcx + 4]
inc edx
xor r8d, r8d
mov rcx, rbx
call fcn.1400bcbb0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 0
movzx edx, di
lea rcx, [rsp + 0x30]
call fcn.14005c760
mov rax, rbx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140229fa0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret