Function at 0x1801baba0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x49], rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1801bac19
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1801babfa
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.18005cac0
mov qword [rbx + 0x18], 7
xor edi, edi
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1801bac12
mov rbx, qword [rbx]
xor eax, eax
jmp 0x1801baf4c
mov qword [rbp + 0x37], 7
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
cmp word [rsi], di
jne 0x1801bac35
mov r8d, edi
jmp 0x1801bac4a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], di
jne 0x1801bac40
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.18005c660
nop
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.18006d140
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x1801bac7f
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.18005cac0
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
mov qword [rbp - 0x61], 0xf
mov qword [rbp - 0x69], rdi
mov byte [rbp - 0x79], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x79]
call fcn.18005a5f0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x21]
call fcn.1800839b0
nop
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.18006cf70
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
cmp qword [rbx + 0x18], 8
jb 0x1801bace8
mov rcx, qword [rbx]
jmp 0x1801baceb
mov rcx, rbx
call fcn.18023c1c0
mov r8, qword [rbp - 0x29]
test eax, eax
je 0x1801bae27
cmp r8, 8
jb 0x1801bad12
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.18005cac0
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], rdi
mov word [rbp - 0x41], di
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1801bad78
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1801bad73
test cl, 0x1f
je 0x1801bad46
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801bad55
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801bad64
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x1801bad70
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov qword [rbp - 9], 0xf
mov qword [rbp - 0x11], rdi
mov byte [rbp - 0x21], 0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x1801badde
inc rax
mov rcx, qword [rbp - 1]
cmp rax, 0x1000
jb 0x1801badd9
test cl, 0x1f
je 0x1801badac
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801badbb
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801badca
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x1801badd6
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], rdi
mov byte [rbp - 1], 0
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1801bae06
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.18005cac0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1801bac12
mov rbx, qword [rbx]
xor eax, eax
jmp 0x1801baf4c
cmp r8, 8
jb 0x1801bae3d
inc r8
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
call fcn.18005cac0
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], rdi
mov word [rbp - 0x41], di
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1801baea3
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1801bae9e
test cl, 0x1f
je 0x1801bae71
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801bae80
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801bae8f
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x1801bae9b
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov qword [rbp - 9], 0xf
mov qword [rbp - 0x11], rdi
mov byte [rbp - 0x21], 0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x1801baf09
inc rax
mov rcx, qword [rbp - 1]
cmp rax, 0x1000
jb 0x1801baf04
test cl, 0x1f
je 0x1801baed7
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801baee6
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801baef5
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x1801baf01
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], rdi
mov byte [rbp - 1], 0
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1801baf31
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.18005cac0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1801baf47
mov rbx, qword [rbx]
mov eax, 1
mov word [rbx], di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1802037a0
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret