Function at 0x140003190
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
call fcn.140003000
test al, al
je 0x1400034b9
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.1400071b0
lea rdx, str.Current_executable_path:
lea rcx, [0x1400392b0]
call fcn.140007c30
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140007e90
lea edx, [r12 + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.1400037a0
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
lea esi, [r12 + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003270
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 0x140003293
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x14000328b
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.140005d30
cmp rax, 0xffffffffffffffff
setne dil
cmp qword [rsp + 0x68], 8
jb 0x1400032c7
mov rcx, qword [rsp + 0x50]
call fcn.14000e384
test dil, dil
je 0x140003482
lea rdx, str.Path_contains_temp.
lea rcx, [0x1400392b0]
call fcn.140007c30
mov edx, 0xa
mov rcx, rax
mov rbx, rax
call fcn.1400037a0
mov rcx, qword [rbx]
mov edi, r12d
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003315
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 0x140003338
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x140003330
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.1400071b0
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.1400070a0
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140003418
cmp rdx, 0xffffffffffffffff
jbe 0x1400033af
or rdx, 0xffffffffffffffff
jmp 0x1400033b2
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 0x140003403
add rax, 2
dec rcx
jne 0x1400033e0
lea rcx, [rsp + 0x28]
call fcn.140005f60
cmp rdi, rax
je 0x140003418
sub rdi, 2
jmp 0x1400033d0
cmp rsi, 8
lea rax, [rsp + 0x28]
cmovae rax, rbx
sub rdi, rax
sar rdi, 1
jmp 0x14000341c
or rdi, 0xffffffffffffffff
lea r8, [rdi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.1400041f0
lea rcx, [rsp + 0x50]
or r9, 0xffffffffffffffff
mov rdx, rax
xor r8d, r8d
call fcn.140006fc0
cmp qword [rbp - 0x70], 8
jb 0x140003454
mov rcx, qword [rsp + 0x78]
call fcn.14000e384
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 0x140003487
mov rcx, qword [rsp + 0x50]
call fcn.14000e384
jmp 0x140003487
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 0x1400034b9
mov rcx, qword [rsp + 0x28]
call fcn.14000e384
xor eax, eax
add rsp, 0x2b0
pop rbp
ret