Function at 0x18004e970
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x180089070]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rsp + 0x28], r9
mov r15, r8
mov r13, rdx
mov rsi, rcx
mov r12, qword [rbp + 0x240]
mov rax, qword [rbp + 0x248]
mov qword [rsp + 0x20], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r14, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x18004e9dd
mov r15, qword [r8]
cmp r14, 8
jae 0x18004e9f3
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x30], xmm0
mov ebx, 7
jmp 0x18004ea31
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.18004cc20
mov qword [rsp + 0x30], rax
lea r8, [r14*2 + 2]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
test r14, r14
je 0x18004ea90
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
cmp rbx, 8
cmovae rax, rcx
cmp word [rax + r14*2 - 2], 0x5c
je 0x18004ea87
lea rax, [rsp + 0x30]
cmp rbx, 8
cmovae rax, rcx
cmp word [rax + r14*2 - 2], 0x2f
je 0x18004ea87
lea rax, [rsp + 0x30]
cmp rbx, 8
cmovae rax, rcx
cmp word [rax + r14*2 - 2], 0x3a
jne 0x18004ea90
lea rdx, [0x180056bc8]
jmp 0x18004ea97
lea rdx, [0x180056bc0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x18004eaa1
lea rcx, [rsp + 0x30]
call fcn.18004cc90
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r13], rax
cmp rax, rbx
jne 0x18004eb65
mov qword [r13], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18004eb01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18004eb01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsi], edi
test edi, edi
setne al
mov byte [rsi + 4], al
lea rax, [0x1800569e0]
mov qword [rsi + 8], rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18004eca5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004eb5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004eb5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180053364
nop
jmp 0x18004eca5
lea rax, [rbp - 0x64]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18004eb70
lea rdx, [rbp - 0x64]
mov rcx, qword [rsp + 0x28]
call fcn.18004e700
mov eax, dword [rsp + 0x70]
mov r14, qword [rsp + 0x20]
bt eax, 0xa
jae 0x18004eba4
mov dword [r12], edi
mov dword [r14], edi
jmp 0x18004ec4e
and eax, 0x10
or eax, 0x20
shr eax, 4
mov dword [r12], eax
mov dword [r14], eax
mov qword [rsp + 0x50], rdi
movdqa xmm0, xmmword [0x180056c40]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
lea rax, [rbp - 0x64]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18004ebd0
mov r8, rbx
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x50]
call fcn.18004e700
nop
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.18004f8d0
mov dword [r12 + 4], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18004ec45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ec3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ec3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180053364
nop
mov eax, dword [r12 + 4]
mov dword [r14 + 4], eax
mov dword [rsi], edi
mov byte [rsi + 4], 0
lea rax, [0x1800569e0]
mov qword [rsi + 8], rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18004eca5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ec9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ec9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180053364
nop
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180052cf0
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret