Function at 0x64a99420
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov dword [ecx], 0xffffffff
mov eax, dword [eax + 0x4c]
sub eax, 4
cmp eax, 1
jbe 0x64a99450
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx]
mov edi, edx
mov esi, ecx
cmp eax, 1
je 0x64a99580
cmp eax, 4
je 0x64a99480
test eax, eax
je 0x64a99598
test byte [0x64ab5100], 1
jne 0x64a996c8
mov eax, 6
jmp 0x64a9943e
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [edx + 0x3c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipIsMatrixIdentity
sub esp, 8
cmp dword [ebp - 0x1c], 1
sbb ecx, ecx
and ecx, 0x18
add ecx, 0x3c
cmp dword [ebp - 0x1c], 1
sbb eax, eax
and eax, 0x18
add eax, 0x30
mov dword [ebp - 0x2c], eax
mov edx, eax
mov eax, dword [edi + 0x38]
cmp eax, 1
jle 0x64a99550
cmp dword [edi + 0x30], 0
je 0x64a99550
cmp dword [edi + 0x34], 0
je 0x64a99550
lea eax, [edx + eax*8 + 4]
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 0xc]
lea esi, [esi]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x64a995b0
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, ecx
mov dword [ebp - 0x34], eax
cmp edx, eax
jb 0x64a99620
mov edx, dword [ebx + 0x60]
mov eax, dword [ebp - 0x30]
add edx, eax
mov eax, dword [ebp - 0x34]
add edx, 0xc
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx - 0xc], 0x4008
mov dword [edx - 8], ecx
mov dword [edx - 4], eax
mov eax, dword [ebx + 0x84]
lea ecx, [eax + 1]
and eax, 0x3f
mov dword [ebx + 0x84], ecx
mov dword [esi], eax
or ah, 1
mov word [edx - 0xa], ax
mov eax, edi
call sym._METAFILE_FillBrushData
jmp 0x64a9943c
mov eax, dword [edi + 0x2c]
cmp eax, 1
jle 0x64a994e0
mov edx, dword [edi + 0x24]
test edx, edx
je 0x64a994e0
mov edx, dword [edi + 0x28]
test edx, edx
je 0x64a994e0
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*8 + 4]
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 0xc]
jmp 0x64a994e0
mov dword [ebp - 0x2c], 0x14
mov ecx, 0x20
jmp 0x64a994e0
mov dword [ebp - 0x2c], 0xc
mov ecx, 0x18
jmp 0x64a994e0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
lea edx, [eax + eax + 0x1c]
mov eax, 0x100
cmp edx, eax
cmovb edx, eax
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov dword [ebp - 0x30], edx
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub esp, 0xc
test eax, eax
mov dword [ebx + 0x60], eax
je 0x64a996b8
mov dword [eax], 0x2b464d45
mov dword [ebp - 0x30], 4
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], 4
jmp 0x64a994f1
add eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x34], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64a996b8
mov eax, dword [ebx + 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x60]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x3c], edx
call sym._memcpy
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [ebp - 0x30], eax
add eax, ecx
mov dword [ebx + 0x60], edx
mov dword [ebp - 0x34], eax
jmp 0x64a99504
mov eax, 3
jmp 0x64a9943e
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unsupported_brush_type:__d_n
mov dword [esp + 8], str.METAFILE_PrepareBrushData
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_9
jmp 0x64a99479