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

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r12d, r12d
mov qword [rsp + 0x30], rcx
mov r14, rdx
mov dword [rsp + 0x20], r12d
mov r13d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
lea rdx, str.reports
mov rbx, rcx
mov qword [rsp + 0x68], 7
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14005a6d0
lea rcx, [rsp + 0x50]
call fcn.140020a60
lea rcx, [rbx + 8]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
call fcn.14002c450
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005a73b
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a736
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a736
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
lea rcx, [rbp + 0x10]
call fcn.14003d620
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14003d850
test al, al
je 0x14005aa1b
mov qword [rsp + 0x3b8], rsi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x3c0], rdi
mov qword [rsp + 0x3c8], r15
call fcn.14002c3a0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov rsi, rax
call fcn.140059cf0
lea rcx, [rsp + 0x38]
mov r15, qword [rax]
mov qword [rsp + 0x28], r15
mov qword [rax], r12
call fcn.140059980
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.14003d690
test eax, eax
jne 0x14005a8ff
nop word [rax + rax]
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.14002c430
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140034610
test al, al
je 0x14005a8dc
mov rax, rsi
sub rax, r14
cmp qword [rbp - 0x40], rax
jg 0x14005a8dc
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.14002d280
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14002c6b0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14005a82d
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x38]
mov rax, qword [rax + 0x10]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rax
call fcn.140032ba0
lea rcx, [rsp + 0x50]
movzx ebx, al
call fcn.14002c3c0
lea rcx, [rbp - 0x10]
call fcn.14002c3c0
test bl, bl
je 0x14005a8dc
mov rbx, qword [r15 + 0x30]
mov rdi, qword [r15 + 0x38]
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
cmp rbx, rdi
je 0x14005a89e
nop dword [rax]
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x50]
call fcn.140032ac0
test al, al
jne 0x14005a89e
add rbx, 0x98
cmp rbx, rdi
jne 0x14005a880
cmp rbx, qword [r15 + 0x38]
je 0x14005a8bd
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x14005a8b2
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005a8dc
lea rcx, [rbp - 0x80]
call fcn.140035360
test al, al
je 0x14005a8dc
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
inc r13d
call fcn.14005fb50
lea rcx, [rbp - 0x80]
call fcn.14002c3c0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.14003d690
test eax, eax
je 0x14005a7d0
mov dword [rsp + 0x20], r13d
mov rbx, qword [r15 + 0x30]
cmp rbx, qword [r15 + 0x38]
je 0x14005a9e3
lea r13, [rbx + 0x98]
lea rdi, [r13 - 0x80]
mov rcx, rdi
call fcn.140034c00
test al, al
jne 0x14005a9c3
mov r14, qword [r15 + 0x38]
mov rsi, r13
cmp r13, r14
je 0x14005a97e
add rdi, 0x70
nop dword [rax + rax]
lea rcx, [rdi - 0x88]
mov rdx, rsi
call fcn.140059b60
mov eax, dword [rdi + 0x90]
lea rdx, [rdi + 0x98]
mov rcx, rdi
mov dword [rdi - 8], eax
call fcn.140059af0
add rsi, 0x98
add rdi, 0x98
cmp rsi, r14
jne 0x14005a940
mov r14, qword [r15 + 0x38]
mov r8, qword [r14 - 0x10]
lea rdx, [r14 - 0x10]
lea rcx, [r14 - 0x10]
mov r8, qword [r8 + 8]
call fcn.14000a060
mov rcx, qword [r14 - 0x10]
mov edx, 0x60
call fcn.1400d4a4c
lea rcx, [r14 - 0x98]
call fcn.140018700
add qword [r15 + 0x38], 0xffffffffffffff68
mov rax, qword [r15 + 0x38]
inc r12d
mov byte [r15 + 0x28], 1
jmp 0x14005a9d5
mov rax, qword [r15 + 0x38]
add rbx, 0x98
add r13, 0x98
cmp rbx, rax
jne 0x14005a914
mov r13d, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.14005aa50
lea rcx, [rsp + 0x28]
add r12d, r13d
call fcn.140059980
lea rcx, [rbp - 0x60]
call fcn.14002c3c0
mov r15, qword [rsp + 0x3c8]
mov rdi, qword [rsp + 0x3c0]
mov rsi, qword [rsp + 0x3b8]
lea rcx, [rbp + 0x10]
call fcn.14003d660
lea rcx, [rbp - 0x30]
call fcn.14002c3c0
mov eax, r12d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x380
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret