Function at 0x14021ef50
Capabilities:
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov r13, rcx
xor esi, esi
call fcn.1401521c0
mov rcx, qword [r13 + 0x30]
mov qword [r13 + 0x30], rsi
lea edi, [rsi - 1]
test rcx, rcx
je 0x14021ef97
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14021ef97
mov rax, qword [rcx]
lea edx, [rsi + 1]
call qword [rax]
mov rcx, qword [r13 + 0x38]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x14021efbc
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x14021efbc
call fcn.1400c9d7c
lea rax, [0x140592ed8]
mov qword [r13 + 0x38], rax
lea rcx, [r13 - 0xe8]
mov edx, dword [rcx + 0x44]
mov eax, dword [rcx + 0x40]
mov qword [rbp - 0x39], rsi
mov dword [rbp - 0x31], eax
mov dword [rbp - 0x2d], edx
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 7], xmm0
mov r8b, 1
lea rdx, [rbp + 7]
call fcn.140237640
lea rdx, [r13 + 0x28]
lea rcx, [rbp - 0x69]
call fcn.1401421d0
nop
mov rax, qword [rbp - 0x49]
cmp byte [rax], 0
jne 0x14021f39b
mov rax, qword [r13 + 0x28]
cmp byte [rax], 0
je 0x14021f39b
lea rdx, [r13 + 0x28]
lea rcx, [rbp - 1]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
jne 0x14021f39b
mov rax, qword [rbp - 0x69]
mov rdx, qword [rax + 0xa8]
lea rax, [method.juce::FileInputStream.virtual_168]
cmp rdx, rax
jne 0x14021f057
mov rsi, qword [rbp - 0x51]
jmp 0x14021f060
lea rcx, [rbp - 0x69]
call rdx
mov rsi, rax
call fcn.140025e70
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x14021f39b
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
lea rdx, [rbp - 0x69]
call r8
movzx r14d, al
mov rcx, qword [rbp - 0x69]
mov r8, qword [rcx + 0xb0]
lea rax, [fcn.140142090]
mov rdx, rsi
lea rcx, [rbp - 0x69]
cmp r8, rax
jne 0x14021f0b7
call fcn.140142090
jmp 0x14021f0ba
call r8
test r14b, r14b
jne 0x14021f0d0
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14021f080
jmp 0x14021f39b
mov rsi, qword [rbx]
test rsi, rsi
je 0x14021f39b
mov rax, qword [rsi]
lea r8, [rbp - 0x69]
lea rdx, [rbp + 0x77]
mov rcx, rsi
call qword [rax + 0x20]
mov rdx, qword [r13 + 0x30]
mov rcx, qword [rax]
mov qword [r13 + 0x30], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14021f11a
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14021f11a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [r13 + 0x30]
test rax, rax
je 0x14021f39b
mov r14d, dword [rax + 0x14]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x67], eax
mov edx, 0x5c
lea rcx, [r13 + 0x28]
call fcn.140134dd0
mov r8d, eax
mov rdx, qword [r13 + 0x28]
test eax, eax
jns 0x14021f163
mov qword [rbp + 0x6f], rdx
add rdx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rdx, rax
je 0x14021f1a0
lock inc dword [rdx]
jmp 0x14021f1a0
movzx ecx, byte [rdx]
test cl, cl
je 0x14021f195
inc rdx
test cl, cl
jns 0x14021f184
mov al, 0x40
test al, cl
je 0x14021f184
cmp al, 8
jbe 0x14021f184
inc rdx
shr al, 1
test al, cl
jne 0x14021f177
sub r8d, 1
jns 0x14021f163
lea rcx, [rbp + 0x6f]
call fcn.140018f60
jmp 0x14021f1a0
lea rax, [0x140592ed8]
mov qword [rbp + 0x6f], rax
lea rdx, [rbp + 0x6f]
lea rcx, [r13 + 0x38]
call fcn.1401353e0
mov rbx, rax
lea r8, [0x1404fe3e5]
lea rdx, [0x1404fe3e4]
mov rcx, rax
call fcn.140135520
mov rdx, qword [rsi]
mov r8, qword [rdx + 8]
lea rdx, [rbp - 0x29]
mov rcx, rsi
call r8
nop
mov rdx, rax
mov rcx, rbx
call fcn.1401353e0
mov rbx, rax
lea r8, [0x1404fe325]
lea rdx, [0x1404fe324]
mov rcx, rax
call fcn.140135520
mov edx, r14d
mov rcx, rbx
call fcn.140134fe0
mov rbx, rax
lea r8, [0x1404fe323]
lea rdx, [0x1404fe320]
mov rcx, rax
call fcn.140135520
mov esi, dword [rbp + 0x67]
mov edx, esi
mov rcx, rbx
call fcn.140134fe0
mov rbx, rax
lea r8, [0x1404fe348]
lea rdx, str._pixels_n
mov rcx, rax
call fcn.140135520
lea rcx, [r13 + 0x28]
call fcn.1401196b0
mov rdx, rax
lea rcx, [rbp + 0x7f]
call fcn.1401444c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1401353e0
nop
mov rcx, qword [rbp + 0x7f]
add rcx, 0xfffffffffffffff0
lea rbx, [0x140592ec8]
cmp rcx, rbx
je 0x14021f28f
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14021f28f
call fcn.1400c9d7c
nop
mov rcx, qword [rbp - 0x29]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x14021f2af
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14021f2af
call fcn.1400c9d7c
nop
mov rcx, qword [rbp + 0x6f]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x14021f2ce
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14021f2ce
call fcn.1400c9d7c
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [r13 - 0xa8]
mulss xmm0, dword [0x140523544]
cvtps2pd xmm0, xmm0
movsd xmm4, qword [0x140523850]
addsd xmm0, xmm4
movsd qword [rbp - 0x21], xmm0
mov eax, dword [r13 - 0xa4]
sub eax, 0x34
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, r14d
xorps xmm3, xmm3
cvtsi2sd xmm3, dword [rbp - 0x21]
divsd xmm3, xmm1
movsd xmm5, qword [0x140523630]
comisd xmm5, xmm3
jbe 0x14021f33a
minsd xmm0, xmm3
jmp 0x14021f33e
minsd xmm0, xmm5
mulsd xmm1, xmm0
addsd xmm1, xmm4
movsd qword [rbp - 0x11], xmm1
mulsd xmm2, xmm0
addsd xmm2, xmm4
movsd qword [rbp - 0x19], xmm2
mov r9d, dword [rbp - 0x19]
mov r8d, dword [rbp - 0x11]
lea rdx, [rbp - 9]
lea rcx, [r13 + 0x30]
call fcn.1401a0390
mov rdx, qword [r13 + 0x30]
mov rcx, qword [rax]
mov qword [r13 + 0x30], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14021f39b
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14021f39b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rax, vtable.juce::FileInputStream.0
mov qword [rbp - 0x69], rax
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
add rcx, 0xfffffffffffffff0
lea rsi, [0x140592ec8]
cmp rcx, rsi
je 0x14021f3d6
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14021f3d6
call fcn.1400c9d7c
mov rcx, qword [rbp - 0x61]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x14021f3f3
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x14021f3f3
call fcn.1400c9d7c
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret