Function at 0x64aa1e30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 0x4c], 3
je 0x64aa1fb0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov eax, ebx
call sym._METAFILE_AddPenObject
mov esi, eax
test eax, eax
je 0x64aa1e70
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x64aa20f0
mov eax, dword [ebx + 0x68]
lea ecx, [eax + 0x1c]
cmp edx, ecx
jb 0x64aa1fd0
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x68], ecx
mov ecx, dword [ebp - 0x1c]
add eax, edx
mov edx, 0x400f
mov dword [eax + 4], 0x1c
mov dword [eax + 8], 0x10
mov word [eax], dx
mov word [eax + 2], cx
fld dword [edi]
fld dword [edi + 4]
fld dword [edi + 8]
fld dword [edi + 0xc]
fxch st(3)
fnstcw word [ebp - 0x2a]
movzx edx, word [ebp - 0x2a]
or dh, 0xc
mov word [ebp - 0x2c], dx
fldcw word [ebp - 0x2c]
fist word [ebp - 0x30]
fldcw word [ebp - 0x2a]
fild word [ebp - 0x30]
fxch st(1)
fucompi st(1)
fstp st(0)
jp 0x64aa2089
jne 0x64aa2098
fxch st(1)
fldcw word [ebp - 0x2c]
fist word [ebp - 0x30]
fldcw word [ebp - 0x2a]
fild word [ebp - 0x30]
fxch st(1)
fucompi st(1)
fstp st(0)
jp 0x64aa20a0
jne 0x64aa20b0
fldcw word [ebp - 0x2c]
fist word [ebp - 0x30]
fldcw word [ebp - 0x2a]
fild word [ebp - 0x30]
fxch st(1)
fucompi st(1)
fstp st(0)
jp 0x64aa20b6
jne 0x64aa20c0
fldcw word [ebp - 0x2c]
fist word [ebp - 0x30]
fldcw word [ebp - 0x2a]
fild word [ebp - 0x30]
fxch st(1)
fucompi st(1)
fstp st(0)
jp 0x64aa20c8
jne 0x64aa20c8
or ch, 0x40
mov word [eax + 2], cx
fld dword [edi]
fldcw word [ebp - 0x2c]
fistp word [eax + 0xc]
fldcw word [ebp - 0x2a]
fld dword [edi + 4]
fldcw word [ebp - 0x2c]
fistp word [eax + 0xe]
fldcw word [ebp - 0x2a]
fld dword [edi + 8]
fldcw word [ebp - 0x2c]
fistp word [eax + 0x10]
fldcw word [ebp - 0x2a]
fld dword [edi + 0xc]
fldcw word [ebp - 0x2c]
fistp word [eax + 0x12]
fldcw word [ebp - 0x2a]
mov eax, dword [ebx + 0x68]
cmp eax, 4
jbe 0x64aa1e5c
mov edx, dword [ebx + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
call sym._GdiComment_12
mov dword [ebx + 0x68], 4
sub esp, 0xc
jmp 0x64aa1e5c
test byte [0x64ab5100], 1
jne 0x64aa2060
mov esi, 6
jmp 0x64aa1e5c
lea eax, [ecx + 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 0x64aa2140
mov eax, dword [ebx + 0x68]
mov dword [esp + 8], eax
mov ecx, dword [ebx + 0x60]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], 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 edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x68]
sub esp, 0xc
mov dword [ebx + 0x60], edx
lea ecx, [eax + 0x1c]
jmp 0x64aa1e8c
mov dword [esp + 0xc], 0x64abf26c
mov dword [esp + 8], str.METAFILE_DrawEllipse
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_9
jmp 0x64aa1fbd
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x64aa20c8
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x64aa20c8
fstp st(0)
fstp st(0)
jmp 0x64aa20c8
fstp st(0)
fstp st(0)
jmp 0x64aa20c8
fstp st(0)
jmp 0x64aa20c8
fstp st(0)
lea esi, [esi]
mov ecx, dword [edi]
lea edx, [eax + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
jmp 0x64aa1f79
mov dword [esp + 8], 0x100
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebx + 0x60], eax
sub esp, 0xc
test eax, eax
je 0x64aa2140
mov dword [eax], 0x2b464d45
mov ecx, 0x20
mov edx, dword [ebx + 0x60]
mov eax, 4
mov dword [ebx + 0x64], 0x100
jmp 0x64aa1e8c
mov esi, 3
jmp 0x64aa1e5c