Function at 0x42f055
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9d07
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x2c], edi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x42f0a5
lea ecx, [edi + 0x18]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
je 0x42f2e7
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], vtable.CBkBitmap.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x80], 3
cmp dword [esi], ebx
je 0x42f116
push dword [edi + 0x24]
lea eax, [esp + 0x18]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push eax
call fcn.0040f06e
push 1
push dword [esi]
push dword [esp + 0x1c]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [edi + 0x1c]
neg eax
push eax
mov eax, dword [edi + 0x18]
neg eax
push eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
sub ebx, dword [eax]
push ecx
lea esi, [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.00408eaa
mov eax, dword [esp + 0x1c]
push dword [esp + 0x34]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [esp + 0x20], eax
call ebx
xor esi, esi
cmp dword [esp + 0x14], esi
mov dword [esp + 0x28], eax
je 0x42f170
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x40]
cmp dword [edi + 0xa4], esi
je 0x42f1d1
mov ecx, dword [edi + 0xa4]
mov eax, dword [ecx]
push 1
push dword [esp + 0x24]
push dword [esp + 0x20]
push edi
call dword [eax]
test eax, eax
jne 0x42f1d1
lea esi, [esp + 0x34]
mov dword [esp + 0x30], vtable.CBkBitmap.0
call fcn.0040f08c
xor esi, esi
cmp dword [esp + 0x14], esi
je 0x42f1c8
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x42f1c8
mov dword [esp + 0x14], esi
cmp dword [esp + 0x1c], esi
jmp 0x42f2d8
push esi
push dword [esp + 0x1c]
mov ecx, edi
push 0xf
call fcn.0040e874
cmp dword [edi + 0xa4], esi
je 0x42f1fb
mov ecx, dword [edi + 0xa4]
mov eax, dword [ecx]
push esi
push dword [esp + 0x24]
push dword [esp + 0x20]
push edi
call dword [eax]
mov esi, dword [edi + 0x108]
lea eax, [esp + 0x44]
mov dword [esp + 0x24], esi
call fcn.0041d50e
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0041d52e
test esi, esi
je 0x42f253
lea ecx, [esp + 0x24]
call fcn.00437db0
mov ecx, dword [eax]
test ecx, ecx
je 0x42f24c
mov eax, dword [ecx + 0x38]
shr eax, 3
not eax
test al, 1
je 0x42f24c
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x3c]
cmp dword [esp + 0x24], 0
jne 0x42f222
lea esi, [esp + 0x44]
lea edi, [esp + 0x18]
call fcn.0041d6a8
push dword [esp + 0x28]
push dword [esp + 0x1c]
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
push 0xff
push ecx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
xor edi, edi
push ecx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
push edi
push edi
push ecx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x48]
push dword [ecx + 0x1c]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x58]
call fcn.0040904b
add esp, 0x28
lea esi, [esp + 0x34]
mov dword [esp + 0x30], vtable.CBkBitmap.0
call fcn.0040f08c
cmp dword [esp + 0x14], edi
je 0x42f2d4
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x42f2d4
mov dword [esp + 0x14], edi
cmp dword [esp + 0x1c], edi
je 0x42f2e4
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8