Function at 0x1400037a0
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
call fcn.140002f50
test al, al
jne 0x1400037c8
mov eax, 1
add rsp, 0x2b0
pop rbp
ret
call fcn.140003610
test al, al
je 0x140003ae9
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.140007d90
lea rdx, str.Current_executable_path:
lea rcx, [0x14003a380]
call fcn.1400086b0
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140008910
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.140004080
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
lea esi, [r12 + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003897
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 0x1400038ba
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x1400038b2
or edx, esi
xor r8d, r8d
call fcn.140001e70
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400023c0
mov rdx, rsi
mov rcx, rax
call fcn.1400068b0
cmp rax, 0xffffffffffffffff
setne dil
cmp qword [rsp + 0x68], 8
jb 0x1400038ee
mov rcx, qword [rsp + 0x50]
call fcn.14000f0a4
test dil, dil
je 0x140003ab2
lea rdx, str.Path_contains_temp.
lea rcx, [0x14003a380]
call fcn.1400086b0
mov edx, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140004080
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x14000393c
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 0x14000395f
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x140003957
or edx, esi
xor r8d, r8d
call fcn.140001e70
lea r9, [rsp + 0x20]
lea rcx, [0x14002d420]
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.140007d90
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.140007c80
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140003a48
cmp rdx, 0xffffffffffffffff
jbe 0x1400039d6
or rdx, 0xffffffffffffffff
jmp 0x1400039d9
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 word [rax + rax]
movzx edx, word [rdi]
mov ecx, 1
lea rax, [0x1400322ac]
nop
cmp word [rax], dx
je 0x140003a33
add rax, 2
dec rcx
jne 0x140003a10
lea rcx, [rsp + 0x28]
call fcn.140006ae0
cmp rdi, rax
je 0x140003a48
sub rdi, 2
jmp 0x140003a00
cmp rsi, 8
lea rax, [rsp + 0x28]
cmovae rax, rbx
sub rdi, rax
sar rdi, 1
jmp 0x140003a4c
or rdi, 0xffffffffffffffff
lea r8, [rdi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.140004ad0
lea rcx, [rsp + 0x50]
or r9, 0xffffffffffffffff
mov rdx, rax
xor r8d, r8d
call fcn.140007ba0
cmp qword [rbp - 0x70], 8
jb 0x140003a84
mov rcx, qword [rsp + 0x78]
call fcn.14000f0a4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140002470
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rsp + 0x68], 8
jb 0x140003ab7
mov rcx, qword [rsp + 0x50]
call fcn.14000f0a4
jmp 0x140003ab7
call fcn.140002ce0
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 0x140003ae9
mov rcx, qword [rsp + 0x28]
call fcn.14000f0a4
xor eax, eax
add rsp, 0x2b0
pop rbp
ret