Function at 0x64a8a280
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x488
mov edi, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x444], 0
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x450], edi
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x44c], edi
mov edi, dword [eax + 0x10]
test byte [0x64ab50d0], 8
jne 0x64a8a568
test ebx, ebx
je 0x64a8a2fb
test ecx, ecx
jle 0x64a8a5c8
mov edx, dword [ebp - 0x450]
test edx, edx
jle 0x64a8a5c8
test edi, edi
je 0x64a8a310
test esi, 3
jne 0x64a8a5c8
test esi, esi
jne 0x64a8a310
mov eax, 2
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x454], ecx
mov dword [esp], 0
call sym._CreateCompatibleDC_4
mov ecx, dword [ebp - 0x454]
sub esp, 4
test eax, eax
je 0x64a8a6fb
mov dword [ebp - 0x45c], ecx
mov dword [esp + 4], 0x58
mov dword [esp], eax
mov dword [ebp - 0x458], eax
call sym._GetDeviceCaps_8
mov dword [ebp - 0x454], eax
fild dword [ebp - 0x454]
sub esp, 8
fstp dword [ebp - 0x460]
mov dword [esp + 4], 0x5a
mov edx, dword [ebp - 0x458]
mov dword [esp], edx
call sym._GetDeviceCaps_8
mov edx, dword [ebp - 0x458]
mov dword [ebp - 0x454], eax
fild dword [ebp - 0x454]
sub esp, 8
fstp dword [ebp - 0x464]
mov dword [esp], edx
call sym._DeleteDC_4
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x45c]
sub esp, 4
test eax, eax
jne 0x64a8a5d8
test esi, esi
jne 0x64a8a3cb
lea eax, [ecx + ecx*2]
lea esi, [eax*8 + 7]
sar esi, 3
add esi, 3
and esi, 0xfffffffc
test edi, edi
je 0x64a8aa30
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x444], edi
xor edi, edi
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x45c], ecx
mov edx, dword fs:[0x18]
mov dword [esp + 8], 0x74
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x458], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x454]
call eax
mov edx, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x45c]
sub esp, 0xc
test eax, eax
mov dword [ebx], eax
je 0x64a8aab0
mov dword [eax + 8], 1
mov edx, dword [ebx]
fld dword [ebp - 0x460]
mov dword [edx + 0xc], 0xb96b3caa
mov dword [edx + 0x10], 0x11d30728
mov dword [edx + 0x14], 0x7b9d
mov dword [edx + 0x18], 0x2ef31ef8
mov eax, dword [ebx]
mov edx, dword [ebp - 0x450]
mov dword [eax + 0x1c], 0
mov eax, dword [ebx]
mov dword [eax + 0x20], 1
mov eax, dword [ebx]
mov dword [eax + 0x24], 0
mov eax, dword [ebx]
mov dword [eax + 0x28], 0
mov eax, dword [ebx]
fstp dword [eax + 0x2c]
fld dword [ebp - 0x464]
mov eax, dword [ebx]
fstp dword [eax + 0x30]
mov eax, dword [ebx]
mov dword [eax + 0x38], ecx
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x44c]
mov dword [eax + 0x3c], edx
mov eax, dword [ebx]
mov dword [eax + 0x40], ecx
mov eax, dword [ebx]
and ecx, 0xd0000
mov dword [eax], 0
mov eax, dword [ebx]
mov dword [eax + 4], 0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x468]
mov dword [eax + 0x4c], edx
mov eax, dword [ebx]
mov edx, dword [ebp - 0x444]
mov dword [eax + 0x50], 0
mov eax, dword [ebx]
mov dword [eax + 0x54], edx
mov eax, dword [ebx]
mov dword [eax + 0x58], esi
mov eax, dword [ebx]
mov dword [eax + 0x5c], edi
mov eax, dword [ebx]
mov dword [eax + 0x68], 0
mov eax, dword [ebx]
mov dword [eax + 0x6c], 0
mov eax, dword [ebx]
mov dword [eax + 0x70], 0
je 0x64a8a51a
mov eax, dword [ebx]
or dword [eax + 0x1c], 2
mov edi, dword [ebp - 0x44c]
cmp edi, 0x30101
sete al
cmp edi, 0x30402
sete dl
or al, dl
jne 0x64a8a748
cmp edi, 0x30803
je 0x64a8a748
test byte [0x64ab50d0], 8
jne 0x64a8a710
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov eax, dword [ebp - 0x44c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x450]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x454], ecx
mov dword [esp + 0xc], str._d__d__d_0x_x__p__p_n
mov dword [esp + 8], str.GdipCreateBitmapFromScan0
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov ecx, dword [ebp - 0x454]
jmp 0x64a8a2cd
mov dword [ebx], 0
jmp 0x64a8a2fb
mov edx, eax
movzx eax, ah
imul eax, ecx
sar edx, 8
mov dword [ebp - 0x454], edx
add eax, 7
sar eax, 3
add eax, 3
mov edx, eax
mov eax, dword [ebp - 0x44c]
and edx, 0xfffffffc
test esi, esi
cmove esi, edx
and eax, 0x70000
cmp eax, 0x20000
jne 0x64a8a3cb
test edi, edi
jne 0x64a8a3d3
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x458], ecx
neg eax
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x438], eax
mov eax, 1
mov word [ebp - 0x434], ax
movzx eax, byte [ebp - 0x454]
mov dword [ebp - 0x440], 0x28
mov word [ebp - 0x432], ax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x440]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateDIBSection_24
mov ecx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, dword [ebp - 0x45c]
sub esp, 0x18
test eax, eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp - 0x458]
jne 0x64a8a3f0
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, dword [ebx]
mov dword [esp + 0xc], 0x64abb5ff
mov dword [esp + 8], str.GdipCreateBitmapFromScan0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
xor eax, eax
jmp 0x64a8a555
mov eax, dword [ebp - 0x44c]
mov edi, dword [ebx]
mov dword [esp + 4], 8
mov edx, dword fs:[0x18]
movzx esi, ah
mov eax, 4
mov ecx, esi
shl eax, cl
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x454]
call eax
mov dword [edi + 0x28], eax
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax + 0x28]
test edx, edx
je 0x64a8aaf5
mov eax, 1
mov ecx, esi
shl eax, cl
cmp dword [ebp - 0x44c], 0x30101
mov dword [edx + 4], eax
je 0x64a8aa00
cmp dword [ebp - 0x44c], 0x30803
jne 0x64a8a7c9
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
mov dword [eax], 4
mov eax, dword [ebx]
mov edi, dword [eax + 0x28]
mov eax, dword [edi + 4]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], eax
test eax, eax
je 0x64a8a546
mov dword [ebp - 0x454], ebx
xor eax, eax
jmp 0x64a8a80e
mov dword [edi + eax*4 + 8], esi
test al, 4
je 0x64a8a7fc
mov dword [edi + eax*4 + 8], edx
add eax, 1
cmp eax, 7
ja 0x64a8a868
mov esi, dword [ebp - 0x44c]
cmp eax, esi
jae 0x64a8a868
mov esi, eax
and esi, 1
cmp esi, 1
sbb edx, edx
and edx, 0xff800000
sub edx, 0x7fff80
cmp esi, 1
sbb ecx, ecx
and ecx, 0xff800000
sub ecx, 0x7f7f80
cmp esi, 1
sbb ebx, ebx
and ebx, 0xff800000
sub ebx, 0x7f8000
cmp esi, 1
sbb esi, esi
and esi, 0xff800000
sub esi, 0x800000
test al, 2
je 0x64a8a7f0
mov dword [edi + eax*4 + 8], ebx
mov edx, ecx
jmp 0x64a8a7f4
mov esi, dword [ebp - 0x44c]
mov ebx, dword [ebp - 0x454]
cmp esi, 8
jbe 0x64a8a546
mov edi, dword [ebp - 0x450]
mov dword [edi + eax*4 + 8], 0xffc0c0c0
cmp esi, 9
je 0x64a8a546
mov eax, 9
jmp 0x64a8a8be
mov dword [edi + eax*4 + 8], edx
test al, 4
je 0x64a8a8ac
mov dword [edi + eax*4 + 8], ecx
add eax, 1
cmp eax, 0xf
ja 0x64a8a910
mov esi, dword [ebp - 0x44c]
cmp eax, esi
jae 0x64a8a910
mov edx, eax
and edx, 1
cmp edx, 1
mov esi, edx
sbb ecx, ecx
and ecx, 0xff010000
sub ecx, 0xff01
neg esi
sbb esi, esi
or esi, 0xff00ffff
cmp edx, 1
sbb ebx, ebx
and ebx, 0xff010000
sub ebx, 0x100
cmp edx, 1
sbb edx, edx
and edx, 0xff010000
sub edx, 0x10000
test al, 2
je 0x64a8a8a0
mov dword [edi + eax*4 + 8], ebx
mov ecx, esi
jmp 0x64a8a8a4
mov ecx, dword [ebp - 0x44c]
mov ebx, dword [ebp - 0x454]
cmp ecx, 0x10
jbe 0x64a8a546
mov edx, dword [ebp - 0x450]
mov eax, 0x10
mov dword [edx + eax*4 + 8], 0
add eax, 1
cmp eax, 0x27
ja 0x64a8a944
cmp eax, ecx
jb 0x64a8a930
mov eax, dword [ebp - 0x44c]
cmp eax, 0x28
jbe 0x64a8a546
mov esi, dword [ebp - 0x450]
mov edi, 0x29
mov dword [esi + 0xa8], 0xff000000
cmp eax, 0x29
je 0x64a8a546
mov dword [ebp - 0x450], ebx
lea esi, [esi]
nop
lea ebx, [edi - 0x28]
mov eax, 0xaaaaaaab
mul ebx
mov eax, 0xaaaaaaab
mov ecx, edx
shr ecx, 2
mul ecx
shr edx, 2
lea eax, [edx + edx*2]
mov edx, ecx
add eax, eax
sub edx, eax
movzx eax, byte [edx + 0x64abccd4]
lea edx, [ecx + ecx*2]
mov ecx, ebx
add edx, edx
sub ecx, edx
shl eax, 8
movzx ecx, byte [ecx + 0x64abccd4]
or ecx, eax
mov eax, 0x38e38e39
mul ebx
mov ebx, edx
shr ebx, 3
movzx eax, byte [ebx + 0x64abccd4]
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
mov dword [esi + edi*4 + 8], ecx
add edi, 1
cmp edi, 0xff
ja 0x64a8a9f5
mov eax, dword [ebp - 0x44c]
cmp edi, eax
jb 0x64a8a980
mov ebx, dword [ebp - 0x450]
jmp 0x64a8a546
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
mov dword [eax], 2
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
mov dword [eax + 8], 0xff000000
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
mov dword [eax + 0xc], 0xffffffff
jmp 0x64a8a546
mov eax, esi
mov edi, dword [ebp - 0x450]
mov dword [ebp - 0x458], ecx
mov edx, dword fs:[0x18]
neg eax
mov dword [esp + 4], 8
cmovs eax, esi
imul eax, edi
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x454], eax
call eax
mov dword [ebp - 0x444], eax
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64a8aaeb
test esi, esi
mov ecx, dword [ebp - 0x458]
jns 0x64a8aa9a
mov eax, 1
sub eax, edi
imul eax, esi
add eax, edx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x468], 0
mov edi, edx
jmp 0x64a8a3f0
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x44c], edx
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 3
jmp 0x64a8a300
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
mov dword [ebx], 0
sub esp, 4
jmp 0x64a8aaeb