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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458009
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], esi
jne 0x41d830
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], vtable.CRgn.0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esp + 0x48]
push eax
sub ecx, ebp
push ecx
push edi
push edi
mov dword [esp + 0xc4], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x24]
call fcn.00450fac
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
jmp 0x41dafa
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, vtable.CRgn.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
mov dword [esp + 0xc4], 1
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00450fac
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.00450acf
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
mov byte [esp + 0xc4], 2
call ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00450fac
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push 3
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x60]
call fcn.004508db
push 0
mov byte [esp + 0xb8], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call fcn.00450caf
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x41d911
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00451035
mov ebp, eax
mov eax, dword [esi + 0x8c]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x90]
push ecx
push 0x18
push edx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x80]
push eax
push ecx
call edi
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x94]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x41d96d
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x98]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x41d990
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x41daa0
mov edi, edi
mov eax, dword [esp + 0x28]
xor ebp, ebp
xor esi, esi
test eax, eax
jle 0x41da8b
mov edx, dword [esp + 0x64]
push edi
push esi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x34]
cmp eax, dword [ecx + 0x7c]
jne 0x41da27
cmp ebp, esi
jne 0x41d9cd
inc ebp
jmp 0x41da27
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], vtable.CRgn.0
lea edx, [edi + 1]
push edx
push esi
push edi
push ebp
mov byte [esp + 0xc4], 4
call ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00450fac
mov eax, dword [esp + 0x44]
push 2
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x40]
lea ebp, [esi + 1]
mov byte [esp + 0xb4], 3
mov dword [esp + 0x40], vtable.CGdiObject.0
call fcn.00451003
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x41d9b0
cmp ebp, esi
je 0x41da8b
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CRgn.0
lea ecx, [edi + 1]
push ecx
push esi
push edi
push ebp
mov byte [esp + 0xc4], 5
call ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00450fac
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push 2
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 3
mov dword [esp + 0x2c], vtable.CGdiObject.0
call fcn.00451003
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x41d9a0
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
test ebp, ebp
jne 0x41daa8
xor eax, eax
jmp 0x41daab
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00451035
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x60]
mov byte [esp + 0xb4], 2
call fcn.00450d2d
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x38], esi
call fcn.00451003
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00451003
mov ecx, dword [esp + 0xac]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret