Function at 0x70d82270
Capabilities:
Access peb ldr_data
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, 0x478
mov esi, dword [ecx + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x44c], esi
mov ecx, dword [ecx + 0xc]
test byte [0x70d9507c], 8
jne 0x70d82428
test edx, edx
je 0x70d822b4
mov dword [edx], 0
xor esi, esi
test ebx, ebx
je 0x70d822c5
test edi, edi
je 0x70d822c5
mov eax, dword [ebx + 8]
cmp dword [ebx], eax
jl 0x70d822d8
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov eax, dword [ebx + 0xc]
cmp dword [ebx + 4], eax
jge 0x70d822c5
test ecx, ecx
je 0x70d822f1
test byte [0x70d9507c], 1
jne 0x70d82658
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x450], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax], edi
mov esi, eax
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x18], eax
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x454], eax
sub esp, 4
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x70d824d0
dec eax
cmp eax, 2
ja 0x70d825a0
xor eax, eax
mov ecx, 0x10a
lea edi, [ebp - 0x440]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [ebp - 0x440], 0x28
cmp dword [ebp - 0x44c], 1
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 0xc]
je 0x70d82600
sub ecx, edi
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x44c], 3
mov eax, 1
mov dword [ebp - 0x438], ecx
mov ecx, 0x20
cmovne eax, ecx
mov word [ebp - 0x432], ax
mov eax, 1
mov word [ebp - 0x434], ax
lea eax, [esi + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x440]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x44c], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov edx, dword [ebp - 0x44c]
mov dword [esi + 8], eax
sub esp, 0x18
jmp 0x70d82505
mov eax, 0x70d97019
test ebx, ebx
je 0x70d82470
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], section..rdata
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x450]
mov dword [esp + 0x20], edx
mov dword [ebp - 0x454], edx
mov edx, dword [ebp - 0x44c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p__s__d__p__p__n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d9507c
mov dword [esp], 3
mov dword [ebp - 0x450], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x450]
jmp 0x70d822aa
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [ebp - 0x44c], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x1c], 0
mov edx, dword [ebp - 0x44c]
mov dword [esi + 8], eax
sub esp, 0xc
test eax, eax
je 0x70d82690
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44c], edx
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetWindowOrgEx]
mov eax, dword [ebx + 0xc]
sub esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_IntersectClipRect]
mov eax, dword [esi + 8]
sub esp, 0x14
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SelectObject]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x44c]
sub esp, 4
mov dword [edx], eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
test byte [0x70d9507c], 4
jne 0x70d82620
mov dword [esi + 8], 0
mov dword [esp], 0
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esi + 4]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
sub esp, 4
mov dword [esp + 8], esi
xor esi, esi
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]
sub esp, 0xc
jmp 0x70d822c5
sub edi, ecx
mov dword [ebp - 0x43c], eax
mov eax, 0x20
mov dword [ebp - 0x438], edi
jmp 0x70d823c0
mov eax, dword [ebp - 0x44c]
mov dword [esp + 0xc], str.Unknown_buffer_format__d_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x70d9507c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x70d825a9
mov dword [esp + 0xc], str.painting_parameters_are_ignored_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d9507c
mov dword [esp], 0
mov dword [ebp - 0x450], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x450]
jmp 0x70d822f1
test byte [0x70d9507c], 4
jne 0x70d826a1
mov dword [esp], eax
jmp 0x70d825b7
mov dword [esp + 0xc], str.Failed_to_create_buffer_bitmap_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d9507c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov eax, dword [esi + 8]
jmp 0x70d82699