Function at 0x140046540
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rcx
cmp qword [rcx + 0x18], 8
jb 0x140046581
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140046bfe
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.140012240
nop
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor r13d, r13d
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x1400465d0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140011160
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1400a83f0
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r8, qword [rbp - 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.1400b81fc
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140046644
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140011160
nop
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
lea rsi, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rsi, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x70]
cmp rdi, 8
jae 0x140046699
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], 7
jmp 0x14004672f
mov rbx, rdi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140046c30
add rcx, rcx
cmp rcx, 0x1000
jb 0x140046703
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140046c30
mov rcx, rax
call fcn.1400a5718
mov rcx, rax
test rax, rax
je 0x140046c48
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140046712
test rcx, rcx
je 0x14004670f
call fcn.1400a5718
jmp 0x140046712
mov rax, r13
mov qword [rsp + 0x40], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.1400a7d40
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r13w
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140046760
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.140011160
nop
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r13w
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400467a0
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140011160
nop
mov r8d, 1
lea rdx, [0x1400ff634]
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140046840
lea rcx, [rsp + 0x60]
call fcn.140011160
nop
mov ebx, r13d
nop dword [rax]
inc ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
mov dword [rbp + 0x10], eax
mov r9d, 0xa
mov r8d, r9d
lea rdx, [rbp]
mov ecx, ebx
call fcn.1400bc368
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140011160
mov r8d, 1
lea rdx, [0x1401001bc]
lea rcx, [rsp + 0x40]
call fcn.140012440
mov r8d, 1
lea rdx, [0x1401090e8]
lea rcx, [rsp + 0x40]
call fcn.140012440
lea rax, [rbp]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400468e0
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call fcn.140012440
mov r8d, 1
lea rdx, [0x140102470]
lea rcx, [rsp + 0x40]
call fcn.140012440
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, [rsp + 0x20]
call fcn.140011160
mov r8d, 1
lea rdx, [0x1400ff634]
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140012440
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400469a0
lea rcx, [rsp + 0x60]
call fcn.140011160
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140046860
lea rax, [rsp + 0x60]
cmp r14, rax
je 0x1400469fd
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, r14
call fcn.140011160
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140046a3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046a3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c36
call fcn.1400a59a4
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140046a95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046a90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c3c
call fcn.1400a59a4
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r13w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140046aea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046ae4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c42
call fcn.1400a59a4
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140046b2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c48
call fcn.1400a59a4
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140046b81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c4e
call fcn.1400a59a4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140046bc2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046bbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c54
call fcn.1400a59a4
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140046bfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046bf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046c2a
call fcn.1400a59a4
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
call fcn.1400b4704
nop
call fcn.140003e70
nop
call fcn.1400b4704
nop
call fcn.1400b4704
nop
call fcn.1400b4704
nop
call fcn.1400b4704
nop
call fcn.1400b4704
nop
call fcn.1400b4704
int3