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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4758ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x70]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], esi
jne 0x40160e
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], vtable.CRgn.0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x40]
push eax
sub ecx, ebx
push ecx
push edi
push edi
mov dword [esp + 0xcc], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046e88d
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
jmp 0x4018e1
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x48]
push 0xa
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.0045b63c
mov eax, dword [esp + 0x58]
push 0xa
lea edx, [esp + 0x98]
push edx
push eax
call fcn.0045b63c
add esp, 0x18
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CRgn.0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
mov dword [esp + 0xcc], 1
call edi
push eax
lea ecx, [esp + 0x14]
call fcn.0046e88d
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x58]
push edx
push eax
call ebx
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.0046e3bc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CRgn.0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
mov byte [esp + 0xcc], 2
call edi
push eax
lea ecx, [esp + 0x2c]
call fcn.0046e88d
mov eax, dword [esp + 0x2c]
push 3
push eax
mov eax, dword [esp + 0x1c]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x78]
call fcn.0046e0f4
push 0
mov byte [esp + 0xc0], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x7c]
call fcn.0046e590
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x40171d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call fcn.0046e916
mov eax, dword [esi + 0x8c]
mov eax, dword [eax + 4]
lea edx, [esp + 0x94]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x68]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x98]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x40176a
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x9c]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x401787
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x40189d
mov eax, dword [esp + 0x24]
xor ebx, ebx
xor esi, esi
test eax, eax
jle 0x40188c
mov eax, dword [esp + 0x7c]
push edi
push esi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x7c]
jne 0x401820
cmp ebx, esi
jne 0x4017c2
inc ebx
jmp 0x401820
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], vtable.CRgn.0
lea edx, [edi + 1]
push edx
push esi
push edi
push ebx
mov byte [esp + 0xcc], 4
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x3c]
call fcn.0046e88d
mov eax, dword [esp + 0x3c]
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x38]
lea ebx, [esi + 1]
mov byte [esp + 0xbc], 3
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.0046e8e4
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x4017a5
cmp ebx, esi
je 0x40188c
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], vtable.CRgn.0
lea ecx, [edi + 1]
push ecx
push esi
push edi
push ebx
mov byte [esp + 0xcc], 5
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x34]
call fcn.0046e88d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
push 2
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 3
mov dword [esp + 0x30], vtable.CGdiObject.0
call fcn.0046e8e4
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x401795
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 2
call fcn.0046e60e
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 1
mov dword [esp + 0x28], esi
call fcn.0046e8e4
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0046e8e4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xac]
xor ecx, dword [ebp + 4]
call fcn.00456aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret