Function at 0x18000c3e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5c8]
sub rsp, 0x6c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rdi
lea rax, [0x180332f60]
mov qword [rsp + 0x38], rax
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x18000c462
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x18032a868]
test r8, r8
je 0x18000c48a
lea rdx, [0x18032a858]
cmp qword [0x18032a870], 8
cmovae rdx, qword [0x18032a858]
jmp 0x18000c54f
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x80]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x18000c72d
mov word [rbp + 0x18a], di
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x18000c534
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x18000c795
mov word [rbp + rax + 0x190], di
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000c520
lea rdx, [rbp + 0x190]
jmp 0x18000c54f
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18000c540
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.180007110
nop
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x18000c56c
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], rdi
mov edx, InitCommonControls
lea rcx, [rsp + 0x40]
call fcn.1800f7d20
lea r8, [0x180266ae0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180009970
nop
lea rcx, [rsp + 0x60]
call fcn.1800f3e40
test al, al
jne 0x18000c678
lea rcx, [rsp + 0x60]
call fcn.1800f5040
test al, al
jne 0x18000c678
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000c617
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c612
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c612
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], di
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18000c75b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c66e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c66e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
jmp 0x18000c75b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180007b10
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000c6d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c6cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c6cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], di
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18000c75b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c66e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c66e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [0x180332f60]
test rcx, rcx
je 0x18000c73f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov dword [rsp + 0x20], 1
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rax, rbx
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.18022a7d0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18022ae28
int3