Function at 0x10170550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f1010
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
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 edi, ecx
mov dword [ebp - 0x264], edi
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [edx + 0xb90]
mov dword [ebp - 0x248], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x258], esi
mov eax, dword [ecx + 0x28]
movzx ecx, byte [ecx + 0x34]
mov dword [ebp - 0x26c], edx
movzx eax, byte [eax + 0x101f4d8c]
sub ecx, eax
mov dword [edi + 0x19b8], ecx
mov ecx, dword [edx + 0xb90]
mov eax, dword [ecx + 0x28]
movzx ecx, byte [ecx + 0x35]
movzx eax, byte [eax + 0x101f4d90]
sub ecx, eax
mov dword [edi + 0x19c4], ecx
mov ecx, dword [edx + 0xb90]
mov eax, dword [ecx + 0x2c]
movzx ecx, byte [ecx + 0x34]
movzx eax, byte [eax + 0x101f4d8c]
sub ecx, eax
mov dword [edi + 0x19bc], ecx
mov ecx, dword [edx + 0xb90]
mov eax, dword [ecx + 0x2c]
movzx ecx, byte [ecx + 0x35]
movzx eax, byte [eax + 0x101f4d90]
sub ecx, eax
mov dword [edi + 0x19c8], ecx
mov ecx, dword [edx + 0xb90]
mov eax, dword [ecx + 0x30]
movzx ecx, byte [ecx + 0x34]
movzx eax, byte [eax + 0x101f4d8c]
sub ecx, eax
mov dword [edi + 0x19c0], ecx
mov ecx, dword [edx + 0xb90]
mov eax, dword [ecx + 0x30]
movzx ecx, byte [ecx + 0x35]
movzx eax, byte [eax + 0x101f4d90]
sub ecx, eax
mov dword [edi + 0x19cc], ecx
mov eax, dword [edx + 0xb90]
mov ecx, dword [ebp - 0x248]
mov eax, dword [eax + 0x534]
imul ecx, eax
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0xb90]
mov eax, dword [eax + 0x538]
lea eax, [eax + ecx*4]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x248]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0xba4]
mov dword [edi + 0x1850], esi
mov esi, dword [ebp - 0x248]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x1854], ecx
mov eax, dword [edx + 0xb90]
lea eax, [eax + esi*4]
add eax, 0xc0
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x1990], eax
mov eax, dword [ebp + 0x1c]
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x19a8], xmm0
mov eax, dword [edx + 0xb90]
add eax, 0x5a8
mov dword [edi + 0x1994], eax
mov eax, dword [edx + 0xb90]
add eax, 0x424
mov dword [edi + 0x1998], eax
mov eax, dword [edx + 0xb90]
add eax, 0x544
xor edx, edx
mov dword [edi + 0x199c], eax
mov dword [ebp - 0x24c], edx
test ecx, ecx
je 0x10170b32
imul eax, esi, 0x54
lea esi, [edi + 0x18]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x25c], eax
lea eax, [edi + 0x1858]
mov dword [ebp - 0x260], eax
nop dword [eax]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x1017095c
mov eax, dword [ebp - 0x258]
mov edi, dword [eax + edx*4]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x250], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x10170778
mov ecx, edi
call fcn.10012570
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x280], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x254], ecx
jmp 0x101708ea
movzx eax, byte [ecx]
cdq
mov dword [ebp - 0x268], eax
movzx eax, byte [ecx + 1]
mov dword [ebp - 0x278], edx
cdq
mov dword [ebp - 0x2ac], eax
movzx eax, byte [ecx + 2]
mov dword [ebp - 0x2b0], edx
cdq
mov dword [ebp - 0x2a4], eax
movzx eax, byte [ecx + 3]
mov edi, dword [ebp - 0x250]
mov dword [ebp - 0x2a8], edx
cdq
mov dword [ebp - 0x29c], eax
movzx eax, byte [ecx + 4]
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x2a0], edx
cdq
mov dword [ebp - 0x294], eax
movzx eax, byte [ecx + 5]
mov dword [ebp - 0x298], edx
cdq
mov dword [ebp - 0x28c], eax
movzx eax, byte [ecx + 6]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x290], edx
cdq
mov dword [ebp - 0x248], eax
movzx eax, byte [edi + 7]
mov dword [ebp - 0x288], edx
cdq
mov dword [ebp - 0x250], eax
mov eax, dword [esi + ecx*4]
mov ecx, dword [eax + 8]
mov eax, 0x3f
sub eax, ecx
mov dword [ebp - 0x254], ecx
shr eax, 3
add eax, edi
mov edi, dword [ebp - 0x24c]
mov ecx, dword [esi + edi*4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x250]
shld edx, eax, 8
mov ecx, dword [ebp - 0x254]
or edx, dword [ebp - 0x288]
shl eax, 8
or eax, dword [ebp - 0x248]
shld edx, eax, 8
or edx, dword [ebp - 0x290]
shl eax, 8
or eax, dword [ebp - 0x28c]
shld edx, eax, 8
or edx, dword [ebp - 0x298]
shl eax, 8
or eax, dword [ebp - 0x294]
shld edx, eax, 8
or edx, dword [ebp - 0x2a0]
shl eax, 8
or eax, dword [ebp - 0x29c]
shld edx, eax, 8
or edx, dword [ebp - 0x2a8]
shl eax, 8
or eax, dword [ebp - 0x2a4]
shld edx, eax, 8
or edx, dword [ebp - 0x2b0]
shl eax, 8
or eax, dword [ebp - 0x2ac]
shld edx, eax, 8
or edx, dword [ebp - 0x278]
shl eax, 8
or eax, dword [ebp - 0x268]
call fcn.101e8c40
mov ecx, edx
mov edx, edi
mov edi, dword [esi + edx*4]
or eax, dword [edi]
or ecx, dword [edi + 4]
mov dword [ebp - 0x250], ecx
or dword [ebp - 0x254], 0x38
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x280], ecx
xor ecx, ecx
mov dword [ebp - 0x284], eax
movq xmm1, qword [ebp - 0x284]
xor edx, edx
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp - 0x250]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x248], ecx
mov ecx, dword [ebp + 0x18]
and eax, edx
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x254]
movd xmm0, ecx
sub eax, ecx
mov ecx, dword [ebp - 0x248]
psrlq xmm1, xmm0
mov dword [edi + 8], eax
movq qword [edi], xmm1
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x26c]
mov eax, dword [eax + 0xb90]
cmp ecx, dword [eax + 0xb8c]
jae 0x10170b04
mov eax, dword [edi + 0x1994]
push 0
mov eax, dword [eax + 0x3c]
imul eax, ecx
mov ecx, dword [ebp - 0x260]
imul eax, eax, 0x1ef
mov dword [ecx], eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x258]
mov eax, dword [eax + 0xb98]
push dword [ecx + edx*4]
add eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x244]
push eax
call fcn.100dff50
mov edi, eax
lea edx, [esi + 0x1c]
mov dword [ebp - 0x268], edi
mov eax, dword [edi]
lea ecx, [edi + 0x20]
mov dword [esi - 4], eax
mov eax, dword [edi + 4]
mov dword [esi], eax
mov al, byte [edi + 8]
mov byte [esi + 4], al
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
cmp edx, ecx
je 0x10170a17
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [edx]
mov dword [ebp - 4], 0
mov dword [edx], eax
test ecx, ecx
je 0x10170a17
push ecx
call fcn.100de900
add esp, 4
mov eax, dword [edi + 0x24]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x20], eax
mov edx, 0x78
mov eax, dword [edi + 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x38], eax
lea eax, [esi - 4]
movups xmm0, xmmword [edi + 0x40]
mov dword [ebp - 0x278], edi
sub edi, eax
movups xmmword [esi + 0x3c], xmm0
nop dword [eax]
mov eax, dword [ecx + edi]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x10170a60
mov edi, dword [ebp - 0x268]
mov eax, dword [edi + 0x230]
mov dword [esi + 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 1
test eax, eax
je 0x10170a9a
push eax
call fcn.100de900
add esp, 4
mov edx, dword [ebp - 0x24c]
add esi, 0x234
add dword [ebp - 0x25c], 0x54
inc edx
add dword [ebp - 0x260], 4
mov edi, dword [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x270], esi
cmp edx, dword [ebp + 0x10]
jb 0x10170730
mov ecx, dword [ebp + 0x20]
mov eax, edi
add ecx, 0x20
mov esi, dword [ecx]
shr esi, 2
xor edx, edx
mov dword [eax + 0x1884], esi
nop dword [eax]
mov eax, dword [ecx]
shr eax, 2
cmp esi, eax
jne 0x10170b6a
inc edx
add ecx, 0x48
cmp edx, dword [ebp + 0x10]
jb 0x10170af0
jmp 0x10170b41
push 0x24c
push str.C:Projectslibjxllib_jxl_dec_group.cc
push str._s:_d:_JXL_FAILURE:_Invalid_histogram_selector_n
lea eax, [ebp - 0x278]
push 1
push eax
call fcn.1000f820
mov eax, dword [ebp - 0x274]
add esp, 0x14
mov dword [eax], 1
jmp 0x10170b4d
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + 0x20]
shr eax, 2
mov dword [edi + 0x1884], eax
mov eax, dword [ebp - 0x274]
mov dword [eax], 0
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 0x24
push str.nzeros_stride__static_cast_size_t__group_dec_cache__num_nzeroes_i_.PixelsPerRow___
push 0x257
push str.C:Projectslibjxllib_jxl_dec_group.cc
push str._s:_d:_JXL_ASSERT:__s_n
call fcn.100def30
add esp, 0x10
call fcn.100def20
int3