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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454df4
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
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 0x40d248
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.0041c096
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 0x40d569
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.0041c096
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.0041bb51
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.0041c096
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.0041b873
push esi
mov byte [esp + 0xb4], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x70]
call fcn.0041bdcf
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x40d335
xor eax, eax
jmp 0x40d338
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x74]
push eax
call fcn.0041c11b
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 0x40d372
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 0x40d406
cmp ebp, esi
jne 0x40d396
add ebp, 1
jmp 0x40d406
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.0041c096
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.0041c0e9
add esi, 1
cmp esi, 0xc0
jl 0x40d374
cmp ebp, esi
je 0x40d47e
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.0041c096
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.0041c0e9
add edi, 1
cmp edi, 0x9e
jl 0x40d370
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.0041c096
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.0041c0e9
push 0x9e
push 0x186
push 0x7b
push 0xc0
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0041c096
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.0041c0e9
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb0], 2
call fcn.0041be49
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x2c], esi
call fcn.0041c0e9
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041c0e9
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