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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x404007
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CRgn.0
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x30]
push eax
sub ecx, edi
push ecx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.004ffb1f
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 + 0x94], 0xffffffff
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
jmp 0x404252
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x40]
push ecx
push edx
call edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CRgn.0
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0xa4], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x24]
call fcn.004ffb1f
lea ecx, [esp + 0x60]
call fcn.004ff3c6
push ebx
mov byte [esp + 0x98], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call fcn.004ff822
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jne 0x404073
xor eax, eax
jmp 0x404076
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.004ffba8
mov eax, dword [esi + 0x8c]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x70]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x50]
push eax
push ecx
call edi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4040bd
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x78]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4040d7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x404219
mov eax, dword [esp + 0x10]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x404209
mov edx, dword [esp + 0x64]
push ebx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x7c]
jne 0x40418f
cmp edi, esi
jne 0x404116
inc edi
jmp 0x40418f
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CRgn.0
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea ecx, [eax + ebx + 1]
push ecx
add eax, ebx
add edx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push edx
add edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x2c]
call fcn.004ffb1f
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push 2
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [esp + 0x94], 2
lea ecx, [esp + 0x28]
lea edi, [esi + 1]
mov dword [esp + 0x28], vtable.CGdiObject.0
call fcn.004ffb76
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4040f3
cmp edi, esi
je 0x404209
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], vtable.CRgn.0
mov byte [esp + 0x94], 4
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
add eax, ebx
lea ecx, [eax + 1]
push ecx
add esi, edx
push esi
add edi, edx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x3c]
call fcn.004ffb1f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
push 2
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [esp + 0x94], 2
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.004ffb76
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x4040e3
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x60]
mov byte [esp + 0x94], 1
call fcn.004ff8a0
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
call fcn.004ffb76
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4