Function at 0x100046c7c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r12, r9
mov rsi, r8
mov rbp, rdx
mov r13, rcx
lea rcx, [rsp + 0x20]
call fcn.10001fee0
nop
mov rax, qword [rbp]
xor ebx, ebx
lea r14, [rbx - 1]
cmp dword [rax - 0x10], ebx
jne 0x100046ce9
xor eax, eax
mov rcx, r14
lea rdx, [0x10000e508]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.10001fae8
mov rax, qword [rsi]
cmp dword [rax - 0x10], ebx
jne 0x100046d12
xor eax, eax
mov rcx, r14
lea rdx, [0x10000e528]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.10001fae8
mov rax, qword [r12]
cmp dword [rax - 0x10], ebx
jne 0x100046d3c
xor eax, eax
mov rcx, r14
lea rdx, [0x10000e4e0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, r12
call fcn.10001fae8
lea rax, [rsp + 0x20]
mov r14d, 0x57
cmp rax, rbx
jne 0x100046d57
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100046d71
lea r8, [rsp + 0x20]
mov edx, VariantTimeToDosDateTime
mov rcx, r13
call fcn.1000454bc
cmp eax, ebx
jne 0x100046e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100046df0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.10001ff10
mov rdi, rax
lea rdx, [0x10000e3d0]
lea rcx, [rsp + 0x30]
call fcn.10001ff98
nop
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.100046178
cmp eax, ebx
jne 0x100046e1c
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov rcx, r12
call fcn.10001fba0
xor eax, eax
jmp 0x100046fec
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov rcx, r12
call fcn.10001fba0
xor eax, eax
jmp 0x100046fec
lea rax, [rsp + 0x20]
cmp rax, rbx
jne 0x100046e31
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100046e4b
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r13
call fcn.1000454bc
cmp eax, ebx
jne 0x100046ef6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100046eca
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.10001ff10
mov rdi, rax
lea rdx, [0x10000e3e8]
lea rcx, [rsp + 0x28]
call fcn.10001ff98
nop
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.100046178
cmp eax, ebx
jne 0x100046ef6
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov rcx, r12
call fcn.10001fba0
xor eax, eax
jmp 0x100046fec
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov rcx, r12
call fcn.10001fba0
xor eax, eax
jmp 0x100046fec
lea rax, [rsp + 0x20]
cmp rax, rbx
jne 0x100046f0b
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100046f25
lea r8, [rsp + 0x20]
mov edx, 0xd
mov rcx, r13
call fcn.1000454bc
cmp eax, ebx
jne 0x100046fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100046fa1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.10001ff10
mov rdi, rax
lea rdx, [0x10000bb08]
lea rcx, [rsp + 0x28]
call fcn.10001ff98
nop
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.100046178
cmp eax, ebx
jne 0x100046fc0
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov rcx, r12
call fcn.10001fba0
xor eax, eax
jmp 0x100046fec
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
jmp 0x100046fe2
lea rcx, [rsp + 0x20]
call fcn.10001fba0
nop
mov rcx, rbp
call fcn.10001fba0
nop
mov rcx, rsi
call fcn.10001fba0
nop
mov ebx, 1
mov rcx, r12
call fcn.10001fba0
mov eax, ebx
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret