Function at 0x64a931d0
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, 0x498
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x64ab50d0], 8
jne 0x64a93240
test ebx, ebx
je 0x64a93278
test esi, esi
je 0x64a93278
lea eax, [ebp - 0x470]
mov dword [esp + 4], 0x18
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._GetObjectA_12
sub esp, 0xc
cmp eax, 0x18
jne 0x64a93278
movzx eax, word [ebp - 0x45e]
cmp ax, 0x30
ja case.0x64a93232.0
movzx edx, ax
jmp dword [edx*4 + 0x64abc1e8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._p__p__p_n
mov dword [esp + 8], str.GdipCreateBitmapFromHBITMAP
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
test ebx, ebx
jne 0x64a931fc
lea esi, [esi]
mov edx, 2
jmp 0x64a932f5
test byte [0x64ab50d0], 1
je 0x64a93278
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.dont_know_how_to_handle__d_bpp_n
mov dword [esp + 8], str.GdipCreateBitmapFromHBITMAP
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
jmp 0x64a93278
mov edi, 0x30101
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x468]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x46c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipCreateBitmapFromScan0
sub esp, 0x18
mov edx, eax
test eax, eax
je 0x64a93400
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov edi, 0x10300c
jmp 0x64a932b8
mov edi, 0x21808
jmp 0x64a932b8
mov dword [esp], 0
lea edi, [ebp - 0x434]
call sym._CreateCompatibleDC_4
mov ecx, 0x18
lea edx, [ebp - 0x440]
mov dword [ebp - 0x47c], eax
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov dword [ebp - 0x440], 0x6c
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x430], 3
mov word [ebp - 0x432], cx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._GetDIBits_28
mov eax, dword [ebp - 0x418]
sub esp, 0x1c
cmp eax, 0x7c00
je 0x64a93458
cmp eax, 0xf800
jne 0x64a933d2
cmp dword [ebp - 0x414], 0x7e0
je 0x64a9376b
test byte [0x64ab50d0], 1
jne 0x64a936c0
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
jmp 0x64a93278
mov edi, 0x22009
jmp 0x64a932b8
lea eax, [ebp - 0x458]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x64a934a8
mov eax, dword [esi]
mov dword [ebp - 0x47c], edx
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
mov dword [esi], 0
mov edx, dword [ebp - 0x47c]
sub esp, 4
jmp 0x64a932f5
cmp dword [ebp - 0x414], 0x3e0
jne 0x64a933d2
cmp dword [ebp - 0x410], 0x1f
jne 0x64a933d2
mov eax, dword [ebp - 0x47c]
mov edi, 0x21005
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
jmp 0x64a932b8
mov edi, 0x30402
jmp 0x64a932b8
mov edi, 0x30803
jmp 0x64a932b8
mov dword [ebp - 0x480], eax
lea edi, [ebp - 0x440]
mov dword [esp], 0
call sym._CreateCompatibleDC_4
xor edx, edx
mov dword [ebp - 0x440], 0x28
sub esp, 4
mov word [ebp - 0x432], dx
mov dword [esp + 4], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x47c], eax
mov dword [esp], eax
call sym._GetDIBits_28
mov ecx, dword [ebp - 0x438]
sub esp, 0x1c
mov edx, ecx
neg edx
cmovns ecx, edx
mov edx, ecx
neg edx
mov dword [ebp - 0x438], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x448]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x47c]
mov dword [esp], ebx
call sym._GetDIBits_28
sub esp, 0x1c
mov dword [esp], ebx
call sym._DeleteDC_4
lea eax, [ebp - 0x458]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
movzx ecx, word [ebp - 0x432]
mov edx, dword [ebp - 0x480]
sub esp, 8
cmp cx, 8
ja 0x64a932f5
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x47c], eax
test eax, eax
jne 0x64a93712
mov eax, 1
mov dword [ebp - 0x484], edx
shl eax, cl
mov edx, eax
mov dword [ebp - 0x47c], eax
lea ecx, [edx*4 + 8]
mov dword [esp + 4], 8
mov dword [esp + 8], ecx
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 edx, dword [ebp - 0x484]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x480], eax
je 0x64a93793
mov ebx, dword [ebp - 0x47c]
mov dword [eax], 0
mov dword [eax + 4], ebx
mov dword [ebp - 0x484], edx
mov edx, dword [ebp - 0x47c]
xor ecx, ecx
mov dword [ebp - 0x47c], esi
mov ebx, dword [ebp - 0x480]
lea esi, [esi]
nop
movzx esi, byte [edi + ecx*4 + 0x2a]
movzx eax, byte [edi + ecx*4 + 0x29]
shl esi, 0x10
shl eax, 8
or eax, esi
movzx esi, byte [edi + ecx*4 + 0x28]
or eax, esi
or eax, 0xff000000
mov dword [ebx + ecx*4 + 8], eax
add ecx, 1
cmp ecx, edx
jne 0x64a93630
mov edx, dword [ebp - 0x484]
mov esi, dword [ebp - 0x47c]
mov edi, dword [ebp - 0x480]
mov dword [ebp - 0x47c], edx
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sym.gdiplus.dll_GdipSetImagePalette
sub esp, 8
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
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_HeapFree]
mov edx, dword [ebp - 0x47c]
sub esp, 0xc
test ebx, ebx
je 0x64a932f5
mov edx, ebx
jmp 0x64a93431
mov edx, dword [ebp - 0x410]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x414]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.unrecognized_bitfields__lx__lx__lx_n
mov dword [esp + 8], str.get_16bpp_format
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
jmp 0x64a93278
mov ebx, eax
mov dword [ebp - 0x484], edx
lea ecx, [ebx*4 + 8]
mov dword [esp + 4], 8
mov dword [esp + 8], ecx
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 [ebp - 0x480], eax
sub esp, 0xc
test eax, eax
je 0x64a93793
test ebx, ebx
mov dword [eax + 4], ebx
mov edx, dword [ebp - 0x484]
mov dword [eax], 0
jg 0x64a9360d
jmp 0x64a93665
cmp dword [ebp - 0x410], 0x1f
jne 0x64a933d2
mov eax, dword [ebp - 0x47c]
mov edi, 0x21006
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
jmp 0x64a932b8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
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_HeapFree]
mov edx, 3
sub esp, 0xc
jmp 0x64a93431