Function at 0x140001010
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x518
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x490], 0xfffffffffffffffe
mov rsi, rcx
mov r15d, 2
test r8, r8
je 0x1400011ad
js 0x1400013c4
mov rdi, r8
mov rbx, rdx
movzx eax, byte [0x140027150]
mov rcx, r8
call fcn.140017900
test rax, rax
je 0x1400013c9
mov qword [rbp + 0x480], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x140027150]
mov rcx, rdi
call fcn.140017900
test rax, rax
je 0x1400013d6
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x1f0], rdi
mov qword [rbp + 0x1f8], r14
mov qword [rbp + 0x200], rdi
mov byte [rbp + 0x208], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rcx, [rbp + 0x1f0]
mov r8d, 1
call fcn.1400157e0
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0x470], rax
mov rdx, qword [rbp + 0x1f8]
mov r8, qword [rbp + 0x200]
mov byte [rbp + 0x48e], 1
lea rcx, [rbp - 0x60]
mov qword [rbp + 0x478], rdx
call fcn.140013c60
mov rax, qword [rbp - 0x60]
mov r12, qword [rbp - 0x58]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14000116f
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], r12
mov qword [rbp + 0x200], rcx
mov byte [rbp + 0x48e], 1
lea rcx, [rbp + 0x440]
lea rdx, [rbp + 0x1f0]
call fcn.140014fd0
mov r13, qword [rbp + 0x440]
mov r12, qword [rbp + 0x448]
cmp r13, rbx
jne 0x1400011bc
mov rdi, qword [rbp + 0x480]
cmp qword [rbp + 0x470], 0
je 0x140001196
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, qword [rbp + 0x478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400013a9
movabs r12, 0x300000002
jmp 0x1400013a9
lea rbx, [rbp + 0x1f0]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r12
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x480]
je 0x140001296
mov qword [rbp + 0x468], rax
movzx eax, byte [0x140027150]
mov ecx, 0x30
call fcn.140017900
test rax, rax
je 0x1400013ec
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x1f0]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
test r13, r13
je 0x140001260
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15d, 1
cmp qword [rbp + 0x470], 0
je 0x14000132e
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, qword [rbp + 0x478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x468]
jmp 0x14000138f
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x140001337
movzx eax, byte [0x140027150]
mov ecx, 0x30
call fcn.140017900
test rax, rax
je 0x14000140b
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
test r13, r13
je 0x1400012f7
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, 0xffffffffffffffff
cmp qword [rbp + 0x470], 0
je 0x14000138c
mov rcx, qword [0x1400271e8]
xor r15d, r15d
xor edx, edx
mov r8, qword [rbp + 0x478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, 0xffffffffffffffff
jmp 0x14000138f
mov rax, qword [rbp + 0x468]
jmp 0x14000138f
mov ebx, eax
test r13, r13
je 0x140001350
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
shl rbx, 0x20
cmp qword [rbp + 0x470], 0
je 0x140001374
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, qword [rbp + 0x478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
or rbx, 2
mov rcx, qword [0x1400271e8]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400013a6
xor r15d, r15d
mov qword [rsi + 8], rax
lea rcx, [rsi + 0x14]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov r12, rbx
mov qword [rsi], r12
mov dword [rsi + 0x10], r15d
add rsp, 0x518
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400027a0
mov ecx, 1
mov rdx, rdi
call fcn.14001c350
mov byte [rbp + 0x48f], 1
mov ecx, 1
mov rdx, rdi
call fcn.14001c350
jmp 0x140001428
mov qword [rbp + 0x458], r13
mov qword [rbp + 0x460], r12
mov ecx, 8
mov edx, 0x30
call fcn.14001c370
jmp 0x140001428
mov qword [rbp + 0x458], r13
mov qword [rbp + 0x460], r12
mov ecx, 8
mov edx, 0x30
call fcn.14001c370
ud2