Function at 0x140017224
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rdx
xor edi, edi
mov esi, edi
mov dword [rsp + 0x34], edi
mov r12b, 1
cmp qword [rcx + 0x18], 8
jb 0x14001727a
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001751e
cmp qword [rbx + 0x18], 8
jb 0x140017295
mov rcx, qword [rbx]
jmp 0x140017298
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14001751e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400128a8
mov r14, rdi
mov qword [rsp + 0x38], rdi
mov r15, qword [rsp + 0x48]
sub r15, qword [rsp + 0x40]
sar r15, 5
mov qword [rsp + 0x60], r15
cmp r12b, 1
jne 0x140017512
cmp r14, r15
jae 0x140017512
mov rdx, r14
shl rdx, 5
add rdx, qword [rsp + 0x40]
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x98]
call fcn.1400104e4
nop
lea rcx, [rsp + 0x98]
call fcn.1400126f8
test al, al
jne 0x14001737a
mov rdx, r13
lea rcx, [rsp + 0x78]
call fcn.14001011c
or esi, 1
mov dword [rsp + 0x34], esi
mov r9, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140017362
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140014724
cmp rax, 0xffffffffffffffff
mov bl, 1
jne 0x14001737d
mov bl, dil
test sil, 1
je 0x14001739f
and esi, 0xfffffffe
mov dword [rsp + 0x34], esi
cmp qword [rsp + 0x90], 8
jb 0x14001739f
mov rcx, qword [rsp + 0x78]
call fcn.1400400f0
test bl, bl
je 0x1400174cf
lea rcx, [rsp + 0x98]
call fcn.140012538
test al, al
jne 0x1400173ca
lea rcx, [rsp + 0x98]
call fcn.140012134
jmp 0x1400174cf
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rdi
mov word [rsp + 0x78], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x78]
call fcn.1400104e4
nop
mov rdx, r13
lea rcx, [rsp + 0xb8]
call fcn.14001011c
nop
mov rcx, qword [r13 + 0x10]
mov qword [rsp + 0x68], rcx
mov r9, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140017425
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140014724
mov rbx, rax
lea rcx, [0x140137d18]
call fcn.1400ded00
mov qword [rsp + 0x20], rax
lea r9, [0x140137d18]
mov r8, qword [rsp + 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140015a64
lea rcx, [rsp + 0x78]
cmp rcx, rax
je 0x14001747e
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400104e4
nop
cmp qword [rsp + 0xd0], 8
jb 0x140017496
mov rcx, qword [rsp + 0xb8]
call fcn.1400400f0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x98]
call fcn.1400170e0
test al, al
je 0x1400174ba
lea rcx, [rsp + 0x98]
call fcn.140012134
nop
cmp qword [rsp + 0x90], 8
jb 0x1400174cf
mov rcx, qword [rsp + 0x78]
call fcn.1400400f0
inc r14
mov qword [rsp + 0x38], r14
cmp qword [rsp + 0xb0], 8
jb 0x1400174f0
mov rcx, qword [rsp + 0x98]
call fcn.1400400f0
nop
jmp 0x1400172df
lea rcx, [rsp + 0x40]
call fcn.140017554
jmp 0x140017521
mov r12b, dil
mov al, r12b
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret