Function at 0x140009470
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
call fcn.140002410
mov rcx, qword [0x1400919a8]
test rcx, rcx
je 0x1400096f5
lea rdx, [0x140048314]
call fcn.14000d250
test rax, rax
je 0x1400096fc
mov rsi, rax
mov qword [0x140091970], rax
mov rcx, rax
call fcn.1400023d0
cmp rax, 0x18
jbe 0x140009714
lea rcx, [0x140091a00]
mov edx, 1
mov r8d, 0x18
mov r9, rsi
call fcn.1400224b8
cmp rax, 0x18
jne 0x140009728
cmp byte [0x1400919b6], 0
je 0x140009535
mov rax, qword [0x140091ad8]
test rax, rax
je 0x140009535
movdqu xmm0, xmmword [rax]
pxor xmm1, xmm1
movdqa xmm2, xmm0
punpckhbw xmm2, xmm1
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpcklbw xmm0, xmm1
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
movdqu xmmword [rax], xmm0
mov ecx, dword [rax + 0x10]
bswap ecx
mov dword [rax + 0x10], ecx
mov ecx, dword [rax + 0x14]
bswap ecx
mov dword [rax + 0x14], ecx
mov r10d, dword [0x140091a08]
mov eax, r10d
and eax, 0x7f000000
cmp eax, 0x6000000
jne 0x140009740
test r10b, 0xe0
jne 0x140009747
test r10d, 0xc000
je 0x14000974e
mov r11d, dword [0x140091a0c]
test r11d, r11d
jne 0x140009595
mov ecx, 0x65
xor edx, edx
call fcn.140002060
mov dword [0x140091a0c], 1
mov r11d, 1
mov r10d, dword [0x140091a08]
mov dword [0x140091a40], r11d
mov r8d, r10d
shr r8d, 0xc
mov r9d, r8d
and r9b, 0xf
mov eax, r10d
shr al, 3
and al, 1
mov byte [0x140091a1d], al
mov ecx, r10d
shr cl, 4
and cl, 1
mov byte [0x140091a1e], cl
mov edx, r10d
and dl, 1
mov byte [0x140091a1f], dl
mov ecx, r10d
shr ecx, 8
and cl, 0xf
inc cl
mov byte [0x140091a26], cl
mov esi, r10d
shr esi, 0x10
movzx esi, sil
test esi, esi
mov edi, 0x100
cmovne edi, esi
mov word [0x140091a24], di
shr r10d, 0x1f
mov byte [0x140091a1c], r10b
mov r10d, 1
shl r10, cl
mov esi, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, r10
mov ecx, r11d
cvtsi2sd xmm1, rcx
and r8d, 0xf
lea ecx, [r8 + 5]
shl rsi, cl
divsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
divsd xmm0, xmm1
movsd qword [0x140091a38], xmm0
mov byte [0x140091a28], r9b
lea ecx, [r8 + 4]
mov byte [0x140091a27], cl
mov cl, 0x1c
sub cl, r8b
mov r10d, 0xf
shl r10d, cl
not r10d
and r10d, 0xfffffffe
mov dword [0x140091a2c], r10d
mov byte [0x140091a29], cl
cmp r9b, 0xc
jae 0x14000975d
movsx ecx, byte [0x1400919c8]
cmp r8d, ecx
jne 0x14000976f
test dl, dl
je 0x1400096ba
test al, al
jne 0x1400096ba
mov ecx, 0x6c
xor edx, edx
call fcn.140002060
movzx eax, byte [0x140091a1d]
movzx edx, byte [0x140091a1f]
test al, al
je 0x1400096c7
mov eax, 2
test dl, dl
jne 0x1400096e8
mov ecx, dword [0x140091a14]
mov eax, 1
cmp ecx, 0xffff0000
jb 0x1400096e8
xor eax, eax
cmp ecx, 0xfffffff4
cmove eax, ecx
cmp ecx, 0xfffffff0
cmove eax, ecx
mov dword [0x140091a20], eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x23
jmp 0x140009753
mov rdx, qword [0x1400919a8]
mov ecx, 0x22
mov r8, 0xfffffffffffffffe
call fcn.140001c40
mov rdx, qword [0x1400919a8]
mov ecx, 0x25
mov r8, rax
call fcn.140001c40
mov rdx, qword [0x1400919a8]
mov ecx, 0x24
mov r8, 0xfffffffffffffffe
call fcn.140001c40
mov ecx, 0x27
jmp 0x140009753
mov ecx, 0x28
jmp 0x140009753
mov ecx, 0x29
xor edx, edx
xor r8d, r8d
call fcn.140001c40
mov r8d, 0xb
mov ecx, 0x2a
xor edx, edx
call fcn.140001c40
movsxd r8, ecx
mov ecx, 0x2b
xor edx, edx
call fcn.140001c40
int3