Function at 0x1008db30
Capabilities:
Access peb ldr_data
Check os version
Encode data using xor
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ee2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x102289dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x250], esi
mov edi, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
div dword [edi + 0x228]
mov ecx, dword [edi + 0x21c]
mov dword [ebp - 0x23c], ecx
mov ecx, dword [edi + 0x218]
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x208], ecx
mov ecx, dword [edi + 0x238]
mov edi, ecx
imul edi, eax
mov dword [ebp - 0x210], edi
mov edi, ecx
imul edi, edx
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], edi
lea eax, [edi + ecx]
cmp eax, dword [ebp - 0x208]
ja 0x1008dbdb
mov dword [ebp - 0x244], ecx
jmp 0x1008dbf9
mov eax, dword [ebp - 0x208]
cmp eax, edi
jbe 0x1008dbef
sub eax, edi
mov dword [ebp - 0x244], eax
jmp 0x1008dbf9
mov dword [ebp - 0x244], 0
mov edi, dword [ebp - 0x23c]
lea eax, [edx + ecx]
cmp eax, edi
ja 0x1008dc0e
mov dword [ebp - 0x240], ecx
jmp 0x1008dc26
cmp edi, edx
jbe 0x1008dc1c
sub edi, edx
mov dword [ebp - 0x240], edi
jmp 0x1008dc26
mov dword [ebp - 0x240], 0
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x230]
mov cl, byte [ebp + 0x10]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov byte [eax + edx], cl
mov eax, dword [esi + 0xc]
mov esi, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0
movzx ecx, byte [eax + edx]
mov eax, dword [ebp - 0x250]
shl esi, cl
add eax, 0xac
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x264], esi
call fcn.100932e0
mov edx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x210], eax
shl eax, 6
mov ecx, dword [edx + 0x24]
mov dword [ebp - 0x224], eax
mov dword [ecx + eax], 0xffffff
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x224]
mov dword [eax + ecx + 0x24], 6
mov eax, dword [edx + 0x24]
mov dword [eax + ecx + 0x30], 1
mov eax, dword [edx + 0x118]
mov dword [ebp - 0x208], eax
cmp eax, 3
jl 0x1008dce3
mov eax, dword [edx + 0x24]
mov dword [eax + ecx + 0x38], 5
mov eax, dword [edx + 0x118]
mov dword [ebp - 0x208], eax
cmp eax, 3
jge 0x1008dd20
cmp byte [ebp + 0x10], 0
jne 0x1008dd20
mov ecx, dword [edx + 0x24]
xor eax, eax
add ecx, dword [ebp - 0x224]
cmp dword [ebp - 0x208], 2
setl al
add eax, 0xe
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x224]
mov dword [eax + ecx + 0x30], 3
mov eax, dword [edx + 0x24]
mov dword [eax + ecx + 0x38], 1
cmp dword [edx + 0x11c], 1
jb 0x1008dd34
mov eax, dword [edx + 0x24]
mov dword [eax + ecx + 0x38], 6
push 3
push 8
push dword [ebp - 0x240]
lea ecx, [ebp - 0x64]
push dword [ebp - 0x244]
call fcn.101b3cf0
imul edx, dword [ebp - 0x210], 0x2c
mov ecx, dword [ebp - 0x250]
push eax
mov ecx, dword [ecx + 0x18]
add ecx, edx
mov dword [ebp - 0x25c], edx
call fcn.101b3ea0
lea ecx, [ebp - 0x58]
call fcn.1008bd80
lea ecx, [ebp - 0x64]
call fcn.1008bc70
mov cl, byte [ebp + 0x10]
test cl, cl
je 0x1008e826
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x224]
cmp dword [eax + 0x38], 6
jne 0x1008e0c2
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x218]
mov dword [ebp - 0x21c], 2
mov dword [ebp - 0x24], eax
mov ecx, eax
cmp eax, edx
je 0x1008dde9
mov edx, dword [edi + 0x2c]
nop word [eax + eax]
mov eax, dword [ecx]
cmp dword [edi + eax*4 + 0x28], edx
jne 0x1008ed91
add ecx, 4
lea eax, [ebp - 0x218]
cmp ecx, eax
jne 0x1008ddd0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov ecx, eax
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x230], eax
cmp ecx, edx
je 0x1008ece3
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [eax]
mov eax, dword [edi + 0x420]
movd xmm0, dword [edi + 0x404]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x238], ecx
movss xmm2, dword [eax + 0x1c]
mulss xmm2, dword [edi + 0x410]
cvtdq2ps xmm0, xmm0
divss xmm2, xmm1
mulss xmm0, dword [edi + 0x40c]
movss dword [ebp - 0x228], xmm2
mulss xmm0, dword [eax + ecx*4 + 0x24]
mulss xmm0, xmm1
movss xmm1, dword [edi + ecx*4 + 0x484]
xor ecx, ecx
movss dword [ebp - 0x234], xmm1
movss dword [ebp - 0x218], xmm0
mov dword [ebp - 0x20c], ecx
cmp dword [ebp - 0x240], ecx
jbe 0x1008e0a3
mov esi, dword [ebp - 0x238]
mov eax, esi
xor eax, 1
mov dword [ebp - 0x208], eax
nop dword [eax]
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x25c]
cmp esi, 2
mov edi, dword [eax]
mov eax, dword [ebp - 0x208]
cmovae eax, esi
mov dword [ebp - 0x258], edi
mov edx, dword [ebp - 0x258]
lea eax, [eax + eax*4]
mov edi, dword [edi + eax*8 + 0x10]
imul edi, ecx
add edi, dword [edx + eax*8 + 0x14]
cmp esi, 2
mov eax, dword [ebp - 0x208]
cmovae eax, esi
mov dword [ebp - 0x224], edi
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8 + 0x10]
lea edx, [esi + esi*2]
shr eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x248]
add eax, ecx
mov ecx, dword [ebp - 0x260]
imul eax, dword [ecx + 0x10]
mov ecx, dword [ecx + edx*8 + 0x14]
mov edx, dword [ebp - 0x244]
add ecx, eax
mov eax, dword [ebp - 0x24c]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x214], ecx
cmp esi, 1
jne 0x1008dfa3
xor esi, esi
test edx, edx
je 0x1008e078
mov eax, edi
sub ecx, eax
mov dword [ebp - 0x214], ecx
nop
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + edi]
movss dword [esp], xmm0
push edx
push dword [ebp - 0x20c]
push esi
push 1
push dword [ebp - 0x14]
push eax
call fcn.10096380
movss xmm0, dword [ebp - 0x218]
lea edi, [edi + 4]
mov ecx, dword [ebp - 0x214]
inc esi
mov dword [edi - 4], eax
add esp, 0x20
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x224]
cmp esi, edx
jb 0x1008df50
jmp 0x1008e060
mov eax, dword [ebp - 0x258]
xor esi, esi
mov ecx, dword [ebp - 0x20c]
mov edi, dword [eax + 0x10]
imul edi, ecx
add edi, dword [eax + 0x14]
test edx, edx
je 0x1008e07e
mov eax, dword [ebp - 0x224]
sub dword [ebp - 0x214], edi
mulss xmm1, xmm2
mov dword [ebp - 0x22c], eax
sub dword [ebp - 0x22c], edi
movss dword [ebp - 0x210], xmm1
nop word [eax + eax]
mov ecx, dword [ebp - 0x214]
sub esp, 8
movss dword [esp + 4], xmm0
movd xmm0, dword [edi]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss xmm1, dword [ecx + edi]
mov ecx, dword [ebp - 0x20c]
subss xmm1, xmm0
movss dword [esp], xmm1
push edx
push ecx
push esi
push dword [ebp - 0x238]
push dword [ebp - 0x14]
push eax
call fcn.10096380
mov ecx, dword [ebp - 0x22c]
inc esi
movss xmm0, dword [ebp - 0x218]
add esp, 0x20
movss xmm1, dword [ebp - 0x210]
mov dword [ecx + edi], eax
add edi, 4
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x224]
cmp esi, edx
jb 0x1008dff0
movss xmm1, dword [ebp - 0x234]
movss xmm2, dword [ebp - 0x228]
movss xmm0, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x238]
inc ecx
mov dword [ebp - 0x20c], ecx
cmp ecx, dword [ebp - 0x240]
jb 0x1008deb0
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x230], eax
cmp eax, ecx
jne 0x1008de20
jmp 0x1008ece3
test cl, cl
je 0x1008e826
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x218]
mov dword [ebp - 0x21c], 2
mov eax, ecx
cmp eax, edx
je 0x1008e10c
mov edx, dword [edi + 0x2c]
mov eax, dword [ecx]
cmp dword [edi + eax*4 + 0x28], edx
jne 0x1008e4ee
add ecx, 4
lea eax, [ebp - 0x218]
cmp ecx, eax
jne 0x1008e0f3
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
lea edx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov ecx, eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x210], eax
cmp ecx, edx
je 0x1008ece3
nop word [eax + eax]
movd xmm0, dword [edi + 0x404]
mov ecx, dword [eax]
mov eax, dword [edi + 0x420]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x22c], ecx
movd xmm1, esi
mulss xmm0, dword [edi + 0x40c]
cvtdq2ps xmm1, xmm1
mulss xmm0, dword [eax + ecx*4 + 0x24]
mulss xmm0, xmm1
movss dword [ebp - 0x230], xmm0
movss xmm0, dword [eax + 0x1c]
lea eax, [ebp - 0x6c]
mulss xmm0, dword [edi + 0x410]
push eax
mov dword [ebp - 0x6c], vtable.jxl::weighted::Header.0
mov dword [ebp - 0x54], 0
divss xmm0, xmm1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 0
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [edi + ecx*4 + 0x484]
movss dword [ebp - 0x26c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x4c], xmm0
call fcn.1018e1d0
add esp, 4
push dword [ebp - 0x240]
push dword [ebp - 0x244]
sub esp, 0x34
mov ecx, esp
mov dword [ecx], vtable.jxl::weighted::Header.0
mov al, byte [ebp - 0x68]
mov byte [ecx + 4], al
mov eax, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x20], eax
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ecx + 0x24], xmm0
lea ecx, [ebp - 0x204]
call fcn.1008b590
xor edx, edx
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x240], edx
jbe 0x1008e780
mov ecx, dword [ebp - 0x22c]
mov edi, ecx
xor edi, 1
mov dword [ebp - 0x23c], edi
lea eax, [ecx + ecx*2]
mov dword [ebp - 0x268], eax
nop dword [eax]
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x25c]
cmp ecx, 2
mov esi, dword [eax]
mov eax, edi
cmovae eax, ecx
mov dword [ebp - 0x228], esi
lea eax, [eax + eax*4]
mov edi, dword [esi + eax*8 + 0x10]
imul edi, edx
add edi, dword [esi + eax*8 + 0x14]
cmp ecx, 2
mov eax, dword [ebp - 0x23c]
cmovae eax, ecx
mov dword [ebp - 0x258], edi
mov ecx, dword [ebp - 0x260]
mov edi, dword [ebp - 0x268]
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*8 + 0x10]
shr eax, 2
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x248]
add eax, edx
imul eax, dword [ecx + 0x10]
mov ecx, dword [ecx + edi*8 + 0x14]
mov edi, dword [ebp - 0x258]
add ecx, eax
cmp dword [ebp - 0x22c], 1
mov eax, dword [ebp - 0x24c]
lea ecx, [ecx + eax*4]
jne 0x1008e4fd
xor eax, eax
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x244], eax
jbe 0x1008e755
mov esi, edx
mov dword [ebp - 0x20c], edi
and esi, 1
sub ecx, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x208], ecx
movss xmm0, dword [ebp - 0x230]
sub esp, 8
mov esi, dword [ebp - 0x20c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + esi]
lea ecx, [ebp - 0x204]
movss dword [esp], xmm0
push ecx
push dword [ebp - 0x244]
push edx
push eax
push 1
push dword [ebp - 0x234]
push edi
call fcn.10096470
mov ecx, esi
add esp, 0x24
mov dword [ecx], eax
mov ecx, dword [ebp - 0x244]
cdq
add ecx, 2
mov edi, eax
mov dword [ebp - 0x228], ecx
xor eax, eax
shld edx, edi, 3
shl edi, 3
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x238], edx
cmove eax, ecx
mov ecx, dword [ebp - 0x1ac]
add eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x1e4]
mov esi, dword [ebp - 0x214]
sub eax, edi
mov dword [ecx + esi*4], eax
mov ecx, dword [ebp - 0x204]
mov eax, dword [ebp - 0x200]
sub ecx, edi
sbb eax, edx
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
add ecx, 3
mov edx, esi
mov esi, dword [ebp - 0x228]
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1dc]
mov dword [eax + edx*4], ecx
xor eax, eax
cmp dword [ebp - 0x14], eax
cmove esi, eax
mov eax, dword [ebp - 0x1dc]
add esi, dword [ebp - 0x218]
add dword [eax + esi*4 + 4], ecx
mov ecx, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x1f8]
sub ecx, edi
sbb eax, dword [ebp - 0x238]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1d0]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x1d0]
add dword [eax + esi*4 + 4], ecx
mov ecx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x1f0]
sub ecx, edi
sbb eax, dword [ebp - 0x238]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1c4]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x1c4]
add dword [eax + esi*4 + 4], ecx
mov ecx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x1e8]
sub ecx, edi
mov edi, dword [ebp - 0x258]
sbb eax, dword [ebp - 0x238]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
add dword [ebp - 0x20c], 4
shrd ecx, eax, 3
sar eax, 3
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x1b8]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x1b8]
mov edx, dword [ebp - 0x224]
add dword [eax + esi*4 + 4], ecx
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x208]
inc eax
mov dword [ebp - 0x218], eax
cmp eax, dword [ebp - 0x244]
jb 0x1008e313
jmp 0x1008e74f
push str.enc_state__shared.frame_header.chroma_subsampling.Is444__
push 0x5ee
jmp 0x1008ed9b
mov esi, dword [esi + 0x10]
mov eax, dword [ebp - 0x228]
imul esi, edx
mov dword [ebp - 0x20c], 0
add esi, dword [eax + 0x14]
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x238], esi
jbe 0x1008e755
movss xmm1, dword [ebp - 0x26c]
mov eax, edx
mulss xmm1, dword [ebp - 0x20]
and eax, 1
mov dword [ebp - 0x228], eax
sub ecx, esi
mov eax, edi
mov dword [ebp - 0x208], ecx
sub eax, esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x244]
movss dword [ebp - 0x21c], xmm1
movss xmm0, dword [ebp - 0x230]
sub esp, 8
movss dword [esp + 4], xmm0
movd xmm0, dword [esi]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss xmm1, dword [ecx + esi]
lea ecx, [ebp - 0x204]
subss xmm1, xmm0
movss dword [esp], xmm1
push ecx
push eax
push edx
push dword [ebp - 0x20c]
push dword [ebp - 0x22c]
push dword [ebp - 0x234]
push edi
call fcn.10096470
mov ecx, dword [ebp - 0x218]
add esp, 0x24
mov dword [ecx + esi], eax
mov ecx, dword [ebp - 0x244]
cdq
add ecx, 2
mov edi, eax
mov esi, dword [ebp - 0x20c]
xor eax, eax
mov dword [ebp - 0x214], ecx
shld edx, edi, 3
shl edi, 3
cmp dword [ebp - 0x228], eax
mov dword [ebp - 0x14], edx
cmove eax, ecx
mov ecx, dword [ebp - 0x1ac]
add esi, eax
mov eax, dword [ebp - 0x1e4]
sub eax, edi
mov dword [ecx + esi*4], eax
mov ecx, dword [ebp - 0x204]
mov eax, dword [ebp - 0x200]
sub ecx, edi
sbb eax, edx
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1dc]
mov dword [eax + esi*4], ecx
xor eax, eax
cmp dword [ebp - 0x228], eax
cmove edx, eax
mov eax, dword [ebp - 0x1dc]
add edx, dword [ebp - 0x20c]
shl edx, 2
mov dword [ebp - 0x214], edx
add dword [edx + eax + 4], ecx
mov ecx, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x1f8]
sub ecx, edi
sbb eax, dword [ebp - 0x14]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1d0]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x1d0]
add dword [edx + eax + 4], ecx
mov ecx, dword [ebp - 0x1f4]
mov eax, dword [ebp - 0x1f0]
sub ecx, edi
sbb eax, dword [ebp - 0x14]
cdq
xor eax, edx
movss xmm1, dword [ebp - 0x21c]
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
mov eax, dword [ebp - 0x1c4]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x1c4]
add dword [edx + eax + 4], ecx
mov ecx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x1e8]
sub ecx, edi
mov edi, dword [ebp - 0x258]
sbb eax, dword [ebp - 0x14]
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x214]
add ecx, 3
adc eax, 0
shrd ecx, eax, 3
sar eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1b8]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x238]
add esi, 4
mov dword [ebp - 0x238], esi
add dword [edx + eax + 4], ecx
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x244]
inc ecx
mov edx, dword [ebp - 0x224]
cmp ecx, eax
mov dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x208]
jb 0x1008e561
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x22c]
inc edx
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x224], edx
cmp edx, dword [ebp - 0x240]
jb 0x1008e260
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1008e7e5
mov eax, dword [ebp - 0x1a4]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008e7bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008e820
push edx
push ecx
call fcn.101e8bf4
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
push fcn.10007640
push 4
push 0xc
lea eax, [ebp - 0x1dc]
push eax
call fcn.101e8aaf
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x28]
add eax, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x210], eax
cmp eax, ecx
jne 0x1008e140
jmp 0x1008ece3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x218]
mov dword [ebp - 0x21c], 2
mov eax, ecx
cmp eax, edx
je 0x1008e869
mov edx, dword [edi + 0x2c]
nop
mov eax, dword [ecx]
cmp dword [edi + eax*4 + 0x28], edx
jne 0x1008e9ed
add ecx, 4
lea eax, [ebp - 0x218]
cmp ecx, eax
jne 0x1008e850
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
lea edx, [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov ecx, eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x228], eax
cmp ecx, edx
je 0x1008ece3
mov edx, dword [ebp - 0x244]
nop word [eax + eax]
mov ecx, dword [ebp - 0x254]
mov edi, dword [eax]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov eax, dword [ecx + 0x420]
mov dword [ebp - 0x234], edi
movss xmm0, dword [eax + 0x1c]
mulss xmm0, dword [ecx + 0x410]
movd xmm2, dword [ecx + 0x404]
cvtdq2ps xmm2, xmm2
divss xmm0, xmm1
mulss xmm2, dword [ecx + 0x40c]
movss dword [ebp - 0x23c], xmm0
mulss xmm2, dword [eax + edi*4 + 0x24]
mulss xmm2, xmm1
movss xmm1, dword [ecx + edi*4 + 0x484]
xor ecx, ecx
movss dword [ebp - 0x230], xmm1
movss dword [ebp - 0x22c], xmm2
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x240], ecx
jbe 0x1008ecc9
lea eax, [edi + edi*2]
mov esi, ecx
mov dword [ebp - 0x21c], eax
nop dword [eax]
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x25c]
mov ecx, dword [eax]
mov eax, edi
xor eax, 1
mov dword [ebp - 0x210], ecx
cmp edi, 2
cmovae eax, edi
lea eax, [eax + eax*4]
mov edi, dword [ecx + eax*8 + 0x10]
imul edi, esi
add edi, dword [ecx + eax*8 + 0x14]
mov ecx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x248]
add eax, esi
mov esi, dword [ebp - 0x21c]
imul eax, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*8 + 0x14]
add ecx, eax
cmp dword [ebp - 0x234], 1
mov eax, dword [ebp - 0x24c]
lea eax, [ecx + eax*4]
jne 0x1008ebec
xor esi, esi
test edx, edx
je 0x1008eca4
sub eax, edi
mov dword [ebp - 0x208], eax
nop word [eax + eax]
mulss xmm2, dword [eax + edi]
push ecx
movss dword [esp], xmm2
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
add esp, 4
call fcn.101e9ad0
movss xmm2, dword [ebp - 0x22c]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc esi
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x208]
cmp esi, edx
jb 0x1008e9b0
jmp 0x1008ec8c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov ecx, eax
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x234], eax
cmp ecx, edx
je 0x1008ece3
nop dword [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0x210], ecx
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov edx, dword [edi + ecx*4 + 0x28]
movzx edi, byte [edi + 0x35]
movzx eax, byte [edx + 0x101f4d90]
sub edi, eax
mov eax, dword [ebp - 0x240]
mov ecx, edi
shr eax, cl
mov dword [ebp - 0x208], eax
movzx eax, byte [edx + 0x101f4d8c]
mov edx, dword [ebp - 0x254]
movzx edx, byte [edx + 0x34]
sub edx, eax
mov eax, dword [ebp - 0x244]
mov ecx, edx
shr eax, cl
mov ecx, edi
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x248]
shr eax, cl
mov ecx, edx
movd xmm0, dword [edi + 0x404]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24c]
shr eax, cl
mov ecx, dword [ebp - 0x210]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x26c], eax
mov eax, dword [edi + 0x420]
mulss xmm0, dword [edi + 0x40c]
mulss xmm0, dword [eax + ecx*4 + 0x24]
mov eax, dword [ebp - 0x250]
mulss xmm0, xmm1
mov edx, dword [eax + 0x18]
mov eax, ecx
add edx, dword [ebp - 0x25c]
xor eax, 1
cmp ecx, 2
movss dword [ebp - 0x268], xmm0
cmovae eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x23c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x21c], ecx
mov dword [ecx + 0x1c], eax
call fcn.10097b10
xor eax, eax
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x208], eax
jbe 0x1008ebcd
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + ecx*2]
mov dword [ebp - 0x228], edx
nop dword [eax]
mov ecx, dword [ebp - 0x21c]
mov edi, dword [ecx + 0x10]
imul edi, eax
add edi, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x260]
imul ecx, dword [eax + 0x10]
mov eax, dword [eax + edx*8 + 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x26c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x1008eba8
sub eax, edi
mov esi, ecx
mov dword [ebp - 0x210], eax
movss xmm0, dword [ebp - 0x268]
mulss xmm0, dword [eax + edi]
push ecx
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
add esp, 4
call fcn.101e9ad0
mov dword [edi], eax
lea edi, [edi + 4]
mov eax, dword [ebp - 0x210]
sub esi, 1
jne 0x1008eb71
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, dword [ebp - 0x208]
jb 0x1008eb30
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x234], eax
cmp eax, ecx
jne 0x1008ea20
jmp 0x1008ece3
mov esi, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x210], 0
mov esi, dword [esi + 0x10]
imul esi, dword [ebp - 0x218]
add esi, dword [ecx + 0x14]
test edx, edx
je 0x1008eca4
mulss xmm1, xmm0
sub eax, esi
mov dword [ebp - 0x208], eax
sub edi, esi
movss dword [ebp - 0x20], xmm1
nop word [eax + eax]
movd xmm0, dword [esi]
cvtdq2ps xmm0, xmm0
push ecx
mulss xmm0, xmm1
movss xmm1, dword [eax + esi]
subss xmm1, xmm0
mulss xmm1, xmm2
movss dword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
add esp, 4
call fcn.101e9ad0
movss xmm2, dword [ebp - 0x22c]
movss xmm1, dword [ebp - 0x20]
mov dword [edi + esi], eax
add esi, 4
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x244]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, edx
mov eax, dword [ebp - 0x208]
jb 0x1008ec30
movss xmm1, dword [ebp - 0x230]
movss xmm0, dword [ebp - 0x23c]
movss xmm2, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp - 0x234]
inc esi
mov dword [ebp - 0x218], esi
cmp esi, dword [ebp - 0x240]
jb 0x1008e930
mov esi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x228], eax
cmp eax, ecx
jne 0x1008e8a0
mov edx, dword [ebp - 0x254]
movsd xmm1, qword [0x101f4820]
lea eax, [edx + 0x5a8]
push eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx], vtable.jxl::YCbCrChromaSubsampling.0
movq xmm0, qword [edx + 0x28]
movq qword [ecx + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x30]
mov dword [ecx + 0xc], eax
movzx eax, byte [edx + 0x34]
mov byte [ecx + 0x10], al
movzx eax, byte [edx + 0x35]
cvtps2pd xmm0, xmm0
mov byte [ecx + 0x11], al
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 0x18]
lea eax, [edx + 0x484]
divsd xmm1, xmm0
add ecx, dword [ebp - 0x25c]
push eax
push ecx
lea eax, [edx + 0x3e0]
cvtpd2ps xmm0, xmm1
movss dword [esp], xmm0
push eax
push ecx
lea eax, [edx + 0x544]
push eax
lea eax, [edx + 0x55c]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100eb930
add esp, 0x34
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e8c02
mov esp, ebp
pop ebp
ret 0x14
push str.enc_state__shared.frame_header.chroma_subsampling.Is444__
push 0x5d1
push str.C:Projectslibjxllibjxlenc_modular.cc
push str._s:_d:_JXL_ASSERT:__s_n
call fcn.100def30
add esp, 0x10
call fcn.100def20
int3