Function at 0x18007d84c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rcx
mov ecx, 8
call fcn.18009a960
xor r13d, r13d
cmp rax, r13
je 0x18007d88c
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x18007d88f
mov rax, r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r13d
je 0x18007da73
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180092374
cmp eax, r13d
jne 0x18007da73
mov rcx, qword [rsp + 0x38]
mov rdi, rcx
mov rbx, qword [rsp + 0x40]
cmp rcx, rbx
jbe 0x18007d8ec
call fcn.18009a80c
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rdi, 8
mov rbp, rbx
cmp rcx, rbx
jbe 0x18007d90c
call fcn.18009a80c
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rsi, r13
je 0x18007d918
cmp rsi, qword [rsp + 0x20]
je 0x18007d927
call fcn.18009a80c
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea r12, [rdi - 8]
cmp r12, rbp
je 0x18007da2a
cmp rsi, r13
jne 0x18007d943
call fcn.18009a80c
mov r11, r13
jmp 0x18007d946
mov r11, qword [rsi]
cmp r12, qword [r11 + 0x20]
jb 0x18007d951
call fcn.18009a80c
cmp qword [rdi + 0x18], 8
jb 0x18007d95d
mov rcx, qword [rdi]
jmp 0x18007d960
mov rcx, rdi
call fcn.18007d7ec
cmp eax, r13d
jne 0x18007d9d2
cmp rsi, r13
jne 0x18007d979
call fcn.18009a80c
mov r11, r13
jmp 0x18007d97c
mov r11, qword [rsi]
cmp r12, qword [r11 + 0x20]
jb 0x18007d987
call fcn.18009a80c
cmp qword [rdi + 0x18], 8
jb 0x18007d993
mov rcx, qword [rdi]
jmp 0x18007d996
mov rcx, rdi
xor edx, edx
call fcn.18007e6a4
cmp eax, r13d
jne 0x18007d9d2
cmp rsi, r13
jne 0x18007d9b1
call fcn.18009a80c
mov r11, r13
jmp 0x18007d9b4
mov r11, qword [rsi]
cmp r12, qword [r11 + 0x20]
jb 0x18007d9bf
call fcn.18009a80c
add rdi, 0x28
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
jmp 0x18007d8f5
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x18007da20
mov rdi, qword [rsp + 0x40]
cmp rcx, rdi
je 0x18007da1b
lea rbx, [rcx + 0x20]
cmp qword [rbx], 8
jb 0x18007d9f9
mov rcx, qword [rbx - 0x18]
call fcn.18009a864
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], r13w
add rbx, 0x28
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x18007d9ea
mov rcx, qword [rsp + 0x38]
call fcn.18009a864
mov ebx, 1
jmp 0x18007dac4
cmp rcx, r13
je 0x18007da6e
cmp rcx, rbx
je 0x18007da69
lea rdi, [rcx + 0x20]
cmp qword [rdi], 8
jb 0x18007da47
mov rcx, qword [rdi - 0x18]
call fcn.18009a864
mov qword [rdi], 7
mov qword [rdi - 8], r13
mov word [rdi - 0x18], r13w
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rbx
jne 0x18007da38
mov rcx, qword [rsp + 0x38]
call fcn.18009a864
mov ebx, r13d
jmp 0x18007dac4
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x18007dac1
mov rdi, qword [rsp + 0x40]
cmp rcx, rdi
je 0x18007dabc
lea rbx, [rcx + 0x20]
cmp qword [rbx], 8
jb 0x18007da9a
mov rcx, qword [rbx - 0x18]
call fcn.18009a864
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], r13w
add rbx, 0x28
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x18007da8b
mov rcx, qword [rsp + 0x38]
call fcn.18009a864
mov ebx, r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rcx, qword [rsp + 0x20]
call fcn.18009a864
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret