Function at 0x70d81fa0
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 [0x70d98018], 8
jne 0x70d82160
test edx, edx
je 0x70d81fe4
mov dword [edx], 0
xor esi, esi
test ebx, ebx
je 0x70d81ff5
test edi, edi
je 0x70d81ff5
mov eax, dword [ebx + 8]
cmp dword [ebx], eax
jl 0x70d82008
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 0x70d81ff5
test ecx, ecx
je 0x70d82021
test byte [0x70d98018], 1
jne 0x70d82350
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 sym._CreateCompatibleDC_4
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 0x70d82208
sub eax, 1
cmp eax, 2
ja 0x70d822d8
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 0x70d82300
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 [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x430], 0
call sym._CreateDIBSection_24
mov edx, dword [ebp - 0x44c]
mov dword [esi + 8], eax
sub esp, 0x18
jmp 0x70d8223c
mov eax, 0x70d9a019
test ebx, ebx
je 0x70d821a8
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], 0x70d98018
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 0x70d81fda
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 sym._CreateCompatibleBitmap_12
mov dword [esi + 0x1c], 0
mov edx, dword [ebp - 0x44c]
mov dword [esi + 8], eax
sub esp, 0xc
test eax, eax
je 0x70d82388
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 sym._SetWindowOrgEx_16
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 sym._IntersectClipRect_20
mov eax, dword [esi + 8]
sub esp, 0x14
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [esp], eax
call sym._DeleteObject_4
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 [0x70d98018], 4
jne 0x70d82320
mov dword [esi + 8], 0
mov eax, esi
xor esi, esi
call sym._free_paintbuffer
jmp 0x70d81ff5
sub edi, ecx
mov dword [ebp - 0x43c], eax
mov eax, 0x20
mov dword [ebp - 0x438], edi
jmp 0x70d820f1
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], 0x70d98018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x70d822e1
mov dword [esp + 0xc], str.painting_parameters_are_ignored_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d98018
mov dword [esp], 0
mov dword [ebp - 0x450], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x450]
jmp 0x70d82021
test byte [0x70d98018], 4
jne 0x70d8239f
mov eax, esi
xor esi, esi
call sym._free_paintbuffer
jmp 0x70d81ff5
mov dword [esp + 0xc], str.Failed_to_create_buffer_bitmap_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d98018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x70d82391