Function at 0x10012070
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x84
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov eax, edi
mov edx, esi
call sym._checkMipmapArgs.isra.0
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x100122f3
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x100124a8
lea eax, [ebp - 0x50]
mov dword [esp + 8], esi
mov edx, dword [ebp + 0x10]
mov ecx, 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._closestFit
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x100124bc
mov eax, ebx
call sym._computeLog.part.0
mov edx, esi
mov dword [ebp - 0x64], eax
mov eax, edi
call sym._checkMipmapArgs.isra.0
test eax, eax
jne 0x100124d5
lea eax, [ebp - 0x4c]
call sym._retrieveStoreModes
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov edx, 1
mov dword [esp], 0x1403
call sym._image_size
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x70], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x68], eax
call eax
mov dword [ebp - 0x5c], eax
sub esp, 0xc
test eax, eax
je 0x100122ec
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 1
mov dword [esp + 4], esi
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [edi - 0x1900]
cmp eax, 1
mov dword [esp], edi
setbe al
movzx eax, al
mov dword [esp + 8], eax
lea eax, [ebp - 0x4c]
call sym._fill_image
mov edx, esi
mov eax, edi
call sym._elements_per_group
mov dword [esp + 4], 2
mov dword [esp], 0xcf5
mov dword [ebp - 0x6c], eax
call sym._glPixelStorei_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xcf3
call sym._glPixelStorei_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xcf4
call sym._glPixelStorei_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xcf2
call sym._glPixelStorei_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xcf0
call sym._glPixelStorei_8
sub esp, 8
cmp dword [ebp - 0x64], 0xffffffff
je 0x100123e0
mov dword [ebp - 0x58], 0
xor esi, esi
jmp 0x100122a3
test esi, esi
je 0x10012300
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], esi
mov ecx, 1
mov dword [esp + 8], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], ebx
call sym._scale_internal
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x58]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0x1403
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._glTexImage1D_32
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x5c], esi
sub esp, 0x20
mov esi, eax
mov eax, ebx
sar eax, 1
cmp ebx, 1
cmovg ebx, eax
add dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x64]
jg 0x100123e2
cmp dword [ebp + 0x10], ebx
jne 0x10012218
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x18], 0x1403
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._glTexImage1D_32
sub esp, 0x20
jmp 0x10012289
mov dword [ebp - 0x60], 0x18a26
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp], 0x1403
mov ecx, edi
mov edx, 1
mov eax, ebx
call sym._image_size
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10012220
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0xcf5
mov dword [esp + 4], eax
call sym._glPixelStorei_8
push eax
push eax
mov eax, dword [ebp - 0x24]
mov dword [esp], 0xcf3
mov dword [esp + 4], eax
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x20]
push edx
push edx
mov dword [esp + 4], eax
mov dword [esp], 0xcf4
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x28]
push ecx
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0xcf2
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x18]
push ebx
push ebx
mov dword [esp + 4], eax
mov dword [esp], 0xcf0
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x5c]
push esi
push esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x60], 0x18a26
sub esp, 0xc
jmp 0x100122f3
xor esi, esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0xcf5
mov edi, dword fs:[0x18]
mov dword [esp + 4], eax
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x24]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0xcf3
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0xcf4
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x28]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0xcf2
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0xcf0
call sym._glPixelStorei_8
mov eax, dword [ebp - 0x5c]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 8
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x60]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [ebp - 0x60], 0x18a25
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov edx, esi
mov eax, edi
call sym._checkMipmapArgs.isra.0
test eax, eax
jne 0x100124d5
mov dword [ebp - 0x64], 0xffffffff
jmp 0x100120f3
mov dword [esp + 8], 0xdad
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_glu32_mipmap.c
mov dword [esp], str.checkMipmapArgs_internalFormat_format_type___0
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea edi, [edi]