Function at 0x10021960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [edx]
mov dword [esp + 4], ecx
mov dword [esp + 0x18], edx
cmp eax, 1
je 0x10021990
xor esi, esi
cmp eax, 2
mov edx, 0
jne 0x100219ba
mov eax, dword [esp + 0x18]
lea edx, [eax + 8]
jmp 0x100219af
mov edx, dword [esp + 4]
lea ecx, [esp + 0x28]
call fcn.100fcd90
xor esi, esi
cmp dword [esp + 0x28], 0
mov edx, 0
jne 0x100219ba
lea edx, [esp + 0x30]
mov ecx, dword [esp + 4]
call fcn.100fc3e0
mov esi, eax
mov dword [esp + 0x50], edx
mov ecx, dword fs:[0x2c]
mov eax, dword [0x1019914c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x3c]
cmp eax, 1
jne 0x10021e00
mov dword [esp + 0x4c], esi
mov ecx, dword fs:[0x2c]
mov eax, dword [0x1019914c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x40], 0
je 0x10021e0e
mov eax, dword [0x1019914c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0x44]
mov eax, dword [esp + 4]
mov dword [esp + 0x20], esi
cmp esi, dword [eax + 4]
jae 0x10021e60
mov eax, dword [eax]
mov edi, dword [eax + esi*4]
mov dword [esp + 0xc], esi
test edi, edi
jne 0x10021bab
movzx eax, byte [0x10199148]
xor ecx, ecx
mov edx, 0x140
xor edi, edi
call fcn.100ea7d0
test eax, eax
je 0x10021eb6
mov ebx, eax
xor edx, edx
mov esi, 1
mov dword [esp + 0x10], eax
jmp 0x10021a89
mov eax, 0x20
lea ecx, [edx + edx*4]
inc edx
mov dword [ebx + ecx*4], 0
mov dword [ebx + ecx*4 + 8], 0x400000
mov dword [ebx + ecx*4 + 0xc], eax
add eax, edi
mov dword [ebx + ecx*4 + 0x10], edi
cmp edx, 0x10
mov edi, eax
je 0x10021aee
test edx, edx
je 0x10021a60
cmp edx, 1
jne 0x10021aa0
mov eax, 0x40
jmp 0x10021a65
mov dword [esp + 8], edi
mov edi, 1
mov eax, 2
mov ebx, edx
mov ecx, edx
mov dword [esp + 0x14], edx
nop word cs:[eax + eax]
test bl, 1
mov edx, eax
cmove edx, esi
shr ecx, 1
imul eax, eax
imul edi, edx
cmp ebx, 3
mov ebx, ecx
ja 0x10021ac0
imul eax, edi
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x14]
shl eax, 5
jmp 0x10021a65
movzx eax, byte [0x10199148]
xor ecx, ecx
mov edx, 0x40
call fcn.100ea7d0
test eax, eax
je 0x10021ec5
xorps xmm0, xmm0
mov esi, eax
xor ecx, ecx
mov edx, 0x14
movsd qword [eax + 0x38], xmm0
movsd qword [eax + 0x30], xmm0
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x20], xmm0
movsd qword [eax + 0x18], xmm0
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm0
movsd qword [eax], xmm0
movzx eax, byte [0x10199148]
call fcn.100ea7d0
test eax, eax
je 0x10021ed4
mov dword [eax], esi
mov esi, dword [esp + 0xc]
mov dword [eax + 4], 0x10
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0x10
mov edi, eax
mov dword [eax + 0x10], esi
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
cmp esi, edx
jae 0x10021ee3
mov ecx, dword [eax]
mov edx, eax
xor eax, eax
lock cmpxchg dword [ecx + esi*4], edi
jne 0x10021eef
mov eax, dword [edx + 8]
mov ecx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp eax, esi
jae 0x10021bab
lock cmpxchg dword [ecx + 8], esi
jne 0x10021ba0
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], edi
test eax, eax
je 0x10021e28
mov ecx, dword [esp + 0x1c]
shl eax, 2
xor ebx, ebx
lea eax, [eax + eax*4]
mov esi, dword [ecx + 8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jmp 0x10021bed
add esi, 0x14
inc ebx
add eax, 0xffffffec
je 0x10021e28
cmp dword [esp + 0x10], ebx
je 0x10021e3c
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], eax
mov edi, dword [ecx + ebx*4]
cmp dword [esi + 0xc], edi
ja 0x10021c0f
mov edi, 0x400000
xchg dword [esi + 8], edi
mov eax, dword [esp + 8]
cmp edi, 0x400000
je 0x10021be0
mov ecx, dword [esi]
test ecx, ecx
je 0x10021c4d
mov edx, dword [esi + 4]
cmp edi, edx
jae 0x10021e4c
mov eax, dword [esi + 0x10]
mov edx, edi
shl edx, 6
mov dword [esp + 0x54], eax
mov eax, dword [ecx + edx + 0x38]
mov dword [esp + 4], eax
test eax, 0x3ffffffc
mov eax, dword [esp + 8]
jne 0x10021be0
jmp 0x10021c6e
mov ecx, esi
call fcn.1010f200
mov ecx, dword [esi]
test ecx, ecx
jne 0x10021c21
mov ecx, str.page_must_have_been_allocated_to_insert_C:Users_runneradmin_.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sharded_slab_0.1.7_srcpagemod.rs
mov edx, 0x28
push 0x1011f9f0
call fcn.1010d3d0
add ecx, edx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov edx, dword [ecx + 0x3c]
add eax, edi
mov edi, ecx
mov dword [esi + ebx*4], edx
mov edx, dword [esp + 0xc]
and eax, 0x3fffff
mov ebx, dword [esp + 4]
shl edx, 0x16
or edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [0x1019914c]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
mov edx, ebx
and edx, 0xc0000000
cmp byte [eax + 0xc0], 0
je 0x10021ced
mov eax, dword [0x1019914c]
mov esi, dword fs:[0x2c]
mov esi, dword [esi + eax*4]
mov eax, dword [esi + 0xcc]
mov esi, dword [esi + 0xc8]
jmp 0x10021d22
mov eax, dword [0x1019914c]
mov esi, dword fs:[0x2c]
mov eax, dword [esi + eax*4]
xor esi, esi
mov byte [eax + 0xc0], 1
mov dword [eax + 0xcc], 0
mov dword [eax + 0xc8], 0
mov byte [eax + 0xd0], 3
xor eax, eax
mov dword [edi], esi
mov esi, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 0x10], 1
mov eax, ebx
or esi, edx
lock cmpxchg dword [edi + 0x38], edx
je 0x10021df0
mov ecx, dword [esp + 0x1c]
or ebx, 3
jmp 0x10021d5b
lock cmpxchg dword [edi + 0x38], ebx
je 0x10021de9
mov edx, eax
and edx, 3
cmp edx, 2
jb 0x10021d50
cmp edx, 3
je 0x10021d50
mov dword [esp + 0x58], edx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x20]
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0x1018ed8c
mov dword [esp + 0x60], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], 2
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 4
mov byte [esp + 0x44], 3
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], 1
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x5c]
mov edx, 0x1018ee04
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x1000cac0
mov dword [esp + 0x68], 1
call fcn.1010cf40
mov edx, esi
call fcn.100fc740
xor edx, edx
inc esi
sete dl
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
jne 0x10021e58
call fcn.1010db50
jmp 0x100219dc
call fcn.10118580
mov esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x20], esi
cmp esi, dword [eax + 4]
jb 0x10021a22
jmp 0x10021e60
mov ecx, 0x1011f5c8
mov edx, 0x1f
push 0x1011f5e8
call fcn.1010d3d0
mov ecx, dword [esp + 0x10]
mov edx, ecx
push 0x1018e550
call fcn.1010cfe0
mov ecx, edi
push 0x1011fa00
call fcn.1010cfe0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0x1011fa68
mov dword [esp + 0x2c], 3
mov dword [esp + 0x38], 0
mov edx, 0x1011fa80
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x100033d0
mov dword [esp + 0x64], 0x1011fa10
mov dword [esp + 0x68], 0x100033d0
mov dword [esp + 0x34], 2
call fcn.1010cf40
mov ecx, 4
mov edx, 0x140
call fcn.1010cb60
mov ecx, 4
mov edx, 0x40
call fcn.1010cb60
mov ecx, 4
mov edx, 0x14
call fcn.1010cb80
mov ecx, esi
push 0x1011fa90
call fcn.1010cfe0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov ecx, str.a_shard_can_only_be_inserted_by_the_thread_that_owns_it__this_is_a_bug_
mov edx, 0x47
push 0x1011fae8
push 0x1011fff0
push eax
call fcn.1010d2e0
int3