Function at 0x1400575c0
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
mov rbx, rcx
test r8, r8
je 0x14005772d
mov rsi, r8
js 0x14005790a
mov r14, rdx
mov r13, qword [0x1400da368]
movzx eax, byte [r13]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call fcn.140004e10
test rax, rax
je 0x14005790d
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sub.msvcrt.dll_memcpy
movzx eax, byte [r13]
mov edx, 1
mov rcx, rsi
call fcn.140004e10
test rax, rax
je 0x140057918
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x48], 0
lea rdx, [0x1400bbcf8]
lea rcx, [rbp - 0x60]
mov r8d, 1
call fcn.14004c200
mov r15, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp + 0x208]
mov qword [rbp + 0x220], rdx
call fcn.140064c50
mov rax, qword [rbp + 0x208]
mov r12, qword [rbp + 0x210]
mov rcx, rax
neg rcx
jo 0x1400576f6
mov rcx, qword [rbp + 0x218]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rcx
lea rcx, [rbp + 0x1f0]
lea rdx, [rbp - 0x60]
mov r8b, 1
call fcn.140067240
movabs rax, 0x8000000000000000
mov rcx, qword [rbp + 0x1f0]
mov r12, qword [rbp + 0x1f8]
cmp rcx, rax
jne 0x140057758
mov qword [rbx], r12
mov dword [rbx + 0x10], 2
test r15, r15
je 0x14005771a
mov r8d, 1
mov rcx, qword [rbp + 0x220]
mov rdx, r15
call fcn.140004e20
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call fcn.140004e20
jmp 0x140057741
movabs rax, 0x300000002
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rax, rbx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x228], rcx
lea r14, [rbp - 0x60]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r12
mov rdx, r14
call sub.kernel32.dll_FindFirstFileW
cmp rax, 0xffffffffffffffff
je 0x140057836
mov r14, rax
mov qword [rbp + 0x230], r15
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call fcn.140004e10
test rax, rax
je 0x140057927
mov r15, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
lea rcx, [rbx + 0x14]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.msvcrt.dll_memcpy
mov qword [rbx], r15
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
mov rdx, qword [rbp + 0x228]
test rdx, rdx
je 0x14005780f
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.140004e20
mov rdx, qword [rbp + 0x230]
test rdx, rdx
je 0x140057741
mov r8d, 1
mov rcx, qword [rbp + 0x220]
call fcn.140004e20
jmp 0x140057741
call fcn.1400b05ac
cmp eax, 2
jne 0x1400578d2
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call fcn.140004e10
test rax, rax
mov rdx, qword [rbp + 0x228]
je 0x140057938
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], 0
test rdx, rdx
je 0x1400578af
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.140004e20
test r15, r15
je 0x140057741
mov r8d, 1
mov rcx, qword [rbp + 0x220]
mov rdx, r15
call fcn.140004e20
jmp 0x140057741
shl rax, 0x20
or rax, 2
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rdx, qword [rbp + 0x228]
test rdx, rdx
je 0x140057700
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.140004e20
jmp 0x140057700
xor r15d, r15d
mov rcx, r15
mov rdx, rsi
call fcn.14008d120
mov ecx, 1
mov rdx, rsi
call fcn.14008d120
jmp 0x14005794e
mov ecx, 8
mov edx, 0x30
call fcn.14008d140
jmp 0x14005794e
mov qword [rbp + 0x230], r15
mov ecx, 8
mov edx, 0x30
call fcn.14008d140
ud2