Function at 0x1400031e0
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
call fcn.140003050
test al, al
je 0x140003509
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
lea rdx, [rbp - 0x60]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x2d8], r12
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
xor r12d, r12d
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x40], 7
not rcx
mov qword [rsp + 0x38], r12
mov word [rsp + 0x28], r12w
lea r8, [rcx - 1]
lea rcx, [rsp + 0x28]
call fcn.140007200
lea rdx, str.Current_executable_path:
lea rcx, [0x1400392b0]
call fcn.140007c80
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140007ee0
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.1400037f0
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
lea esi, [r12 + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400032c0
mov rcx, qword [rcx + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp eax, 0xffffffff
cmove edi, esi
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x1400032e3
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x1400032db
or edx, esi
xor r8d, r8d
call fcn.140001e70
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140002350
mov rdx, rsi
mov rcx, rax
call fcn.140005d80
cmp rax, 0xffffffffffffffff
setne dil
cmp qword [rsp + 0x68], 8
jb 0x140003317
mov rcx, qword [rsp + 0x50]
call fcn.14000e3d4
test dil, dil
je 0x1400034d2
lea rdx, str.Path_contains_temp.
lea rcx, [0x1400392b0]
call fcn.140007c80
mov edx, 0xa
mov rcx, rax
mov rbx, rax
call fcn.1400037f0
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003365
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, esi
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140003388
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x140003380
or edx, esi
xor r8d, r8d
call fcn.140001e70
lea r9, [rsp + 0x20]
lea rcx, [0x14002c420]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rdx, qword [rsp + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140007200
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.1400070f0
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140003468
cmp rdx, 0xffffffffffffffff
jbe 0x1400033ff
or rdx, 0xffffffffffffffff
jmp 0x140003402
dec rdx
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
lea rax, [rsp + 0x28]
cmp rsi, 8
cmovae rax, rbx
lea rdi, [rax + rdx*2]
nop dword [rax]
movzx edx, word [rdi]
mov ecx, 1
lea rax, [0x140031204]
nop
cmp word [rax], dx
je 0x140003453
add rax, 2
dec rcx
jne 0x140003430
lea rcx, [rsp + 0x28]
call fcn.140005fb0
cmp rdi, rax
je 0x140003468
sub rdi, 2
jmp 0x140003420
cmp rsi, 8
lea rax, [rsp + 0x28]
cmovae rax, rbx
sub rdi, rax
sar rdi, 1
jmp 0x14000346c
or rdi, 0xffffffffffffffff
lea r8, [rdi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.140004240
lea rcx, [rsp + 0x50]
or r9, 0xffffffffffffffff
mov rdx, rax
xor r8d, r8d
call fcn.140007010
cmp qword [rbp - 0x70], 8
jb 0x1400034a4
mov rcx, qword [rsp + 0x78]
call fcn.14000e3d4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140002400
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rsp + 0x68], 8
jb 0x1400034d7
mov rcx, qword [rsp + 0x50]
call fcn.14000e3d4
jmp 0x1400034d7
call fcn.140002c70
cmp qword [rsp + 0x40], 8
mov r12, qword [rsp + 0x2d8]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
jb 0x140003509
mov rcx, qword [rsp + 0x28]
call fcn.14000e3d4
xor eax, eax
add rsp, 0x2b0
pop rbp
ret