Function at 0x70d81f50
Capabilities:
Access peb ldr_data
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, 0x478
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x44c], eax
test byte [0x70d95018], 8
jne 0x70d82108
test edx, edx
je 0x70d81f92
mov dword [edx], 0
test edi, edi
je 0x70d81fa1
test ebx, ebx
je 0x70d81fa1
mov eax, dword [ebx + 8]
cmp dword [ebx], eax
jl 0x70d81fb8
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
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 0x70d81fa1
test esi, esi
je 0x70d81fd1
test byte [0x70d95018], 1
jne 0x70d82328
mov dword [ebp - 0x450], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
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 0x70d82198
sub eax, 1
cmp eax, 2
ja 0x70d82270
lea edi, [ebp - 0x440]
xor eax, eax
cmp dword [ebp - 0x44c], 1
mov ecx, 0x10a
rep stosd dword es:[edi], eax
mov dword [ebp - 0x440], 0x28
je 0x70d822d0
mov eax, dword [ebx + 4]
mov ecx, 0x20
mov edi, 1
sub eax, dword [ebx + 0xc]
mov dword [ebp - 0x438], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cmp dword [ebp - 0x44c], 3
cmove ecx, edi
mov dword [ebp - 0x43c], eax
mov eax, 1
mov word [ebp - 0x434], ax
lea eax, [esi + 0x1c]
mov dword [ebp - 0x44c], edx
mov word [ebp - 0x432], cx
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 eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov edx, dword [ebp - 0x44c]
sub esp, 0x18
mov dword [esi + 8], eax
jmp 0x70d821cd
mov eax, 0x70d97019
test ebx, ebx
je 0x70d82144
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x450], edx
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 fcn.70d81da0
mov edx, dword [ebp - 0x450]
mov dword [esp + 0x20], edx
mov dword [ebp - 0x450], edx
mov dword [esp + 0x1c], esi
mov edx, dword [ebp - 0x44c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p__s__d__p__p__n
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d95018
mov dword [esp], 3
call fcn.70d81e60
mov edx, dword [ebp - 0x450]
jmp 0x70d81f88
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x44c], edx
sub eax, dword [ebx + 4]
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 edx, dword [ebp - 0x44c]
mov dword [esi + 0x1c], 0
sub esp, 0xc
mov dword [esi + 8], eax
test eax, eax
je 0x70d82360
mov dword [ebp - 0x44c], edx
mov dword [esp + 0xc], 0
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_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 [0x70d95018], 4
jne 0x70d822f0
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
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 0x70d81fa1
mov eax, dword [ebx + 0xc]
mov ecx, 0x20
sub eax, dword [ebx + 4]
mov dword [ebp - 0x438], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
jmp 0x70d8209a
mov eax, dword [ebp - 0x44c]
mov dword [esp + 0xc], str.Unknown_buffer_format__d_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d95018
mov dword [esp], 2
mov dword [esp + 0x10], eax
call fcn.70d81e60
jmp 0x70d82279
mov dword [ebp - 0x450], edx
mov dword [esp + 0xc], str.painting_parameters_are_ignored_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d95018
mov dword [esp], 0
call fcn.70d81e60
mov edx, dword [ebp - 0x450]
jmp 0x70d81fd1
test byte [0x70d95018], 4
jne 0x70d82371
mov dword [esp], eax
jmp 0x70d82287
mov dword [esp + 0xc], str.Failed_to_create_buffer_bitmap_n
mov dword [esp + 8], str.BeginBufferedPaint
mov dword [esp + 4], 0x70d95018
mov dword [esp], 2
call fcn.70d81e60
mov eax, dword [esi + 8]
jmp 0x70d82369