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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba1ad
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
xor esi, esi
cmp eax, esi
je 0x451771
lea ecx, [edi + 0x18]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
jne 0x451771
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x78], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], vtable.CBkBitmap.0
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x78], 3
cmp dword [ebx], esi
je 0x4517dc
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [ebx]
push 1
push edx
push eax
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
neg eax
push eax
neg ecx
push ecx
push edx
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi + 0x24]
sub ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
sub edx, dword [edi + 0x18]
lea ebx, [edi + 0x18]
push ecx
push edx
lea esi, [esp + 0x30]
mov dword [esp + 0x20], eax
call fcn.00434f70
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x451832
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [edi]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call edx
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x451893
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax]
push 1
push ebx
push edx
push edi
call eax
test eax, eax
jne 0x451893
mov eax, dword [esp + 0x2c]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x45186e
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x451885
push eax
call edi
test eax, eax
je 0x451885
mov dword [esp + 0x14], 0
test esi, esi
je 0x4519d2
push esi
jmp 0x4519cc
mov edx, dword [edi]
mov edx, dword [edx + 0x4c]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0xf
push eax
mov ecx, edi
mov dword [esp + 0x30], eax
mov dword [edi + 0xfc], eax
call edx
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x4518cf
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0
push ebx
push edx
push edi
call eax
mov esi, dword [edi + 0x104]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
push edx
mov eax, edi
mov dword [esp + 0x48], 2
call fcn.00437b60
test esi, esi
je 0x45193f
mov eax, esi
mov ecx, dword [eax + 8]
test ecx, ecx
mov esi, dword [esi]
je 0x45193b
mov eax, dword [ecx + 0x38]
shr eax, 3
not eax
test al, 1
je 0x45193b
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call edx
test esi, esi
jne 0x451913
lea esi, [esp + 0x3c]
lea edi, [esp + 0x10]
call fcn.00437d40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push 0xff
push edx
mov edx, dword [ebx + 8]
sub edx, dword [ebx]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edx]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00435290
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x24
test eax, eax
je 0x4519ac
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4519c3
push eax
call esi
test eax, eax
je 0x4519c3
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4519d2
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8