Function at 0x1400037b0
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
call fcn.140002f60
test al, al
jne 0x1400037d8
mov eax, 1
add rsp, 0x2b0
pop rbp
ret
call fcn.140003620
test al, al
je 0x140003af9
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.140007da0
lea rdx, str.Current_executable_path:
lea rcx, [0x14003a380]
call fcn.1400086c0
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140008920
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.140004090
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
lea esi, [r12 + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400038a7
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 0x1400038ca
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x1400038c2
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.1400068c0
cmp rax, 0xffffffffffffffff
setne dil
cmp qword [rsp + 0x68], 8
jb 0x1400038fe
mov rcx, qword [rsp + 0x50]
call fcn.14000f0b4
test dil, dil
je 0x140003ac2
lea rdx, str.Path_contains_temp.
lea rcx, [0x14003a380]
call fcn.1400086c0
mov edx, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140004090
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x14000394c
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 0x14000396f
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x140003967
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.140007da0
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.140007c90
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140003a58
cmp rdx, 0xffffffffffffffff
jbe 0x1400039e6
or rdx, 0xffffffffffffffff
jmp 0x1400039e9
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 0x140003a43
add rax, 2
dec rcx
jne 0x140003a20
lea rcx, [rsp + 0x28]
call fcn.140006af0
cmp rdi, rax
je 0x140003a58
sub rdi, 2
jmp 0x140003a10
cmp rsi, 8
lea rax, [rsp + 0x28]
cmovae rax, rbx
sub rdi, rax
sar rdi, 1
jmp 0x140003a5c
or rdi, 0xffffffffffffffff
lea r8, [rdi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.140004ae0
lea rcx, [rsp + 0x50]
or r9, 0xffffffffffffffff
mov rdx, rax
xor r8d, r8d
call fcn.140007bb0
cmp qword [rbp - 0x70], 8
jb 0x140003a94
mov rcx, qword [rsp + 0x78]
call fcn.14000f0b4
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 0x140003ac7
mov rcx, qword [rsp + 0x50]
call fcn.14000f0b4
jmp 0x140003ac7
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 0x140003af9
mov rcx, qword [rsp + 0x28]
call fcn.14000f0b4
xor eax, eax
add rsp, 0x2b0
pop rbp
ret