Function at 0x1400610d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r15d, edx
mov rbx, rcx
mov edi, 0x104
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140061128
mov rax, qword [rcx]
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov word [rax], r12w
lea r13, [r12 - 1]
nop dword [rax + rax]
mov r14d, edi
mov ecx, edi
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400bf818
mov rsi, rax
mov qword [rsp + 0x58], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test eax, eax
je 0x1400611de
mov rdx, rbx
mov rcx, qword [rbx + 0x18]
cmp rcx, 8
jb 0x140061182
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r8, [rdx + rax*2]
mov rdx, rbx
jb 0x140061192
mov rdx, qword [rbx]
sub r8, rdx
sar r8, 1
mov rax, rbx
cmp rcx, 8
jb 0x1400611a4
mov rax, qword [rbx]
sub rdx, rax
sar rdx, 1
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rcx, rbx
call fcn.140018010
nop
mov rcx, rsi
call fcn.1400bece8
cmp r14d, edi
jb 0x140061140
mov edx, r15d
mov rcx, rbx
call fcn.140060b40
mov al, 1
jmp 0x1400613f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.win_sys_dir_handler____1_
lea rcx, [rbp - 0x40]
call fcn.140008a10
mov rdi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r12w
mov r8d, 0x12
lea rdx, str.GetSystemDirectory
lea rcx, [rsp + 0x60]
call fcn.140012d60
nop
mov r9b, 1
mov r8d, ebx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140058300
nop
mov qword [rsp + 0x38], rax
lea rax, [fcn.140005090]
mov qword [rsp + 0x40], rax
lea rax, [0x1400050b0]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140005380
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.140018cb0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400612ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400612b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061429
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r12w
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14006130c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061307
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006142f
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140061360
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006135b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061423
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x30], rax
cmp byte [rbp + 0xb0], 0
je 0x1400613b8
mov rcx, qword [rbp + 0xc0]
test rcx, rcx
je 0x1400613b1
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400613b1
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov byte [rbp + 0xb0], 0
lea rcx, [rbp + 0x30]
call fcn.14000ab20
nop
lea rcx, [rbp + 8]
call fcn.1400122c0
nop
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x28]
call fcn.14000b3d0
nop
lea rcx, [rbp - 0x40]
call fcn.14000b440
nop
mov rcx, rsi
call fcn.1400bece8
xor al, al
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400e9e3c
nop
call fcn.1400e9e3c
nop
call fcn.1400e9e3c
int3