Function at 0x180053ab0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800fb008]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov qword [rsp + 0x50], rdx
xor eax, eax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
xor r12d, r12d
mov qword [rbp + 0x78], r12
lea rdx, [rbp + 0x68]
call fcn.180060810
mov rbx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x70]
cmp rbx, rax
je 0x18005454c
mov word [rbp + 0xc0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xc2]
call fcn.18008c480
mov edx, 0x104
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r13d, eax
mov dword [rbp + 0x20], eax
nop
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], r12
mov byte [rbp + 0x28], 0
cmp qword [rbx + 0x18], 8
jb 0x180053b84
mov rcx, qword [rbx]
jmp 0x180053b87
mov rcx, rbx
lea r8, [rbp + 0x28]
mov rdx, qword [rbx + 0x10]
call fcn.18001bf60
cmp qword [rbp + 0x38], 0
je 0x1800544c8
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
lea rdx, [rbx + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.1800032a0
nop
mov rdi, qword [rbp - 0x10]
mov r14, rdi
cmp rdi, 1
jb 0x180053c9c
mov rsi, r12
test rdi, rdi
je 0x180053c9c
nop word [rax + rax]
cmp rdi, rsi
jbe 0x1800544fa
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
movzx edx, word [rax + rsi*2]
lea rcx, [0x1800c7b50]
call fcn.1800889ac
test rax, rax
je 0x180053c2a
inc rsi
cmp rsi, r14
jae 0x180053c2a
mov rdi, qword [rbp - 0x10]
jmp 0x180053bf0
mov rdi, qword [rbp - 0x10]
test rsi, rsi
je 0x180053c9c
cmp rdi, rsi
ja 0x180053c50
mov qword [rbp - 0x10], r12
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
mov word [rax], r12w
jmp 0x180053c98
test rsi, rsi
je 0x180053c9c
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 8]
cmp r8, 8
cmovae rcx, rdx
sub rdi, rsi
je 0x180053c83
lea r8, [rdi + rdi]
lea rdx, [rcx + rsi*2]
call fcn.180087f20
mov r8, qword [rbp - 8]
mov rdx, qword [rbp - 0x20]
mov qword [rbp - 0x10], rdi
lea rax, [rbp - 0x20]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rdi*2], r12w
mov rdi, qword [rbp - 0x10]
mov r12, rdi
cmp rdi, 1
jb 0x180053d9c
mov rsi, rdi
test rdi, rdi
je 0x180053d9c
lea r14, [rdi*2 - 2]
nop dword [rax]
lea r15, [rsi - 1]
cmp rdi, r15
jbe 0x180054514
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
movzx edx, word [r14 + rax]
lea rcx, [0x1800c7b50]
call fcn.1800889ac
test rax, rax
je 0x180053d03
mov rsi, r15
sub r14, 2
test r15, r15
je 0x180053d03
mov rdi, qword [rbp - 0x10]
jmp 0x180053cc0
cmp rsi, r12
jae 0x180053d9c
sub r12, rsi
mov rdi, qword [rbp - 0x10]
cmp rdi, rsi
jb 0x180054507
mov rax, rdi
sub rax, rsi
cmp rax, r12
ja 0x180053d43
mov qword [rbp - 0x10], rsi
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
xor r12d, r12d
mov word [rax + rsi*2], r12w
jmp 0x180053d9f
test r12, r12
je 0x180053d9c
lea rax, [rbp - 0x20]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
cmp rdx, 8
cmovae rax, rcx
lea r9, [rax + rsi*2]
sub rdi, r12
mov r8, rdi
sub r8, rsi
je 0x180053d82
add r8, r8
lea rdx, [r9 + r12*2]
mov rcx, r9
call fcn.180087f20
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x10], rdi
lea rax, [rbp - 0x20]
cmp rdx, 8
cmovae rax, rcx
xor r12d, r12d
mov word [rax + rdi*2], r12w
jmp 0x180053d9f
xor r12d, r12d
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x20]
lea rdx, [rbp + 0x20]
cmp eax, r13d
cmovae rcx, rdx
lea rsi, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rsi, qword [rbp - 0x20]
mov r15d, dword [rcx]
lea r14, [rbp + 0xc0]
test r15, r15
je 0x1800544a7
lea rax, [rbp + 0xc0]
cmp rsi, rax
je 0x1800544a7
movzx ecx, word [r14]
call fcn.18008916c
movzx edi, ax
movzx ecx, word [rsi]
call fcn.18008916c
lea r14, [r14 + 2]
cmp ax, di
jne 0x180053e19
movzx eax, word [rsi]
add rsi, 2
test ax, ax
je 0x1800544a7
dec r15
jmp 0x180053de1
movzx ecx, word [r14 - 2]
call fcn.18008916c
movzx edi, ax
movzx ecx, word [rsi]
call fcn.18008916c
movzx eax, ax
cmp eax, edi
je 0x1800544a7
mov edx, 0x22
lea rcx, [rbp - 0x20]
call fcn.180009cf0
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1800540f7
mov r9, rax
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.180007530
nop
mov rdi, qword [rbp + 0x10]
mov r14, rdi
cmp rdi, 1
jb 0x180053f31
mov rsi, r12
test rdi, rdi
je 0x180053f31
cmp rdi, rsi
jbe 0x180054521
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
movzx edx, word [rax + rsi*2]
lea rcx, [0x1800c44ec]
call fcn.1800889ac
test rax, rax
je 0x180053ebf
inc rsi
cmp rsi, r14
jae 0x180053ebf
mov rdi, qword [rbp + 0x10]
jmp 0x180053e85
mov rdi, qword [rbp + 0x10]
test rsi, rsi
je 0x180053f31
cmp rdi, rsi
ja 0x180053ee5
mov qword [rbp + 0x10], r12
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov word [rax], r12w
jmp 0x180053f2d
test rsi, rsi
je 0x180053f31
lea rcx, [rbp]
mov rdx, qword [rbp]
mov r8, qword [rbp + 0x18]
cmp r8, 8
cmovae rcx, rdx
sub rdi, rsi
je 0x180053f18
lea r8, [rdi + rdi]
lea rdx, [rcx + rsi*2]
call fcn.180087f20
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp]
mov qword [rbp + 0x10], rdi
lea rax, [rbp]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rdi*2], r12w
mov rdi, qword [rbp + 0x10]
mov r12, rdi
cmp rdi, 1
jb 0x18005402e
mov rsi, rdi
test rdi, rdi
je 0x18005402e
lea r14, [rdi*2 - 2]
lea r15, [rsi - 1]
cmp rdi, r15
jbe 0x18005453b
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
movzx edx, word [r14 + rax]
lea rcx, [0x1800c44ec]
call fcn.1800889ac
test rax, rax
je 0x180053f95
mov rsi, r15
sub r14, 2
test r15, r15
je 0x180053f95
mov rdi, qword [rbp + 0x10]
jmp 0x180053f52
cmp rsi, r12
jae 0x18005402e
sub r12, rsi
mov rdi, qword [rbp + 0x10]
cmp rdi, rsi
jb 0x18005452e
mov rax, rdi
sub rax, rsi
cmp rax, r12
ja 0x180053fd5
mov qword [rbp + 0x10], rsi
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
xor r12d, r12d
mov word [rax + rsi*2], r12w
jmp 0x180054031
test r12, r12
je 0x18005402e
lea rax, [rbp]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
cmovae rax, rcx
lea r9, [rax + rsi*2]
sub rdi, r12
mov r8, rdi
sub r8, rsi
je 0x180054014
add r8, r8
lea rdx, [r9 + r12*2]
mov rcx, r9
call fcn.180087f20
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp]
mov qword [rbp + 0x10], rdi
lea rax, [rbp]
cmp rdx, 8
cmovae rax, rcx
xor r12d, r12d
mov word [rax + rdi*2], r12w
jmp 0x180054031
xor r12d, r12d
lea r8, [r13 + 1]
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x20]
call fcn.180007530
nop
mov r8, rax
lea rdx, [rbp]
lea rcx, [rbp - 0x48]
call fcn.180068ca0
mov rdi, rax
lea rax, [rbp - 0x20]
cmp rax, rdi
je 0x180054092
cmp qword [rbp - 8], 8
jb 0x180054074
mov rcx, qword [rbp - 0x20]
call fcn.18008861c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.180003210
nop
cmp qword [rbp - 0x30], 8
jb 0x1800540a2
mov rcx, qword [rbp - 0x48]
call fcn.18008861c
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r12
mov word [rbp - 0x48], r12w
cmp qword [rbp - 0x70], 8
jb 0x1800540c4
mov rcx, qword [rsp + 0x78]
call fcn.18008861c
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
cmp qword [rbp + 0x18], 8
jb 0x1800540e6
mov rcx, qword [rbp]
call fcn.18008861c
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], r12
mov byte [rbp + 0x48], 0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.180010b20
mov rdi, rax
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.180010b20
nop
cmp qword [rax + 0x18], 8
jb 0x180054138
mov rax, qword [rax]
lea r8, [rbp + 0x48]
mov rdx, qword [rdi + 0x10]
mov rcx, rax
call fcn.18001bf60
nop
cmp qword [rsp + 0x70], 8
jb 0x18005415b
mov rcx, qword [rsp + 0x58]
call fcn.18008861c
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
cmp qword [rbp - 0x50], 8
jb 0x18005417f
mov rcx, qword [rbp - 0x68]
call fcn.18008861c
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
cmp qword [rbp + 0x58], 0
jne 0x1800541f1
cmp qword [rbp + 0x60], 0x10
jb 0x1800541a7
mov rcx, qword [rbp + 0x48]
call fcn.18008861c
mov byte [rbp + 0x48], 0
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], 0xf
cmp qword [rbp - 8], 8
jb 0x1800541c7
mov rcx, qword [rbp - 0x20]
call fcn.18008861c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
cmp qword [rbp + 0x40], 0x10
jb 0x1800541e8
mov rcx, qword [rbp + 0x28]
call fcn.18008861c
mov r13d, dword [rbp + 0x20]
jmp 0x1800544d8
xor eax, eax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0x48]
call fcn.180007a60
mov rsi, qword [rbp + 0x80]
mov r14, qword [rbp + 0x88]
cmp rsi, r14
je 0x180054450
xor eax, eax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
and eax, 0xffffff00
mov dword [rbp + 0xa0], eax
btr eax, 8
mov dword [rbp + 0xa0], eax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa8], xmm0
mov qword [rbp + 0xb8], r12
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 4
or dword [rsp + 0x30], 0x100
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rcx, qword [rbp + 0x28]
mov edx, dword [rbp + 0x38]
call fcn.180081f90
mov qword [rsp + 0x28], rax
lea r8, [0x1800c7b5c]
lea rdx, str.name
lea rcx, [rbp + 0x98]
call fcn.180083710
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180082be0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 4
or dword [rsp + 0x30], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
cmp qword [rsi + 0x18], 0x10
jb 0x180054322
mov rcx, qword [rsi]
jmp 0x180054325
mov rcx, rsi
mov edx, dword [rsi + 0x10]
call fcn.180081f90
mov qword [rsp + 0x28], rax
lea r8, [0x1800c7b44]
lea rdx, str.file
lea rcx, [rbp + 0x98]
call fcn.180083710
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180082be0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x40]
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x28], rax
lea r8, [0x1800c7b4e]
lea rdx, str.status
lea rcx, [rbp + 0x98]
call fcn.180083710
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180082be0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x44]
mov byte [rsp + 0x30], 1
and dword [rsp + 0x30], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x28], rax
lea r8, [0x1800c7b75]
lea rdx, str.start
lea rcx, [rbp + 0x98]
call fcn.180083710
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180082be0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x98]
lea rcx, [rsp + 0x28]
call fcn.180082970
mov rdi, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800831a0
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.180083280
mov rcx, rax
mov rdx, rdi
call fcn.180082be0
nop
lea rcx, [rbp + 0x98]
call fcn.180082b30
nop
test rsi, rsi
je 0x180054197
mov rdi, rsi
cmp rsi, r14
je 0x180054488
cmp qword [rdi + 0x18], 0x10
jb 0x180054470
mov rcx, qword [rdi]
call fcn.18008861c
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], 0
add rdi, 0x20
cmp rdi, r14
jne 0x180054461
mov rcx, rsi
call fcn.18008861c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
jmp 0x180054197
cmp qword [rbp - 8], 8
jb 0x1800544b7
mov rcx, qword [rbp - 0x20]
call fcn.18008861c
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
cmp qword [rbp + 0x40], 0x10
jb 0x1800544d8
mov rcx, qword [rbp + 0x28]
call fcn.18008861c
mov byte [rbp + 0x28], 0
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 0xf
add rbx, 0x48
mov rax, qword [rbp + 0x70]
cmp rbx, rax
je 0x180054548
jmp 0x180053b60
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
lea rcx, str.invalid_string_position
call fcn.180087e4c
nop
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
lea rcx, str.invalid_string_position
call fcn.180087e4c
int3
lea rcx, str.invalid_string_position
call fcn.180087e4c
nop
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x180054570
mov r8, rax
mov rdx, rbx
call fcn.180031270
mov rcx, rbx
call fcn.18008861c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r12
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.180087ea0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret