Function at 0x6905d6b0
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
sub esp, 0x88
mov dword [ebp - 4], edi
mov edi, dword [eax + 0xc]
test byte [0x6907a0e8], 8
mov dword [ebp - 0x10], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x4c], edi
mov ecx, dword [ecx + 8]
jne 0x6905d770
test ebx, ebx
je 0x6905d7bf
cmp esi, 1
je 0x6905d818
mov edi, 0
jbe 0x6905d758
lea eax, [esi - 2]
cmp eax, 7
ja 0x6905d7d0
xor eax, eax
mov edx, esi
call sym._get_palette
test eax, eax
je 0x6905da30
mov edx, dword [eax + 4]
mov edi, 1
cmp dword [ebx + 4], edx
jae 0x6905d9d8
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], ebx
mov edx, dword fs:[0x18]
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 ecx, dword [ebp - 0x10]
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edx
mov eax, str.__p__d__d__d__p__n
mov dword [esp + 0xc], eax
mov eax, str.GdipInitializePalette
mov dword [esp + 8], eax
mov eax, 0x6907a0e8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
call sym._wine_dbg_log.constprop.0_6
test ebx, ebx
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
jne 0x6905d6f7
mov edi, 2
jmp 0x6905d758
test byte [0x6907a0e8], 1
mov edi, 2
je 0x6905d758
mov edx, str.GdipInitializePalette
mov ecx, 0x6907a0e8
mov dword [esp + 0x10], esi
mov eax, str.unknown_palette_type__d_n
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_6
jmp 0x6905d758
test edx, edx
je 0x6905d7bf
cmp dword [ebx + 4], ecx
mov edi, 1
mov dword [ebp - 0x50], ecx
jb 0x6905d758
lea eax, [ebp - 0x30]
mov edi, 1
mov dword [esp + 0x10], eax
mov esi, 0x21808
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x54], edx
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
test eax, eax
mov edi, eax
jne 0x6905d758
mov dword [esp], 0x236
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
call sym._WICCreateImagingFactory_Proxy_8
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x6905da3a
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x3c]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x54], ecx
mov esi, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [esi + 0x24]
mov edx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x6905d99e
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov ecx, 0x690838c4
mov edx, dword [ebp - 0x30]
mov esi, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x28]
imul eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call dword [esi + 0x50]
mov edx, dword [ebp - 0x50]
sub esp, 0x20
test eax, eax
mov esi, eax
jne 0x6905d98a
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov esi, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [esi + 0x14]
mov edx, dword [ebp - 0x50]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x6905d976
mov dword [ebx], 0
mov eax, dword [ebp - 0x38]
lea edi, [ebx + 4]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 8]
mov eax, dword [eax]
sub esp, 8
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp - 0x38]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [eax + 0x24]
mov edx, dword [ebp - 0x4c]
sub esp, 0x10
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x4c]
sub esp, 4
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x4c]
sub esp, 4
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.gdiplus.dll_GdipBitmapUnlockBits
sub esp, 8
mov dword [esp], esi
call sym._hresult_to_status
mov edi, eax
jmp 0x6905d758
mov ecx, dword [eax]
lea edi, [ebx + 8]
mov dword [ebx + 4], edx
lea esi, [eax + 8]
mov edx, dword [eax + 4]
mov dword [ebx], ecx
lea ecx, [edx*4]
cmp ecx, 8
jae 0x6905da00
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x6905d735
test edi, 1
jne 0x6905da58
test edi, 2
jne 0x6905da46
test edi, 4
je 0x6905d9f4
mov edx, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], edx
jmp 0x6905d9f4
mov edi, 3
jmp 0x6905d758
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
jmp 0x6905d9b9
movzx edx, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], dx
jmp 0x6905da10
movzx edx, byte [eax + 8]
lea edi, [ebx + 9]
dec ecx
lea esi, [eax + 9]
mov byte [ebx + 8], dl
jmp 0x6905da08