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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458dd4
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472cf0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor esi, esi
cmp dword [edi + 0x78], esi
jne 0x40f545
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, vtable.CRgn.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push eax
push ecx
push esi
push esi
mov dword [esp + 0xc0], esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.00423220
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x20]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
jmp 0x40f861
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], vtable.CRgn.0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
mov dword [esp + 0xc0], 1
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00423220
mov edx, dword [edi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x4c]
push ecx
push edx
call ebp
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.00422cdb
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], vtable.CRgn.0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
mov byte [esp + 0xc0], 2
call ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00423220
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push 3
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x6c]
call fcn.004229fd
push esi
mov byte [esp + 0xb4], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x70]
call fcn.00422f59
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x40f632
xor eax, eax
jmp 0x40f635
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x74]
push eax
call fcn.004232a5
mov eax, dword [edi + 0x74]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x8c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x7c]
push eax
push ecx
call ebp
xor edi, edi
jmp 0x40f668
xor esi, esi
xor ebp, ebp
lea ebx, [ebx]
mov edx, dword [esp + 0x70]
push edi
push esi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x84]
jne 0x40f702
cmp ebp, esi
jne 0x40f692
add ebp, 1
jmp 0x40f702
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], vtable.CRgn.0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea ecx, [edi + eax + 1]
lea ebx, [esi + edx]
push ecx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
add eax, edi
add edx, ebp
push eax
push edx
mov byte [esp + 0xc0], 4
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00423220
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
push 2
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x3c]
lea ebp, [esi + 1]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x3c], vtable.CRgn.0
call fcn.0040a620
add esi, 1
cmp esi, 0xc0
jl 0x40f670
cmp ebp, esi
je 0x40f77a
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], vtable.CRgn.0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add eax, edi
lea ecx, [eax + 1]
push ecx
add esi, edx
push esi
add ebp, edx
push eax
push ebp
mov byte [esp + 0xc0], 5
call ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00423220
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 2
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x34], vtable.CRgn.0
call fcn.0040a620
add edi, 1
cmp edi, 0x9e
jl 0x40f666
mov edi, vtable.CRgn.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], edi
push 0x22e
push 0x186
push 0x9e
push 0x23
mov byte [esp + 0xc0], 6
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00423220
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_CombineRgn]
push 2
push edx
push eax
push eax
call esi
lea ecx, [esp + 0x24]
call fcn.00423273
push 0x9e
push 0x186
push 0x7b
push 0xc0
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00423220
mov eax, dword [esp + 0x28]
push 2
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
push 1
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x24], edi
call fcn.0040a620
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb0], 2
call fcn.00422fd3
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x2c], edi
call fcn.0040a620
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0040a620
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret