Function at 0x140097770
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov qword [rbp - 0x78], rdx
xor eax, eax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb8], xmm0
xor r12d, r12d
mov qword [rbp + 0xc8], r12
lea rdx, [rbp + 0xb8]
call fcn.14009fa30
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xc0]
cmp rbx, rax
je 0x140098184
mov word [rbp + 0xf0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xf2]
call fcn.1400c2130
mov edx, 0x104
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r13d, eax
mov dword [rbp + 0x58], eax
nop word [rax + rax]
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r12
mov byte [rbp + 0x60], 0
cmp qword [rbx + 0x18], 8
jb 0x140097864
mov rcx, qword [rbx]
jmp 0x140097867
mov rcx, rbx
lea r8, [rbp + 0x60]
mov rdx, qword [rbx + 0x10]
call fcn.14006be10
cmp qword [rbp + 0x70], 0
je 0x140098107
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
lea rdx, [rbx + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x18]
call fcn.140006b90
nop
mov rdi, qword [rbp + 0x28]
mov r14, rdi
cmp rdi, 1
jb 0x14009797c
mov rsi, r12
test rdi, rdi
je 0x14009797c
nop word [rax + rax]
cmp rdi, rsi
jbe 0x14009813c
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rax, qword [rbp + 0x18]
movzx edx, word [rax + rsi*2]
lea rcx, [0x14012f7ac]
call fcn.1400c0b38
test rax, rax
je 0x14009790a
inc rsi
cmp rsi, r14
jae 0x14009790a
mov rdi, qword [rbp + 0x28]
jmp 0x1400978d0
mov rdi, qword [rbp + 0x28]
test rsi, rsi
je 0x14009797c
cmp rdi, rsi
ja 0x140097930
mov qword [rbp + 0x28], r12
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rax, qword [rbp + 0x18]
mov word [rax], r12w
jmp 0x140097978
test rsi, rsi
je 0x14009797c
lea rcx, [rbp + 0x18]
mov rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x30]
cmp r8, 8
cmovae rcx, rdx
sub rdi, rsi
je 0x140097963
lea r8, [rdi + rdi]
lea rdx, [rcx + rsi*2]
call fcn.1400bcb10
mov r8, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x18]
mov qword [rbp + 0x28], rdi
lea rax, [rbp + 0x18]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rdi*2], r12w
mov rdi, qword [rbp + 0x28]
mov r12, rdi
cmp rdi, 1
jb 0x140097a7c
mov rsi, rdi
test rdi, rdi
je 0x140097a7c
lea r14, [rdi*2 - 2]
nop dword [rax]
lea r15, [rsi - 1]
cmp rdi, r15
jbe 0x140098156
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rax, qword [rbp + 0x18]
movzx edx, word [r14 + rax]
lea rcx, [0x14012f7ac]
call fcn.1400c0b38
test rax, rax
je 0x1400979e3
mov rsi, r15
sub r14, 2
test r15, r15
je 0x1400979e3
mov rdi, qword [rbp + 0x28]
jmp 0x1400979a0
cmp rsi, r12
jae 0x140097a7c
sub r12, rsi
mov rdi, qword [rbp + 0x28]
cmp rdi, rsi
jb 0x140098149
mov rax, rdi
sub rax, rsi
cmp rax, r12
ja 0x140097a23
mov qword [rbp + 0x28], rsi
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rax, qword [rbp + 0x18]
xor r12d, r12d
mov word [rax + rsi*2], r12w
jmp 0x140097a7f
test r12, r12
je 0x140097a7c
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
cmovae rax, rcx
lea r9, [rax + rsi*2]
sub rdi, r12
mov r8, rdi
sub r8, rsi
je 0x140097a62
add r8, r8
lea rdx, [r9 + r12*2]
mov rcx, r9
call fcn.1400bcb10
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 0x28], rdi
lea rax, [rbp + 0x18]
cmp rdx, 8
cmovae rax, rcx
xor r12d, r12d
mov word [rax + rdi*2], r12w
jmp 0x140097a7f
xor r12d, r12d
mov eax, dword [rbp + 0x28]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x20]
lea rdx, [rbp + 0x58]
cmp eax, r13d
cmovae rcx, rdx
lea rsi, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rsi, qword [rbp + 0x18]
mov r15d, dword [rcx]
lea r14, [rbp + 0xf0]
test r15, r15
je 0x1400980e6
lea rax, [rbp + 0xf0]
cmp rsi, rax
je 0x1400980e6
movzx ecx, word [r14]
call fcn.1400c0d68
movzx edi, ax
movzx ecx, word [rsi]
call fcn.1400c0d68
lea r14, [r14 + 2]
cmp ax, di
jne 0x140097af9
movzx eax, word [rsi]
add rsi, 2
test ax, ax
je 0x1400980e6
dec r15
jmp 0x140097ac1
movzx ecx, word [r14 - 2]
call fcn.1400c0d68
movzx edi, ax
movzx ecx, word [rsi]
call fcn.1400c0d68
movzx eax, ax
cmp eax, edi
je 0x1400980e6
mov edx, 0x22
or r8, 0xffffffffffffffff
lea rcx, [rbp + 0x18]
call fcn.14005a040
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140097d64
mov r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x18]
call fcn.14001b100
nop
mov rdi, qword [rbp + 0x48]
mov r14, rdi
cmp rdi, 1
jb 0x140097c1c
mov rsi, r12
test rdi, rdi
je 0x140097c1c
nop dword [rax]
cmp rdi, rsi
jbe 0x140098163
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rax, qword [rbp + 0x38]
movzx edx, word [rax + rsi*2]
lea rcx, [0x140123f54]
call fcn.1400c0b38
test rax, rax
je 0x140097baa
inc rsi
cmp rsi, r14
jae 0x140097baa
mov rdi, qword [rbp + 0x48]
jmp 0x140097b70
mov rdi, qword [rbp + 0x48]
test rsi, rsi
je 0x140097c1c
cmp rdi, rsi
ja 0x140097bd0
mov qword [rbp + 0x48], r12
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rax, qword [rbp + 0x38]
mov word [rax], r12w
jmp 0x140097c18
test rsi, rsi
je 0x140097c1c
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x50]
cmp r8, 8
cmovae rcx, rdx
sub rdi, rsi
je 0x140097c03
lea r8, [rdi + rdi]
lea rdx, [rcx + rsi*2]
call fcn.1400bcb10
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
mov qword [rbp + 0x48], rdi
lea rax, [rbp + 0x38]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rdi*2], r12w
mov rdi, qword [rbp + 0x48]
mov r12, rdi
cmp rdi, 1
jb 0x140097c9a
mov rsi, rdi
test rdi, rdi
je 0x140097c9a
lea r15, [rdi*2 - 2]
nop word [rax + rax]
lea r14, [rsi - 1]
cmp rdi, r14
jbe 0x140098170
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rax, qword [rbp + 0x38]
movzx edx, word [rax + r15]
lea rcx, [0x140123f54]
call fcn.1400c0b38
test rax, rax
je 0x140097c83
mov rsi, r14
sub r15, 2
test r14, r14
je 0x140097c83
mov rdi, qword [rbp + 0x48]
jmp 0x140097c40
cmp rsi, r12
jae 0x140097c9a
sub r12, rsi
mov r8, r12
mov rdx, rsi
lea rcx, [rbp + 0x38]
call fcn.140006dc0
lea r8, [r13 + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x18]
call fcn.14001b100
nop
mov r8, rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.140012220
mov rdi, rax
lea rax, [rbp + 0x18]
cmp rax, rdi
je 0x140097cfe
cmp qword [rbp + 0x30], 8
jb 0x140097cdc
mov rcx, qword [rbp + 0x18]
call fcn.1400bd20c
mov qword [rbp + 0x30], 7
xor r12d, r12d
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.14000b0c0
jmp 0x140097d01
xor r12d, r12d
cmp qword [rbp - 0x38], 8
jb 0x140097d11
mov rcx, qword [rbp - 0x50]
call fcn.1400bd20c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp qword [rbp - 0x18], 8
jb 0x140097d32
mov rcx, qword [rbp - 0x30]
call fcn.1400bd20c
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp qword [rbp + 0x50], 8
jb 0x140097d53
mov rcx, qword [rbp + 0x38]
call fcn.1400bd20c
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r12
mov word [rbp + 0x38], r12w
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0x98], 0xf
mov qword [rbp + 0x90], r12
mov byte [rbp + 0x80], 0
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x70]
call fcn.1400642e0
mov rdi, rax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x10]
call fcn.1400642e0
nop
cmp qword [rax + 0x18], 8
jb 0x140097db3
mov rax, qword [rax]
lea r8, [rbp + 0x80]
mov rdx, qword [rdi + 0x10]
mov rcx, rax
call fcn.14006be10
nop
cmp qword [rbp + 8], 8
jb 0x140097dd7
mov rcx, qword [rbp - 0x10]
call fcn.1400bd20c
mov qword [rbp + 8], 7
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
cmp qword [rbp - 0x58], 8
jb 0x140097df8
mov rcx, qword [rbp - 0x70]
call fcn.1400bd20c
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
cmp qword [rbp + 0x90], 0
jne 0x140097e7c
cmp qword [rbp + 0x98], 0x10
jb 0x140097e29
mov rcx, qword [rbp + 0x80]
call fcn.1400bd20c
mov byte [rbp + 0x80], 0
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], 0xf
cmp qword [rbp + 0x30], 8
jb 0x140097e52
mov rcx, qword [rbp + 0x18]
call fcn.1400bd20c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x78], 0x10
jb 0x140097e73
mov rcx, qword [rbp + 0x60]
call fcn.1400bd20c
mov r13d, dword [rbp + 0x58]
jmp 0x140098117
xor eax, eax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
lea r8, [rbp + 0xd0]
lea rcx, [rbp + 0x80]
call fcn.14006e210
mov rsi, qword [rbp + 0xd0]
mov r14, qword [rbp + 0xd8]
cmp rsi, r14
je 0x14009808b
xor eax, eax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
and eax, 0xffffff00
mov dword [rbp + 0xa8], eax
btr eax, 8
mov dword [rbp + 0xa8], eax
mov qword [rbp + 0xb0], r12
mov eax, dword [rsp + 0x48]
and eax, 0xffffff04
or eax, 4
mov dword [rsp + 0x48], eax
bts eax, 8
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rcx, qword [rbp + 0x60]
mov edx, dword [rbp + 0x70]
call fcn.1400b7850
mov qword [rsp + 0x40], rax
lea rdx, [0x14012f7b4]
lea rcx, [rbp + 0xa0]
call fcn.1400b8670
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400b7e30
nop
lea rcx, [rsp + 0x40]
call fcn.1400b7d80
mov eax, dword [rsp + 0x30]
and eax, 0xffffff04
or eax, 4
mov dword [rsp + 0x30], eax
bts eax, 8
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r12
cmp qword [rsi + 0x18], 0x10
jb 0x140097f8e
mov rcx, qword [rsi]
jmp 0x140097f91
mov rcx, rsi
mov edx, dword [rsi + 0x10]
call fcn.1400b7850
mov qword [rsp + 0x28], rax
lea rdx, str.file
lea rcx, [rbp + 0xa0]
call fcn.1400b8670
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400b7e30
nop
lea rcx, [rsp + 0x28]
call fcn.1400b7d80
mov eax, dword [rsp + 0x60]
and eax, 0xffffff01
or eax, 1
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], r12
movsxd rax, dword [rbx + 0x40]
mov qword [rsp + 0x58], rax
lea rdx, str.status
lea rcx, [rbp + 0xa0]
call fcn.1400b8670
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.1400b7e30
nop
lea rcx, [rsp + 0x58]
call fcn.1400b7d80
mov eax, dword [rsp + 0x78]
and eax, 0xffffff01
or eax, 1
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], r12
movsxd rax, dword [rbx + 0x44]
mov qword [rsp + 0x70], rax
lea rdx, str.start
lea rcx, [rbp + 0xa0]
call fcn.1400b8670
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.1400b7e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400b7d80
mov rcx, qword [rbp - 0x78]
call fcn.1400b8250
mov edx, eax
mov rcx, qword [rbp - 0x78]
call fcn.1400b8330
mov rcx, rax
lea rdx, [rbp + 0xa0]
call fcn.1400b7e30
nop
lea rcx, [rbp + 0xa0]
call fcn.1400b7d80
nop
test rsi, rsi
je 0x140097e13
mov rdi, rsi
cmp rsi, r14
je 0x1400980c7
nop dword [rax]
cmp qword [rdi + 0x18], 0x10
jb 0x1400980af
mov rcx, qword [rdi]
call fcn.1400bd20c
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], 0
add rdi, 0x20
cmp rdi, r14
jne 0x1400980a0
mov rcx, rsi
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
jmp 0x140097e13
cmp qword [rbp + 0x30], 8
jb 0x1400980f6
mov rcx, qword [rbp + 0x18]
call fcn.1400bd20c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x78], 0x10
jb 0x140098117
mov rcx, qword [rbp + 0x60]
call fcn.1400bd20c
mov byte [rbp + 0x60], 0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0xf
add rbx, 0x48
mov rax, qword [rbp + 0xc0]
cmp rbx, rax
je 0x14009817d
jmp 0x140097840
lea rcx, str.invalid_string_position
call fcn.1400bbc50
int3
lea rcx, str.invalid_string_position
call fcn.1400bbc50
int3
lea rcx, str.invalid_string_position
call fcn.1400bbc50
nop
lea rcx, str.invalid_string_position
call fcn.1400bbc50
int3
lea rcx, str.invalid_string_position
call fcn.1400bbc50
nop
mov rbx, qword [rbp + 0xb8]
test rbx, rbx
je 0x1400981ae
mov r8, rax
mov rdx, rbx
call fcn.1400a2bc0
mov rcx, rbx
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb8], xmm0
mov qword [rbp + 0xc8], r12
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x410]
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