Function at 0x1401d7050
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov rsi, rcx
test r8, r8
je 0x1401d71ec
js 0x1401d73ad
mov rdi, r8
mov rbx, rdx
movzx eax, byte [0x14043f240]
xor ecx, ecx
mov rdx, r8
call fcn.1401d3670
test rax, rax
je 0x1401d73b2
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x14043f240]
xor ecx, ecx
mov rdx, rdi
call fcn.1401d3670
test rax, rax
je 0x1401d73bf
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x40], 0
lea rdx, [0x1403dbd20]
lea rcx, [rbp - 0x58]
mov r8d, 1
call fcn.1401cffc0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x240], rax
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x210]
mov qword [rbp + 0x248], rdx
call fcn.1401cd5a0
mov rax, qword [rbp + 0x210]
mov r15, qword [rbp + 0x218]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1401d7195
mov rcx, qword [rbp + 0x220]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rcx
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp - 0x58]
call fcn.1401cf3f0
mov r12, qword [rbp + 0x1f8]
mov r15, qword [rbp + 0x200]
cmp r12, rbx
jne 0x1401d7214
mov rdi, qword [rbp + 0x250]
mov qword [rsi], r15
mov dword [rsi + 0x10], 2
cmp qword [rbp + 0x240], 0
je 0x1401d71c6
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, qword [rbp + 0x248]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rdi
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x300000002
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rbx, [rbp - 0x58]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x250]
je 0x1401d72e7
mov r13, rax
movzx eax, byte [0x14043f240]
mov edx, 0x30
xor ecx, ecx
call fcn.1401d3670
test rax, rax
je 0x1401d73d5
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, [rsi + 0x14]
lea rdx, [rbp - 0x58]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rbx
mov qword [rsi + 8], r13
mov dword [rsi + 0x10], 1
test r12, r12
je 0x1401d72be
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x240], 0
je 0x1401d7200
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, qword [rbp + 0x248]
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1401d7200
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1401d734d
movzx eax, byte [0x14043f240]
mov edx, 0x30
xor ecx, ecx
call fcn.1401d3670
test rax, rax
je 0x1401d73fb
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
mov qword [rsi], rax
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
test r12, r12
jne 0x1401d72ac
jmp 0x1401d72be
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
test r12, r12
je 0x1401d7376
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x240], 0
je 0x1401d7396
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, qword [rbp + 0x248]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1401d7200
call fcn.140035190
mov ecx, 1
mov rdx, rdi
call fcn.14032afb0
mov byte [rbp + 0x25f], 1
mov ecx, 1
mov rdx, rdi
call fcn.14032afb0
jmp 0x1401d7418
mov qword [rbp + 0x228], r13
mov qword [rbp + 0x230], r12
mov qword [rbp + 0x238], r15
mov ecx, 8
mov edx, 0x30
call fcn.14032afd0
jmp 0x1401d7418
mov qword [rbp + 0x230], r12
mov qword [rbp + 0x238], r15
mov ecx, 8
mov edx, 0x30
call fcn.14032afd0
ud2