Function at 0x1400593d0
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 0x140059435
lea rcx, [rsp + 0x60]
call fcn.14001e1e0
lea rcx, [rbx + 8]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x30]
call fcn.140029350
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400594a0
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005949b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005949b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
lea rcx, [rbp + 0x10]
call fcn.14003de10
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14003dfc0
test al, al
je 0x140059866
mov qword [rsp + 0x3b8], rsi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x3c8], r14
call fcn.1400292a0
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.140058ac0
mov r14, qword [rax]
mov qword [rax], r13
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140059573
cmp byte [rbx + 0x28], r12b
je 0x140059517
mov rcx, rbx
call fcn.14005f5b0
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.140058830
lea rcx, [rbx + 8]
call fcn.1400292c0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140059566
call fcn.14003ce90
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rbx
call fcn.1400ce80c
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x3c0], rdi
lea rcx, [rbp + 0x10]
call fcn.14003de80
test eax, eax
jne 0x1400596d0
mov r13, qword [rsp + 0x38]
nop word [rax + rax]
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140029330
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140033e50
test al, al
je 0x1400596aa
mov rax, rsi
sub rax, r15
cmp qword [rbp - 0x40], rax
jg 0x1400596aa
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.14002a180
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1400295b0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1400595fd
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.140031be0
lea rcx, [rsp + 0x60]
movzx ebx, al
call fcn.1400292c0
lea rcx, [rbp - 0x10]
call fcn.1400292c0
test bl, bl
je 0x1400596aa
mov rbx, qword [r14 + 0x30]
mov rdi, qword [r14 + 0x38]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
cmp rbx, rdi
je 0x14005966e
nop dword [rax]
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x60]
call fcn.140031b00
test al, al
jne 0x14005966e
add rbx, 0x98
cmp rbx, rdi
jne 0x140059650
cmp rbx, qword [r14 + 0x38]
je 0x14005968d
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x140059682
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400596aa
lea rcx, [rbp - 0x80]
call fcn.140034150
test al, al
je 0x1400596aa
inc r12d
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14005f170
lea rcx, [rbp - 0x80]
call fcn.1400292c0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.14003de80
test eax, eax
je 0x1400595a0
mov dword [rsp + 0x30], r12d
xor r13d, r13d
mov rbx, qword [r14 + 0x30]
lea r12, [r14 + 0x30]
cmp rbx, qword [r14 + 0x38]
je 0x1400597cc
lea r13, [rbx + 0x98]
xor r12d, r12d
nop dword [rax]
lea rdi, [r13 - 0x80]
mov rcx, rdi
call fcn.140033ff0
test al, al
jne 0x1400597a3
mov r15, qword [r14 + 0x38]
mov rsi, r13
cmp r13, r15
je 0x14005975e
add rdi, 0x70
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rdi - 0x88]
mov rdx, rsi
call fcn.140058930
mov eax, dword [rdi + 0x90]
lea rdx, [rdi + 0x98]
mov rcx, rdi
mov dword [rdi - 8], eax
call fcn.1400588c0
add rsi, 0x98
add rdi, 0x98
cmp rsi, r15
jne 0x140059720
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.1400ce80c
lea rcx, [r15 - 0x98]
call fcn.140015c90
add qword [r14 + 0x38], 0xffffffffffffff68
mov rax, qword [r14 + 0x38]
inc r12d
mov byte [r14 + 0x28], 1
jmp 0x1400597b5
mov rax, qword [r14 + 0x38]
add rbx, 0x98
add r13, 0x98
cmp rbx, rax
jne 0x1400596f0
mov qword [rsp + 0x50], r12
lea r12, [r14 + 0x30]
mov r13, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.1400598a0
add r13d, dword [rsp + 0x30]
cmp byte [r14 + 0x28], 0
mov rdi, qword [rsp + 0x3c0]
mov rsi, qword [rsp + 0x3b8]
je 0x1400597fa
mov rcx, r14
call fcn.14005f5b0
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.140058830
lea rcx, [r14 + 8]
call fcn.1400292c0
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x140059848
call fcn.14003ce90
mov qword [r14], 0xffffffffffffffff
mov edx, 0x50
mov rcx, r14
call fcn.1400ce80c
lea rcx, [rbp - 0x60]
call fcn.1400292c0
mov r14, qword [rsp + 0x3c8]
lea rcx, [rbp + 0x10]
call fcn.14003de50
lea rcx, [rbp - 0x30]
call fcn.1400292c0
mov eax, r13d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x380
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret