Function at 0x1400596b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push r12
push r13
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r13d, r13d
mov qword [rsp + 0x38], rcx
mov r15, rdx
mov qword [rsp + 0x50], r13
mov r12d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x60], r13
lea rdx, str.reports
mov qword [rsp + 0x70], r13
mov rbx, rcx
mov qword [rsp + 0x78], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140059715
lea rcx, [rsp + 0x60]
call fcn.14001e4a0
lea rcx, [rbx + 8]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x30]
call fcn.140029610
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140059780
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005977b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005977b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
lea rcx, [rbp + 0x10]
call fcn.14003e0f0
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14003e2a0
test al, al
je 0x140059b46
mov qword [rsp + 0x3b8], rsi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x3c8], r14
call fcn.140029560
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r13d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov rsi, rax
call fcn.140058da0
mov r14, qword [rax]
mov qword [rax], r13
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140059853
cmp byte [rbx + 0x28], r12b
je 0x1400597f7
mov rcx, rbx
call fcn.14005f890
mov rcx, qword [rbx]
lea rax, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rbx + 0x30]
call fcn.140058b10
lea rcx, [rbx + 8]
call fcn.140029580
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140059846
call fcn.14003d170
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rbx
call fcn.1400ceafc
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x3c0], rdi
lea rcx, [rbp + 0x10]
call fcn.14003e160
test eax, eax
jne 0x1400599b0
mov r13, qword [rsp + 0x38]
nop word [rax + rax]
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.1400295f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140034110
test al, al
je 0x14005998a
mov rax, rsi
sub rax, r15
cmp qword [rbp - 0x40], rax
jg 0x14005998a
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.14002a440
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140029870
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1400598dd
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rax
call fcn.140031ea0
lea rcx, [rsp + 0x60]
movzx ebx, al
call fcn.140029580
lea rcx, [rbp - 0x10]
call fcn.140029580
test bl, bl
je 0x14005998a
mov rbx, qword [r14 + 0x30]
mov rdi, qword [r14 + 0x38]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
cmp rbx, rdi
je 0x14005994e
nop dword [rax]
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x60]
call fcn.140031dc0
test al, al
jne 0x14005994e
add rbx, 0x98
cmp rbx, rdi
jne 0x140059930
cmp rbx, qword [r14 + 0x38]
je 0x14005996d
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x140059962
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005998a
lea rcx, [rbp - 0x80]
call fcn.140034410
test al, al
je 0x14005998a
inc r12d
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14005f450
lea rcx, [rbp - 0x80]
call fcn.140029580
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.14003e160
test eax, eax
je 0x140059880
mov dword [rsp + 0x30], r12d
xor r13d, r13d
mov rbx, qword [r14 + 0x30]
lea r12, [r14 + 0x30]
cmp rbx, qword [r14 + 0x38]
je 0x140059aac
lea r13, [rbx + 0x98]
xor r12d, r12d
nop dword [rax]
lea rdi, [r13 - 0x80]
mov rcx, rdi
call fcn.1400342b0
test al, al
jne 0x140059a83
mov r15, qword [r14 + 0x38]
mov rsi, r13
cmp r13, r15
je 0x140059a3e
add rdi, 0x70
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rdi - 0x88]
mov rdx, rsi
call fcn.140058c10
mov eax, dword [rdi + 0x90]
lea rdx, [rdi + 0x98]
mov rcx, rdi
mov dword [rdi - 8], eax
call fcn.140058ba0
add rsi, 0x98
add rdi, 0x98
cmp rsi, r15
jne 0x140059a00
mov r15, qword [r14 + 0x38]
mov r8, qword [r15 - 0x10]
lea rdx, [r15 - 0x10]
lea rcx, [r15 - 0x10]
mov r8, qword [r8 + 8]
call fcn.140009610
mov rcx, qword [r15 - 0x10]
mov edx, 0x60
call fcn.1400ceafc
lea rcx, [r15 - 0x98]
call fcn.140015f50
add qword [r14 + 0x38], 0xffffffffffffff68
mov rax, qword [r14 + 0x38]
inc r12d
mov byte [r14 + 0x28], 1
jmp 0x140059a95
mov rax, qword [r14 + 0x38]
add rbx, 0x98
add r13, 0x98
cmp rbx, rax
jne 0x1400599d0
mov qword [rsp + 0x50], r12
lea r12, [r14 + 0x30]
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140059b80
add r13d, dword [rsp + 0x30]
cmp byte [r14 + 0x28], 0
mov rdi, qword [rsp + 0x3c0]
mov rsi, qword [rsp + 0x3b8]
je 0x140059ada
mov rcx, r14
call fcn.14005f890
mov rcx, qword [r14]
lea rax, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov rcx, r12
call fcn.140058b10
lea rcx, [r14 + 8]
call fcn.140029580
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x140059b28
call fcn.14003d170
mov qword [r14], 0xffffffffffffffff
mov edx, 0x50
mov rcx, r14
call fcn.1400ceafc
lea rcx, [rbp - 0x60]
call fcn.140029580
mov r14, qword [rsp + 0x3c8]
lea rcx, [rbp + 0x10]
call fcn.14003e130
lea rcx, [rbp - 0x30]
call fcn.140029580
mov eax, r13d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x380
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret