Function at 0x10016650
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov edx, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1d4
mov edi, dword [ecx]
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1ac], eax
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c4], eax
sub esp, 0xc
mov esi, eax
mov dword [edi + 8], eax
test eax, eax
je 0x10016a98
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x1d8], eax
lea eax, [eax*4 - 4]
add esi, eax
mov dword [ebp - 0x1b8], esi
jb 0x10016749
mov edi, dword [ebp - 0x1c4]
mov edx, eax
shr edx, 2
mov ecx, edi
lea esi, [edx + 1]
cmp eax, 0xb
jbe 0x10016a8d
movdqu xmm1, xmmword [0x10025490]
mov eax, esi
movd xmm5, ebx
shr eax, 2
pshufd xmm0, xmm5, 0
paddd xmm0, xmmword [0x10025480]
shl eax, 4
add eax, edi
movdqu xmm2, xmm0
add ecx, 0x10
paddd xmm0, xmm1
movups xmmword [ecx - 0x10], xmm2
cmp eax, ecx
jne 0x1001670c
mov edx, esi
mov eax, dword [ebp - 0x1c4]
and edx, 0xfffffffc
lea ecx, [edx*4]
add eax, ecx
add ebx, ecx
cmp edx, esi
je 0x10016749
mov dword [eax], ebx
add ebx, 4
add eax, 4
cmp eax, dword [ebp - 0x1b8]
jbe 0x10016739
mov dword [ebp - 0x1cc], 0x7830f0c3
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c4]
add eax, 0x28
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1b8], eax
jbe 0x10016921
mov edi, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1c4]
xor edx, edx
imul eax, dword [ebp - 0x1cc], 0x5bc19f0d
mov ecx, edi
lea ebx, [edi + 4]
sub ecx, esi
sar ecx, 2
add eax, 1
add ecx, 1
mov dword [ebp - 0x1cc], eax
div ecx
lea eax, [esi + edx*4]
mov edx, dword [esi]
sub esi, 4
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi + 4], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x1b4], ecx
movsd xmm1, qword [eax + 0x28]
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1b0], eax
movupd xmm0, xmm1
nop
comisd xmm1, xmm0
mov esi, dword [ebp - 0x1ac]
lea edi, [esi + 4]
ja 0x10016830
ucomisd xmm1, xmm0
jp 0x1001689a
jne 0x1001689a
mov esi, dword [ebp - 0x1b0]
movsd xmm3, qword [esi + 0x30]
comisd xmm3, xmmword [eax + 0x30]
movsd qword [ebp - 0x1c0], xmm3
jb 0x1001689a
lea esi, [esi]
mov ecx, dword [ebx - 4]
mov esi, dword [ebp - 0x1b0]
lea eax, [ebx - 4]
mov edx, dword [ecx]
movsd xmm0, qword [edx + 0x28]
comisd xmm0, xmm1
jbe 0x10016852
jmp 0x100169ef
mov eax, ebx
ucomisd xmm0, xmm1
lea ebx, [eax + 4]
jp 0x10016869
jne 0x10016869
movsd xmm0, qword [edx + 0x30]
comisd xmm0, xmmword [esi + 0x30]
jae 0x100168b0
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
mov edx, dword [ecx]
movsd xmm0, qword [edx + 0x28]
comisd xmm0, xmm1
jbe 0x10016850
mov edx, dword [edi]
mov dword [edi], ecx
mov dword [eax - 4], edx
cmp edi, ebx
jae 0x100168c1
mov eax, dword [ebp - 0x1b4]
mov eax, dword [eax]
mov dword [ebp - 0x1b0], eax
movsd xmm1, qword [eax + 0x28]
mov eax, dword [edi + 4]
mov dword [ebp - 0x1ac], edi
mov eax, dword [eax]
movsd xmm0, qword [eax + 0x28]
jmp 0x100167f0
mov edx, dword [edi]
mov esi, ebx
mov ebx, eax
mov dword [edi], ecx
mov eax, esi
mov dword [eax - 4], edx
cmp edi, ebx
jb 0x10016887
mov ecx, dword [edi]
mov dword [edi], edx
sub edi, dword [ebp - 0x1c4]
add dword [ebp - 0x1c8], 8
mov edx, edi
mov edi, dword [ebp - 0x1b8]
mov dword [eax - 4], ecx
mov ecx, edi
sub ecx, ebx
cmp edx, ecx
jge 0x100169d1
mov edx, edi
mov edi, dword [ebp - 0x1ac]
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1b8], edi
mov edi, dword [ebp - 0x1c8]
mov esi, dword [ebp - 0x1ac]
mov dword [edi - 8], eax
mov dword [edi - 4], esi
mov edi, dword [ebp - 0x1d0]
cmp dword [ebp - 0x1b8], edi
ja 0x10016792
mov eax, dword [ebp - 0x1c4]
lea edi, [eax + 4]
cmp edi, dword [ebp - 0x1b8]
ja 0x1001699b
mov dword [ebp - 0x1ac], edi
mov edi, dword [ebp - 0x1c4]
mov ecx, dword [ebp - 0x1ac]
mov esi, dword [ecx]
mov eax, ecx
cmp edi, ecx
jb 0x1001696d
jmp 0x10016984
ucomisd xmm1, xmm0
jp 0x10016964
jne 0x10016964
movsd xmm0, qword [ebx + 0x30]
comisd xmm0, xmmword [ecx + 0x30]
jae 0x10016984
mov dword [eax], edx
sub eax, 4
cmp eax, edi
jbe 0x10016984
mov edx, dword [eax - 4]
mov ecx, dword [esi]
mov ebx, dword [edx]
movsd xmm1, qword [ecx + 0x28]
movsd xmm0, qword [ebx + 0x28]
comisd xmm0, xmm1
jbe 0x10016950
add dword [ebp - 0x1ac], 4
mov dword [eax], esi
mov eax, dword [ebp - 0x1ac]
cmp eax, dword [ebp - 0x1b8]
jbe 0x1001693e
mov eax, dword [ebp - 0x1c8]
lea edi, [ebp - 0x1a8]
sub eax, 8
cmp eax, edi
jb 0x100169fa
mov edi, dword [ebp - 0x1c8]
mov dword [ebp - 0x1c8], eax
mov esi, dword [edi - 8]
mov edi, dword [edi - 4]
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1b8], edi
jmp 0x10016777
mov edx, dword [ebp - 0x1c4]
mov edi, eax
mov dword [ebp - 0x1c4], eax
add edi, 0x28
mov dword [ebp - 0x1d0], edi
mov eax, edx
jmp 0x100168fd
mov edx, eax
mov eax, ebx
mov ebx, edx
jmp 0x1001687c
mov eax, dword [ebp - 0x1d4]
mov edi, dword [ebp - 0x1d8]
mov esi, dword [eax]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 1
mov ebx, dword [esi + 8]
test ebx, ebx
jle 0x10016a27
mov edx, ebx
mov eax, esi
call sym._FloatDown
sub ebx, 1
jne 0x10016a19
mov edi, dword [ebp - 0x1d4]
mov dword [esi + 0x14], 1
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
lea ecx, [eax + edx*4 - 4]
cmp eax, ecx
jae 0x10016a7c
mov edx, dword [eax]
mov edx, dword [edx]
movsd xmm0, qword [edx + 0x28]
mov ebx, edx
mov edx, dword [eax + 4]
movupd xmm1, xmm0
mov edx, dword [edx]
movsd xmm0, qword [edx + 0x28]
comisd xmm1, xmm0
ja 0x10016a75
ucomisd xmm0, xmm1
jp 0x10016aa0
jne 0x10016aa0
movsd xmm1, qword [ebx + 0x30]
comisd xmm1, xmmword [edx + 0x30]
jb 0x10016aa0
add eax, 4
cmp ecx, eax
ja 0x10016a4b
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1c4]
jmp 0x10016739
xor eax, eax
jmp 0x10016a81
mov dword [esp + 8], 0x178
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_glu32_priorityq.c
mov dword [esp], str.LEQ___i1___i__
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]