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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x597ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x2c], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
xor esi, esi
cmp eax, esi
je 0x4c0c51
lea ecx, [edi + 0x14]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
jne 0x4c0c51
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
mov dword [esp + 0x80], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], vtable.CBkBitmap.0
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x80], 3
cmp dword [ebx], esi
je 0x4c0cc2
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
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 + 0x28], eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x18]
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 + 0x20]
sub ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
sub edx, dword [edi + 0x14]
lea ebx, [edi + 0x14]
push ecx
push edx
lea esi, [esp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
call fcn.00479840
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x4c0d1e
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call edx
mov ecx, dword [edi + 0x9c]
cmp ecx, esi
je 0x4c0d78
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
push 1
push ebx
push edx
push edi
call eax
test eax, eax
jne 0x4c0d78
mov eax, dword [esp + 0x34]
cmp eax, esi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x4c0d5a
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4c0d6d
push eax
call edi
test eax, eax
je 0x4c0d6d
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
jmp 0x4c0e9c
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
push 0xf
push esi
mov ecx, edi
mov dword [esp + 0x30], esi
mov dword [edi + 0xac], esi
call edx
mov ecx, dword [edi + 0x9c]
cmp ecx, esi
je 0x4c0db1
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
push esi
push ebx
push edx
push edi
call eax
mov ecx, dword [edi + 0xb4]
or eax, 0xffffffff
lea edx, [esp + 0x14]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
push edx
lea ebx, [esp + 0x48]
mov esi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
call fcn.004a17f0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c0ec4
lea esi, [esp + 0x44]
lea edi, [esp + 0x14]
call fcn.004a1d80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
push 0xff
push edx
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
push 0
push 0
push edx
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x44]
mov edx, dword [edx + 0x18]
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edx]
push ecx
lea ecx, [esp + 0x54]
call fcn.00479760
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x24
test eax, eax
je 0x4c0e7f
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c0e96
push eax
call esi
test eax, eax
je 0x4c0e96
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c0ea5
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, 1
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
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c0efb
mov ecx, dword [eax + 8]
test ecx, ecx
mov esi, dword [eax]
mov dword [esp + 0x1c], esi
je 0x4c0ef2
mov eax, dword [ecx + 0x34]
shr eax, 3
not eax
test al, 1
je 0x4c0ef2
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call edx
test esi, esi
jne 0x4c0ec0
jmp 0x4c0e0e
push 0x80004005
call fcn.00473d10
int3