Function at 0x140161270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x360
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov r9, qword [0x1402c4540]
xor ebp, ebp
mov rsi, rdx
mov r13d, ecx
test r9, r9
je 0x1401612c4
lea r8, [0x14021ec64]
lea rdx, [rsp + 0x30]
mov ecx, 0xe6
call fcn.140160650
jmp 0x1401613fc
call fcn.140144bc0
mov ecx, 0xe6
test eax, eax
je 0x14016131a
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x140]
call fcn.140144cd0
mov rbx, rax
test rax, rax
je 0x14016139a
lea r8, [0x14021ec64]
lea rdx, [rsp + 0x30]
mov r9, rax
mov ecx, 0xe6
call fcn.140160650
mov rcx, rbx
jmp 0x1401613f7
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov r12d, ebp
test eax, eax
lea r8, [rsp + 0x140]
mov dword [rsp + 0x28], ebp
sete r12b
or r9d, 0xffffffff
xor edx, edx
mov ecx, r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
add edi, edi
movsxd rcx, edi
add rcx, rcx
call fcn.14010cd34
mov rbx, rax
test rax, rax
je 0x14016139a
lea r8, [rsp + 0x140]
or r9d, 0xffffffff
xor edx, edx
mov ecx, r12d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
test eax, eax
jne 0x1401613c6
call fcn.14010cdec
mov eax, 7
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x360
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140144cd0
mov rcx, rbx
mov rdi, rax
call fcn.14010cdec
test rdi, rdi
je 0x14016139a
lea r8, [0x14021ec64]
lea rdx, [rsp + 0x30]
mov r9, rdi
mov ecx, 0xe6
call fcn.140160650
mov rcx, rdi
call fcn.14010cdec
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
test dl, dl
je 0x140161418
nop
inc rax
cmp byte [rax], bpl
jne 0x140161410
sub eax, ecx
lea r8, str.etilqs_
mov rcx, r8
and eax, 0x3fffffff
nop dword [rax]
inc rcx
cmp byte [rcx], bpl
jne 0x140161430
sub ecx, r8d
and ecx, 0x3fffffff
lea eax, [rcx + rax + 0x11]
cmp eax, r13d
jl 0x140161454
mov eax, 1
jmp 0x14016139f
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
test dl, dl
je 0x14016146a
inc rax
cmp byte [rax], bpl
jne 0x140161462
sub eax, ecx
and eax, 0x3fffffff
movsxd rcx, eax
je 0x14016148c
lea rax, [rsp + 0x30]
nop dword [rax + rax]
cmp byte [rax + rcx - 1], 0x5c
jne 0x14016148c
dec rcx
jne 0x140161480
mov byte [rsp + rcx + 0x30], bpl
lea r9, [rsp + 0x30]
lea r8, str._setilqs_
lea ecx, [r13 - 0x11]
mov rdx, rsi
call fcn.140160650
mov r11, rsi
test rsi, rsi
jne 0x1401614b6
mov r11d, ebp
jmp 0x1401614d2
cmp byte [rsi], bpl
je 0x1401614c8
nop dword [rax + rax]
inc r11
cmp byte [r11], bpl
jne 0x1401614c0
sub r11d, esi
and r11d, 0x3fffffff
cmp dword [0x1402bc304], ebp
movsxd r12, r11d
mov ebx, 0xf
lea rdi, [rsi + r12]
je 0x140161500
lea ecx, [rbx - 0xa]
call qword [0x1402bc370]
mov rbp, rax
test rax, rax
je 0x140161500
mov rcx, rax
call qword [0x1402bc380]
call fcn.140143630
inc rdi
dec ebx
mov byte [rdi - 1], al
jne 0x140161500
test rbp, rbp
je 0x14016151d
mov rcx, rbp
call qword [0x1402bc390]
lea rax, [rsi + 1]
mov r8, rsi
mov r9, rsi
mov r10, rsi
mov r11, rsi
sub r8, rax
sub r9, rax
sub r10, rax
lea rbx, [rax + r12]
mov edi, 3
movabs rbp, 0x842108421084211
lea r13, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
sub r11, rax
nop word [rax + rax]
movzx ecx, byte [r8 + rbx]
mov rax, rbp
add rbx, 5
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, byte [rcx + r13]
movzx ecx, byte [rbx - 5]
mov byte [r8 + rbx - 5], al
mov rax, rbp
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, byte [rcx + r13]
movzx ecx, byte [r9 + rbx - 3]
mov byte [rbx - 5], al
mov rax, rbp
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, byte [rcx + r13]
movzx ecx, byte [r10 + rbx - 2]
mov byte [r9 + rbx - 3], al
mov rax, rbp
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx eax, byte [rcx + r13]
movzx ecx, byte [r11 + rbx - 1]
mov byte [r10 + rbx - 2], al
mov rax, rbp
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
dec rdi
movzx eax, byte [rcx + r13]
mov byte [r11 + rbx - 1], al
jne 0x140161560
mov byte [rsi + r12 + 0xf], dil
xor eax, eax
jmp 0x14016139f