Function at 0x1401582f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [rbp - 0x30]
call fcn.140154c00
mov rbx, rax
test rax, rax
je 0x14015892c
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call fcn.14000a340
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov rdx, qword [r14 + 8]
mov rcx, rbx
call fcn.1401552b0
cmp qword [rsp + 0x58], r12
jbe 0x1401588cf
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
call fcn.14012acd0
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401583a5
mov qword [rsp + 0x78], r12
lea r13, [0x140346ce0]
test ebx, ebx
jne 0x1401583c6
mov qword [rsp + 0x70], r13
jmp 0x1401583ec
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [r14 + 8]
call fcn.1400f8ca0
mov r15, rax
cmp dword [rsp + 0x78], 0
jle 0x14015841b
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140158739
nop dword [rax]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
jne 0x140158443
mov edi, r12d
mov qword [rsp + 0x38], r12
jmp 0x140158463
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140158450
mov qword [rsp + 0x38], r12
test edi, edi
jne 0x14015846a
mov qword [rsp + 0x30], r13
jmp 0x14015848f
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
mov r8d, 1
lea rdx, [0x140345f98]
lea rcx, [rsp + 0x30]
call fcn.1401fc9f0
test al, al
je 0x14015868f
mov rdi, qword [rsp + 0x40]
mov r8, qword [rdi + 8]
mov r11, rdi
cmp byte [r8 + 0x19], 0
jne 0x140158543
mov r10, qword [rsp + 0x30]
mov rax, qword [r8 + 0x20]
mov r9, r10
sub r9, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x1401584f4
add rax, 2
test ecx, ecx
jne 0x1401584e0
test edx, edx
jns 0x1401584fe
mov r8, qword [r8 + 0x10]
jmp 0x140158504
mov r11, r8
mov r8, qword [r8]
cmp byte [r8 + 0x19], 0
je 0x1401584d3
cmp r11, rdi
je 0x140158543
mov rdx, qword [r11 + 0x20]
sub rdx, r10
nop word [rax + rax]
movzx ecx, word [r10]
movzx eax, word [r10 + rdx]
sub ecx, eax
jne 0x140158535
add r10, 2
test eax, eax
jne 0x140158520
test ecx, ecx
js 0x140158543
mov qword [rbp - 0x58], r11
lea rax, [rbp - 0x58]
jmp 0x14015854b
mov qword [rbp - 0x60], rdi
lea rax, [rbp - 0x60]
cmp qword [rax], rdi
jne 0x1401585ea
mov qword [rbp - 0x78], r12
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x140158566
mov qword [rbp - 0x80], r13
jmp 0x14015858e
lea rcx, [rbp - 0x80]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x3c]
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x80]
call fcn.1402ba94c
mov edx, dword [rsp + 0x3c]
lea rcx, [rbp - 0x80]
call fcn.1401fde50
nop
mov rdx, qword [rbx + 0x28]
lea rcx, [rbp - 0x70]
call fcn.1401faae0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1401592e0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x40]
call fcn.140159340
nop
cmp dword [rbp - 0x68], 0
jle 0x1401585db
mov rcx, qword [rbp - 0x70]
call fcn.1402b7350
cmp dword [rbp - 0x78], 0
jle 0x1401585ea
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
test r15, r15
je 0x1401586bd
mov rsi, qword [rbx + 0x28]
test rsi, rsi
jne 0x140158606
mov edi, r12d
mov qword [rsp + 0x68], r12
jmp 0x140158623
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140158610
mov qword [rsp + 0x68], r12
test edi, edi
jne 0x14015862a
mov qword [rsp + 0x60], r13
jmp 0x14015864f
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, r14
call fcn.140158990
nop
cmp dword [rsp + 0x68], 0
jle 0x1401586bd
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
jmp 0x1401586bd
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
call fcn.1400f8340
mov rdi, rax
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call fcn.1400e3f30
mov r8, qword [rdi]
mov rdx, qword [r14 + 8]
mov rcx, rdi
call qword [r8 + 0x70]
mov rcx, qword [rbx + 0x20]
call fcn.1402b7350
mov rcx, qword [rbx + 0x28]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401586e1
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
cmp byte [rbx + 0x19], 0
jne 0x14015872e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015870e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14015872e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140158700
jmp 0x14015872e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14015872b
cmp rbx, qword [rax + 0x10]
jne 0x14015872b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140158718
mov rbx, rax
cmp rbx, qword [rsp + 0x50]
jne 0x140158430
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1401587dc
nop word [rax + rax]
lea rdx, [rbx + 0x20]
mov r8b, 1
mov rcx, qword [r14 + 8]
call fcn.1400f8340
mov rdi, rax
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call fcn.1400e3f30
mov r8, qword [rdi]
mov rdx, qword [r14 + 8]
mov rcx, rdi
call qword [r8 + 0x70]
cmp byte [rbx + 0x19], 0
jne 0x1401587ce
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401587ae
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401587ce
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401587a0
jmp 0x1401587ce
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401587cb
cmp rbx, qword [rax + 0x10]
jne 0x1401587cb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401587b8
mov rbx, rax
mov rdi, qword [rsp + 0x40]
cmp rbx, rdi
jne 0x140158750
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140158852
mov rbx, qword [rdi + 8]
mov rsi, rbx
cmp byte [rbx + 0x19], 0
jne 0x140158836
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140159270
mov rsi, qword [rsi]
cmp dword [rbx + 0x38], 0
jle 0x140158811
mov rcx, qword [rbx + 0x30]
call fcn.1402b7350
cmp dword [rbx + 0x28], 0
jle 0x140158820
mov rcx, qword [rbx + 0x20]
call fcn.1402b7350
mov rcx, rbx
call fcn.1402150f0
mov rbx, rsi
cmp byte [rsi + 0x19], 0
je 0x1401587f1
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x40]
mov qword [rax], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x48], r12
jmp 0x1401588c1
cmp rbx, rdi
je 0x1401588c6
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x1401588ae
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015888e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401588ae
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140158880
jmp 0x1401588ae
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401588ab
cmp rbx, qword [rax + 0x10]
jne 0x1401588ab
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140158898
mov rbx, rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140158f00
cmp rbx, rdi
jne 0x140158857
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1402150f0
nop
mov rax, qword [rsp + 0x50]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x140158908
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140009de0
mov rbx, qword [rbx]
mov rcx, rdi
call fcn.1402150f0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401588e1
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x50]
mov qword [rax], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x50]
call fcn.1402150f0
mov al, 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2f0]
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