Function at 0x140038f50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1405c7418]
xor rax, rsp
mov qword [rbp], rax
mov r15, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400391fc
lea edi, [rax + 1]
mov ebx, edi
mov eax, 2
mul rbx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400ab1cc
mov rsi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov r8, r14
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140039000
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140008280
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140046af0
test al, al
sete bl
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003906c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039270
call fcn.1400ab1c4
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
test bl, bl
je 0x14003918f
lea rcx, [rbp - 0x70]
call fcn.1400654c0
nop
xor r9d, r9d
mov r8d, 0x10000000
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400653e0
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140064b80
nop
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov r8, r14
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400390e3
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140008280
nop
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140046630
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14003914c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039147
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400391f6
call fcn.1400ab1c4
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
lea rcx, [rbp - 0x50]
call fcn.140065230
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003917b
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x30]
call fcn.140030060
nop
lea rcx, [rbp - 0x70]
call fcn.140065270
mov qword [r15], r12
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], 7
mov word [r15], r12w
inc r14
cmp word [rsi + r14*2], 0
jne 0x1400391a2
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.140008280
mov dword [rsp + 0x20], 1
mov rcx, rsi
call fcn.1400ab1c4
mov rax, r15
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400ab7b0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400b1d8c
nop
lea rdx, str.tempPath
lea rcx, [rsp + 0x50]
call fcn.140005380
nop
lea rcx, [rsp + 0x30]
call fcn.140005740
nop
mov r9d, 0x414
lea r8, [rsp + 0x50]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400057f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.140005740
nop
lea r8, [0x1403ecc10]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
call fcn.1400b1d8c
int3