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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456904
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470be4]
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 0x40cee8
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], vtable.CRgn.0
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.0041d6af
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], vtable.CGdiObject.0
lea ecx, [esp + 0x1c]
jmp 0x40d209
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.0041d6af
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.0041d16a
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.0041d6af
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.0041ce8c
push esi
mov byte [esp + 0xb4], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x70]
call fcn.0041d3e8
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x40cfd5
xor eax, eax
jmp 0x40cfd8
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x74]
push eax
call fcn.0041d734
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 0x40d012
xor esi, esi
xor ebp, ebp
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 0x40d0a6
cmp ebp, esi
jne 0x40d036
add ebp, 1
jmp 0x40d0a6
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.0041d6af
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.CGdiObject.0
call fcn.0041d702
add esi, 1
cmp esi, 0xc0
jl 0x40d014
cmp ebp, esi
je 0x40d11e
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.0041d6af
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.CGdiObject.0
call fcn.0041d702
add edi, 1
cmp edi, 0x9e
jl 0x40d010
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CRgn.0
push 0x22e
push 0x186
push 0x9e
push 0x23
mov byte [esp + 0xc0], 6
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0041d6af
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.0041d702
push 0x9e
push 0x186
push 0x7b
push 0xc0
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0041d6af
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]
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x24], esi
call fcn.0041d702
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb0], 2
call fcn.0041d462
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x2c], esi
call fcn.0041d702
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041d702
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