Function at 0x180046770
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rdx
mov r14, rcx
lea rsi, [rcx + 8]
cmp qword [rsi + 0x10], 0
je 0x180046e18
cmp qword [rsi + 0x18], 8
jb 0x1800467c4
mov rcx, qword [rsi]
jmp 0x1800467c7
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x180046e18
mov eax, dword [r14 + 0x8c]
xor r15d, r15d
test eax, eax
jne 0x180046950
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp - 0x28]
call fcn.1800166f0
nop
lea rcx, [rbp - 0x48]
call fcn.1800448a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1800193e0
mov rbx, rax
cmp qword [rax + 0x10], r15
je 0x180046886
call fcn.18002de60
test rax, rax
je 0x180046886
cmp qword [rbx + 0x18], 8
jb 0x180046852
mov rdx, qword [rbx]
jmp 0x180046855
mov rdx, rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000001
call rax
test eax, eax
jne 0x180046886
call fcn.18002df80
test rax, rax
je 0x180046886
mov rcx, qword [rsp + 0x38]
jmp 0x1800468d3
cmp qword [rbx + 0x10], 0
je 0x1800468d9
call fcn.18002de60
test rax, rax
je 0x1800468d9
cmp qword [rbx + 0x18], 8
jb 0x1800468a1
mov rbx, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call rax
test eax, eax
jne 0x1800468d9
call fcn.18002df80
test rax, rax
je 0x1800468d9
mov rcx, qword [rsp + 0x30]
call rax
mov bl, 1
jmp 0x1800468db
xor bl, bl
cmp qword [rbp - 0x50], 8
jb 0x1800468eb
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
cmp qword [rbp - 0x30], 8
jb 0x18004690c
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x10], 8
jb 0x18004692d
mov rcx, qword [rbp - 0x28]
call fcn.1800b5700
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
test bl, bl
je 0x180046a8f
mov eax, 1
jmp 0x180046e1d
cmp eax, 1
jne 0x180046a8f
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp - 0x28]
call fcn.1800166f0
nop
lea rcx, [rbp - 0x68]
call fcn.180044a60
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1800193e0
mov rbx, rax
cmp qword [rax + 0x10], 0
je 0x1800469f3
call fcn.18002de60
test rax, rax
je 0x1800469f3
cmp qword [rbx + 0x18], 8
jb 0x1800469bf
mov rdx, qword [rbx]
jmp 0x1800469c2
mov rdx, rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000001
call rax
test eax, eax
jne 0x1800469f3
call fcn.18002df80
test rax, rax
je 0x1800469f3
mov rcx, qword [rsp + 0x30]
jmp 0x180046a40
cmp qword [rbx + 0x10], 0
je 0x180046a46
call fcn.18002de60
test rax, rax
je 0x180046a46
cmp qword [rbx + 0x18], 8
jb 0x180046a0e
mov rbx, qword [rbx]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call rax
test eax, eax
jne 0x180046a46
call fcn.18002df80
test rax, rax
je 0x180046a46
mov rcx, qword [rsp + 0x38]
call rax
mov bl, 1
jmp 0x180046a48
xor bl, bl
cmp qword [rbp - 0x30], 8
jb 0x180046a58
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x50], 8
jb 0x180046a79
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
jmp 0x18004691d
lea rdx, [r14 + 0x48]
lea r8, [0x180100a48]
lea rcx, [rbp - 0x68]
call fcn.180019600
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.180018ea0
nop
cmp qword [rax + 0x10], 0
jne 0x180046abf
xor al, al
jmp 0x180046ad8
cmp qword [rax + 0x18], 8
jb 0x180046ac9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete bl
cmp qword [rbp - 0x30], 8
jb 0x180046aed
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x50], 8
jb 0x180046b0e
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
test bl, bl
je 0x180046b2c
or rax, 0xffffffffffffffff
jmp 0x180046e1d
lea rcx, [rbp - 0x28]
call fcn.180045000
mov rbx, rax
lea rcx, [rbp - 0x68]
call fcn.180044ec0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1800193e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.180018ea0
nop
cmp qword [rbp - 0x30], 8
jb 0x180046b72
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x50], 8
jb 0x180046b93
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
cmp qword [rbp - 0x10], 8
jb 0x180046bb4
mov rcx, qword [rbp - 0x28]
call fcn.1800b5700
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
lea rcx, [rbp - 0x28]
call fcn.180045110
mov rbx, rax
lea rcx, [rbp - 0x68]
call fcn.180044ec0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1800193e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.180018ea0
nop
cmp qword [rbp - 0x30], 8
jb 0x180046c0b
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x50], 8
jb 0x180046c2c
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
cmp qword [rbp - 0x10], 8
jb 0x180046c4d
mov rcx, qword [rbp - 0x28]
call fcn.1800b5700
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
cmp dword [r14 + 0x8c], 5
jne 0x180046c6c
lea rsi, [r14 + 0x28]
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp]
call fcn.1800165a0
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1800a14b0
nop
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x48]
lea rdx, [rbp]
call fcn.180045aa0
test al, al
je 0x180046da6
lea rcx, [rsp + 0x48]
call fcn.1800a2a30
mov esi, eax
test eax, eax
jne 0x180046da4
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1800a12e0
nop
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x48]
call fcn.1800165a0
nop
lea r9, [rbp - 0x48]
lea r8, [rsp + 0x70]
lea rdx, [rbp]
mov rcx, r14
call fcn.1800460e0
test al, al
je 0x180046d9a
cmp dword [r14 + 0x8c], 0xb
jne 0x180046d98
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.1800a12e0
nop
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.1800165a0
nop
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x28]
lea rdx, [rbp]
mov rcx, r14
call fcn.1800460e0
test al, al
cmovne esi, ebx
lea rcx, [rbp - 0x28]
call fcn.1800a17b0
jmp 0x180046d9a
mov esi, ebx
lea rcx, [rsp + 0x70]
call fcn.1800a17b0
mov edi, esi
lea rcx, [rsp + 0x48]
call fcn.1800a17b0
nop
cmp qword [rbp + 0x18], 8
jb 0x180046dc1
mov rcx, qword [rbp]
call fcn.1800b5700
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
cmp qword [rbp + 0x58], 8
jb 0x180046de2
mov rcx, qword [rbp + 0x40]
call fcn.1800b5700
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r15
mov word [rbp + 0x40], r15w
cmp qword [rbp + 0x38], 8
jb 0x180046e03
mov rcx, qword [rbp + 0x20]
call fcn.1800b5700
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
mov eax, edi
jmp 0x180046e1d
mov eax, 0xfffffffe
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret