Function at 0x64a66e20
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, 0x98
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
test byte [0x64ab50b0], 8
jne 0x64a66eb0
test esi, esi
sete al
test ecx, ecx
sete dl
or al, dl
jne 0x64a66ef8
test ebx, ebx
je 0x64a66ef8
mov eax, dword [ebx + 0x5c]
mov edi, 4
test eax, eax
jne 0x64a66e9d
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64a66f78
cmp dword [ebx + 0x18], 2
je 0x64a670c0
mov eax, dword [esi]
cmp eax, 4
jbe 0x64a66f10
test byte [0x64ab50b0], 1
jne 0x64a670e0
xor edi, edi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], ecx
mov dword [ebp - 0x6c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64ab914b
mov dword [esp + 8], str.GdipFillRegion
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov ecx, dword [ebp - 0x6c]
test esi, esi
sete al
test ecx, ecx
sete dl
or al, dl
je 0x64a66e5a
lea esp, [ebp - 0x10]
mov edi, 2
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [ebp - 0x6c], ecx
mov dword [esp], ebx
call sym._gdi_transform_acquire
mov ecx, dword [ebp - 0x6c]
test eax, eax
mov edi, eax
jne 0x64a66f3e
lea edx, [ebp - 0x60]
mov eax, ebx
mov dword [ebp - 0x6c], ecx
call sym._get_graphics_device_bounds
mov ecx, dword [ebp - 0x6c]
test eax, eax
mov edi, eax
je 0x64a67180
mov eax, dword [ebx + 0x7c]
test eax, eax
jle 0x64a67118
cmp eax, 1
je 0x64a67150
sub eax, 1
mov dword [ebx + 0x7c], eax
cmp edi, 6
je 0x64a66e8e
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov edi, dword [ebx + 0xc]
mov eax, dword [esi]
test edi, edi
jne 0x64a66e85
mov edx, dword [ebx]
test edx, edx
je 0x64a66e85
test eax, eax
je 0x64a66fc0
cmp eax, 1
jne 0x64a66e85
mov eax, dword [esi + 8]
not eax
test eax, 0xff000000
jne 0x64a66f10
mov eax, dword [esi + 0xc]
not eax
test eax, 0xff000000
jne 0x64a66f10
lea esi, [esi]
mov dword [ebp - 0x6c], ecx
mov dword [esp], edx
call sym._SaveDC_4
mov dword [ebp - 0x70], eax
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], eax
call sym._EndPath_4
lea edx, [ebp - 0x40]
mov eax, ebx
mov dword [ebp - 0x40], 0
sub esp, 4
call sym._get_clip_hrgn
mov ecx, dword [ebp - 0x6c]
test eax, eax
mov edi, eax
jne 0x64a6722c
mov dword [ebp - 0x6c], ecx
mov dword [esp + 8], 5
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ExtSelectClipRgn_12
mov eax, dword [ebp - 0x40]
sub esp, 0xc
mov dword [esp], eax
call sym._DeleteObject_4
lea eax, [ebp - 0x40]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov ecx, dword [ebp - 0x6c]
mov dword [esp], ecx
call sym.gdiplus.dll_GdipGetRegionHRgn
mov ecx, dword [ebp - 0x6c]
sub esp, 0xc
test eax, eax
mov edi, eax
jne 0x64a6722c
mov dword [ebp - 0x6c], ecx
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ExtSelectClipRgn_12
mov eax, dword [ebp - 0x40]
sub esp, 0xc
mov dword [esp], eax
call sym._DeleteObject_4
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetClipBox_8
mov ecx, dword [ebp - 0x6c]
sub esp, 8
cmp eax, 1
jne 0x64a671db
mov eax, dword [ebp - 0x70]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._RestoreDC_8
sub esp, 8
jmp 0x64a66e9d
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._METAFILE_FillRegion
mov edi, eax
jmp 0x64a66f58
mov eax, dword [esi]
mov dword [esp + 0xc], 0x64ab9838
xor edi, edi
mov dword [esp + 8], str.GdipFillRegion
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_3
jmp 0x64a66e9d
test byte [0x64ab50b0], 2
je 0x64a66f58
mov dword [esp + 0xc], str.called_without_matching_gdi_transform_acquire_n
mov dword [esp + 8], str.gdi_transform_release
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1_3
jmp 0x64a66f58
mov ecx, dword [ebx]
test ecx, ecx
je 0x64a66f52
mov eax, dword [ebx + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym._RestoreDC_8
mov eax, dword [ebx + 0x7c]
sub esp, 8
jmp 0x64a66f52
lea eax, [ebp - 0x68]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.gdiplus.dll_GdipCloneRegion
sub esp, 8
mov edi, eax
test eax, eax
jne 0x64a66f3e
lea edx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], 4
mov dword [esp], ebx
call sym._get_graphics_transform
lea edx, [ebp - 0x30]
test eax, eax
mov edi, eax
je 0x64a67258
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeleteRegion
sub esp, 4
jmp 0x64a66f3e
mov eax, dword [ebx]
mov dword [ebp - 0x6c], ecx
mov dword [esp], eax
call sym._BeginPath_4
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._Rectangle_20
mov eax, dword [ebx]
sub esp, 0x14
mov dword [esp], eax
call sym._EndPath_4
mov edx, esi
mov eax, ebx
sub esp, 4
call sym._brush_fill_path
mov edi, eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._RestoreDC_8
mov ecx, dword [ebp - 0x6c]
sub esp, 8
cmp edi, 6
jne 0x64a66e9d
jmp 0x64a66e83
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.gdiplus.dll_GdipTransformRegion
sub esp, 8
mov edi, eax
test eax, eax
jne 0x64a671c8
lea eax, [ebp - 0x60]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.gdiplus.dll_GdipCombineRegionRect
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x64a671c8
xor edx, edx
lea eax, [ebp - 0x64]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.gdiplus.dll_GdipGetRegionHRgn
mov edi, eax
mov eax, dword [ebp - 0x68]
sub esp, 0xc
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeleteRegion
push ecx
test edi, edi
jne 0x64a66f3e
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._GetRgnBox_8
sub esp, 8
cmp eax, 1
je 0x64a673a1
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
sub edi, ecx
sub eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x6c], eax
imul eax, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x74], edx
shl eax, 2
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], edi
mov edi, 3
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x64a6738e
mov eax, dword [ebp - 0x6c]
mov edx, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
mov eax, ebx
call sym._brush_fill_pixels
mov edi, eax
test eax, eax
je 0x64a673bc
mov edx, dword [ebp - 0x70]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
jmp 0x64a66f3e
mov eax, dword [ebp - 0x64]
xor edi, edi
mov dword [esp], eax
call sym._DeleteObject_4
push eax
mov dword [esp], ebx
call sym._gdi_transform_release
jmp 0x64a66e9d
mov dword [esp + 0x14], 0x26200a
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x6c]
lea eax, [edx*4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov ecx, dword [ebp - 0x78]
mov eax, ebx
mov edx, dword [ebp - 0x74]
call sym._alpha_blend_pixels_hrgn
mov edi, eax
jmp 0x64a67367