Function at 0x140012de0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x690
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, rcx
xor r13d, r13d
mov qword [rsp + 0x48], r13
lea rdx, [0x140041980]
lea rcx, [rsp + 0x48]
call fcn.140003b60
nop
lea rcx, [0x140041990]
call fcn.140001cc0
test al, al
jne 0x140013048
lea rcx, [0x140041990]
call fcn.140002040
cmp r14, rax
je 0x140013037
lea rcx, [0x140041990]
call fcn.140002040
mov r12, rax
cmp qword [rax + 0x18], 8
jb 0x140012e7f
mov r12, qword [rax]
mov rsi, qword [rax + 0x10]
mov rcx, r14
call fcn.140002040
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x140012ece
mov rbx, rax
cmp r15, 8
jb 0x140012ea3
mov rbx, qword [rax]
mov rdx, r12
mov qword [rax + 0x10], rsi
mov r8, rsi
mov rcx, rbx
call fcn.140002244
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.14000223c
jmp 0x140013037
call fcn.140002184
cmp rsi, rax
ja 0x14001340e
call fcn.140002184
mov rbx, rax
mov rcx, r14
call fcn.140002040
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x38], rcx
cmp rcx, rbx
ja 0x140012f2d
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x140012f2d
lea rax, [rcx + rdx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400020dc
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140012f50
mov r8, rdx
jmp 0x140012f59
cmp r8, 0x1000
jb 0x140012f86
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.14001f5e4
mov rcx, rax
test rax, rax
je 0x140012f7f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140012f98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x140012f95
mov rcx, r8
call fcn.14001f5e4
jmp 0x140012f98
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.1400020ec
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.14000223c
cmp r15, 8
jb 0x140013014
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140012ffe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001300d
mov rcx, r8
call fcn.14001f8d4
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x140013037
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140002040
mov rdx, rax
call fcn.140001c00
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002040
mov rcx, qword [rax]
mov qword [rdx], rcx
lea rcx, [rsp + 0x48]
call fcn.140003b90
mov al, 1
jmp 0x1400133d8
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1400133cc
mov word [rbp + 0x15a], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x140013253
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x14001341a
mov word [rbp + rax + 0x160], r13w
lea rcx, [rbp + 0x160]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
mov rcx, r14
call fcn.140002040
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x14001310f
mov rbx, rax
cmp r15, 8
jb 0x140013103
mov rbx, qword [rax]
lea rdx, [rbp + 0x160]
jmp 0x140012ea6
call fcn.140002184
cmp rsi, rax
ja 0x140013414
call fcn.140002184
mov rbx, rax
mov rcx, r14
call fcn.140002040
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x30], rcx
cmp rcx, rbx
ja 0x14001316e
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x14001316e
lea rax, [rcx + rdx]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400020dc
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140013191
mov r8, rdx
jmp 0x14001319a
cmp r8, 0x1000
jb 0x1400131c7
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.14001f5e4
mov rcx, rax
test rax, rax
je 0x1400131c0
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400131d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x1400131d6
mov rcx, r8
call fcn.14001f5e4
jmp 0x1400131d9
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.1400020ec
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.14000223c
cmp r15, 8
jb 0x140013014
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140012ffe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140012ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
mov rcx, r14
call fcn.140002040
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x14001328a
mov rbx, rax
cmp r15, 8
jb 0x140013280
mov rbx, qword [rax]
lea rdx, [rsp + 0x50]
jmp 0x140012ea6
call fcn.140002184
cmp rsi, rax
ja 0x140013408
call fcn.140002184
mov rbx, rax
mov rcx, r14
call fcn.140002040
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x30], rcx
cmp rcx, rbx
ja 0x1400132e9
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x1400132e9
lea rax, [rcx + rdx]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400020dc
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x14001330c
mov r8, rdx
jmp 0x140013315
cmp r8, 0x1000
jb 0x140013342
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.14001f5e4
mov rcx, rax
test rax, rax
je 0x14001333b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140013354
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x140013351
mov rcx, r8
call fcn.14001f5e4
jmp 0x140013354
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400020ec
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.14000223c
cmp r15, 8
jb 0x140013014
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140012ffe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140012ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x48]
call fcn.140003b90
xor al, al
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14001f5c0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400024e0
nop
call fcn.1400024e0
int3
call fcn.1400024e0
int3
call fcn.14001fc50
int3