Function at 0x64a89880
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x64ab50d0], 8
jne 0x64a89a28
test ebx, ebx
je 0x64a89a10
test esi, esi
je 0x64a89a10
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [ebx + 0x34], ecx
mov edi, eax
test eax, eax
je 0x64a898d9
mov edx, 4
cmp ecx, eax
jne 0x64a899fe
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x64a89a90
mov eax, dword [esi + 0x14]
mov edx, dword [ebx + 0x48]
test al, 2
je 0x64a89b10
test edx, edx
je 0x64a89ae8
mov ecx, dword [ebx + 0x60]
mov eax, dword [0x64ac2068]
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x64a89a60
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x34], eax
imul eax, dword [ebx + 0x64]
mov dword [ebp - 0x38], eax
test edx, edx
je 0x64a89ad5
mov ecx, dword [ebp - 0x1c]
movzx eax, dh
imul eax, ecx
mov dword [esp + 0x24], 0
mov ecx, dword [ebp - 0x20]
test eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], edx
lea edx, [eax + 7]
cmovns edx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp - 0x38]
sar edx, 3
add edx, eax
mov eax, dword [ebp - 0x30]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._convert_pixels
mov edx, eax
test eax, eax
je 0x64a899b8
test byte [0x64ab50d0], 2
jne 0x64a89b88
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 0x1c], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
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 [ebx + 0x48], 0
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test edi, edi
mov dword [ebx + 0x44], 0
jne 0x64a899fe
mov dword [ebx + 0x34], 0
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea esp, [ebp - 0x10]
mov edx, 2
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64abbb3e
mov dword [esp + 8], str.GdipBitmapUnlockBits
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a898a6
test edx, edx
je 0x64a89aa8
movzx eax, dh
imul eax, ecx
test al, 7
je 0x64a89bc0
test byte [0x64ab50d0], 1
jne 0x64a89b50
mov dword [0x64ac2068], 1
jmp 0x64a89910
test edi, edi
jne 0x64a89a9b
mov dword [ebx + 0x34], 0
mov edx, 8
jmp 0x64a899fe
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x58]
imul ecx, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
shl eax, 3
jmp 0x64a8994c
test al, 4
jne 0x64a898fa
mov dword [ebx + 0x44], 0
test edi, edi
jne 0x64a89b02
mov dword [ebx + 0x34], 0
xor edx, edx
jmp 0x64a899fe
mov dword [ebx + 0x44], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
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 [ebx + 0x48], 0
sub esp, 0xc
test edi, edi
jne 0x64a89b02
jmp 0x64a89afb
mov dword [esp + 0xc], str.Cannot_copy_rows_that_dont_start_at_a_whole_byte._n
mov dword [esp + 8], str.GdipBitmapUnlockBits
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
mov eax, dword [ebx + 0x60]
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x64a89a7f
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], str.failed_to_convert_pixels__this_should_never_happen_n
mov dword [esp + 8], str.GdipBitmapUnlockBits
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1_5
mov edx, dword [ebp - 0x1c]
jmp 0x64a899b8
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x34], ecx
imul ecx, dword [ebx + 0x64]
mov dword [ebp - 0x38], ecx
jmp 0x64a8994c