Function at 0x64a59520
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, 0xa8
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x64ab50b0], 8
jne 0x64a59830
test edi, edi
je 0x64a5955d
test byte [0x64ab50b0], 1
jne 0x64a597f0
test ebx, ebx
je 0x64a59820
test esi, esi
je 0x64a598c0
mov dword [esp + 8], 0xb4
mov dword [esp + 4], 8
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x64a59820
fldz
add eax, 0x44
fst dword [esp + 0x18]
fst dword [esp + 0x14]
fld1
mov dword [esp], eax
fst dword [esp + 0x10]
fxch st(1)
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
call sym.gdiplus.dll_GdipSetMatrixElements
mov eax, dword [esi]
sub esp, 0x1c
add eax, 0x60
mov dword [esp], eax
call sym.gdiplus.dll_GdipCreateRegion
mov dword [ebp - 0x8c], eax
sub esp, 4
test eax, eax
jne 0x64a59868
mov dword [esp + 4], 7
mov dword [esp], ebx
call sym._GetCurrentObject_8
sub esp, 8
test eax, eax
je 0x64a598b0
lea ecx, [ebp - 0x6c]
mov dword [esp + 4], 0x54
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._GetObjectW_12
sub esp, 0xc
cmp eax, 0x54
mov eax, dword [esi]
je 0x64a59890
mov dword [eax], ebx
mov edi, dword [esi]
mov dword [esp], ebx
call sym._WindowFromDC_4
mov dword [edi + 4], eax
mov eax, dword [esi]
sub esp, 4
mov dword [eax + 8], 0
mov eax, dword [esi]
mov dword [eax + 0x1c], 0
mov eax, dword [esi]
mov dword [eax + 0x20], 0
mov eax, dword [esi]
mov dword [eax + 0x24], 3
mov eax, dword [esi]
mov dword [eax + 0x28], 0
mov eax, dword [esi]
mov dword [eax + 0x2c], 0
mov eax, dword [esi]
mov dword [eax + 0x34], 1
mov eax, dword [esi]
mov dword [eax + 0x38], 0x3f800000
mov dword [esp + 4], 0x58
mov dword [esp], ebx
call sym._GetDeviceCaps_8
mov ecx, dword [esi]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
sub esp, 8
fstp dword [ecx + 0x3c]
mov dword [esp + 4], 0x5a
mov dword [esp], ebx
call sym._GetDeviceCaps_8
mov ecx, dword [esi]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
sub esp, 8
fstp dword [ecx + 0x40]
mov eax, dword [esi]
mov dword [eax + 0x5c], 0
mov eax, dword [esi]
mov dword [eax + 0x64], 4
mov eax, dword [esi]
lea ecx, [eax + 0x68]
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x68], ecx
mov eax, dword [esi]
mov dword [eax + 0x70], 0
mov dword [esp + 4], 2
mov dword [esp], ebx
call sym._GetDeviceCaps_8
xor ecx, ecx
mov edx, dword [esi]
sub esp, 8
cmp eax, 2
sete cl
mov dword [edx + 0x10], ecx
mov eax, dword [esi]
lea edi, [eax + 0x84]
mov eax, dword [eax]
test eax, eax
je 0x64a59928
lea ecx, [ebp - 0x84]
mov dword [esp + 4], 0x204
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._GetTransform_12
fld dword [ebp - 0x70]
sub esp, 0xc
fstp dword [esp + 0x18]
fld dword [ebp - 0x74]
fstp dword [esp + 0x14]
fld dword [ebp - 0x78]
fstp dword [esp + 0x10]
fld dword [ebp - 0x7c]
fstp dword [esp + 0xc]
fld dword [ebp - 0x80]
fstp dword [esp + 8]
fld dword [ebp - 0x84]
mov dword [esp], edi
fstp dword [esp + 4]
call sym.gdiplus.dll_GdipSetMatrixElements
sub esp, 0x1c
mov edi, dword [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateRectRgn_16
mov dword [edi + 0x9c], eax
mov eax, dword [esi]
sub esp, 0x10
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._GetClipRgn_8
sub esp, 8
test eax, eax
je 0x64a59900
test byte [0x64ab50b0], 8
jne 0x64a598d0
mov eax, dword [ebp - 0x8c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0xc], str.Dont_know_how_to_handle_parameter_hDevice_n
mov dword [esp + 8], str.GdipCreateFromHDC2
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_3
test ebx, ebx
jne 0x64a59565
lea esi, [esi]
mov dword [ebp - 0x8c], 3
jmp 0x64a597d4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64ab914b
mov dword [esp + 8], str.GdipCreateFromHDC2
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x64a5954c
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x64a597d4
cmp word [ebp - 0x46], 0x20
jne 0x64a5962a
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x64a5962a
mov dword [eax + 0xc], 1
lea esi, [esi]
mov eax, dword [esi]
jmp 0x64a5962a
mov dword [ebp - 0x8c], 2
jmp 0x64a597d4
mov eax, dword [esi]
mov dword [esp + 0xc], 0x64ab9188
mov dword [esp + 8], str.GdipCreateFromHDC2
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x64ab50b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x64a597d4
mov eax, dword [esi]
mov eax, dword [eax + 0x9c]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [esi]
sub esp, 4
mov dword [eax + 0x9c], 0
jmp 0x64a597c7
fldz
mov dword [esp + 0x10], 0x3f800000
fst dword [esp + 0x18]
fst dword [esp + 0x14]
mov dword [esp + 4], 0x3f800000
mov dword [esp], edi
fst dword [esp + 0xc]
fstp dword [esp + 8]
call sym.gdiplus.dll_GdipSetMatrixElements
sub esp, 0x1c
jmp 0x64a59779