Function at 0x1005ad90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ec9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [edx + 0x1c]
lea eax, [edx + 0x30]
sub ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x10]
sub esi, dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x28]
sub eax, dword [edx + 0x24]
mov dword [ebp - 0x28], edi
mov edi, dword [edx + 4]
sub edi, dword [edx]
sar eax, 2
sar ecx, 2
add eax, ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x2c]
sar edi, 2
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
sar esi, 2
add eax, esi
mov esi, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
sub edx, dword [edi]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea eax, [edx + edx*4]
add eax, eax
lea eax, [eax + ecx*2]
add eax, 0x409
lea ecx, [ebp - 0x50]
push eax
push esi
call fcn.1018aa00
mov edi, dword [ebp - 0x24]
mov dword [ebp - 4], 0
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x1005aeac
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
jne 0x1005aeac
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x1c]
jne 0x1005aeac
mov eax, dword [edi + 0x24]
cmp eax, dword [edi + 0x28]
jne 0x1005aeac
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
sub eax, ecx
cmp eax, 0x15
jne 0x1005aeac
mov edx, 0x101f4dcc
mov dword [ebp - 0x20], 0x11
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005aeac
add ecx, 4
add edx, 4
sub dword [ebp - 0x20], 4
jae 0x1005ae70
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005aeac
push 0
push 1
push 1
mov ecx, esi
call fcn.1018aea0
push dword [ebp - 0x34]
lea eax, [ebp - 0x50]
push 8
push eax
push esi
call fcn.100de750
add esp, 0x10
jmp 0x1005afd1
push 0
push 0
push 1
mov ecx, esi
call fcn.1018aea0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov ecx, eax
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x3c], eax
cmp ecx, edx
mov dword [ebp - 0x20], eax
mov ecx, esi
push 0
je 0x1005af62
mov eax, dword [eax]
lea eax, [eax + eax*2]
lea edi, [edi + eax*4]
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
push eax
push 4
call fcn.1018aea0
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x1005af4c
mov edi, dword [ebp - 0x28]
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, eax
movups xmm0, xmmword [0x101fa928]
not ecx
add eax, eax
shr ecx, 0x1f
dec ecx
xor ecx, eax
push edi
push ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
lea eax, [ebp - 0x38]
push eax
call fcn.1018f970
add esp, 0x1c
cmp dword [eax], 0
jne 0x1005b000
add esi, 4
cmp esi, dword [ebp - 0x30]
jne 0x1005af10
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov esi, dword [ebp - 0x28]
add eax, 4
mov edi, dword [ebp - 0x24]
cmp eax, ecx
jmp 0x1005aedb
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
sar eax, 2
push eax
push 4
call fcn.1018aea0
mov eax, dword [ebp - 0x24]
mov edi, dword [edi + 0x24]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
cmp edi, ecx
je 0x1005afb3
mov eax, dword [edi]
movups xmm0, xmmword [0x101fa938]
dec eax
push esi
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
lea eax, [ebp - 0x38]
push eax
call fcn.1018f970
add esp, 0x1c
cmp dword [eax], 0
jne 0x1005aff4
add edi, 4
cmp edi, dword [ebp - 0x30]
jne 0x1005af83
mov eax, dword [ebp - 0x24]
push esi
push dword [eax + 0x3c]
push dword [ebp - 0x2c]
call fcn.1005b030
push dword [ebp - 0x34]
lea eax, [ebp - 0x50]
push 8
push eax
push esi
call fcn.100de750
add esp, 0x1c
lea ecx, [ebp - 0x50]
call fcn.1018aa60
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
push str.U32Coder::Write_kQFThresholdDist__i___1__writer_
push 0x85
jmp 0x1005b00a
push str.U32Coder::Write_kDCThresholdDist__PackSigned_i___writer_
push 0x80
push str.C:Projectslibjxllibjxlenc_context_map.cc
push str._s:_d:_JXL_CHECK:__s_n
call fcn.100def30
add esp, 0x10
call fcn.100def20
int3