Function at 0x4030c0
Capabilities:
Check for unmoving mouse cursor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x41c350]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
mov edi, dword [esp + 0x94]
cmp edi, 0x84
mov esi, ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ebp
ja 0x403259
je 0x4031ed
lea eax, [edi - 1]
cmp eax, 0xf
ja case.0x403271.276
movzx eax, byte [eax + 0x403480]
jmp dword [eax*4 + 0x403468]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp case.0x403271.276
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x403271.276
mov edx, dword [ebp]
push edx
push 0xffffffffffffffeb
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00406777
add esp, 0x7c
ret 0x10
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x34], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
je 0x4031bb
mov esi, dword [esi + 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00406777
add esp, 0x7c
ret 0x10
cmp dword [esi + 0x30], 0
je 0x4031d6
mov esi, dword [esi + 0x30]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
push esi
call ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00406777
add esp, 0x7c
ret 0x10
cmp dword [esi + 0x24], 0
je case.0x403271.276
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je case.0x403271.276
mov eax, dword [esi + 0x40]
lea edx, [esp + 0x10]
push edx
mov edi, ebp
push eax
shr edi, 0x10
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x30]
lea edx, [esp + 0x20]
push edx
push 1
push edi
movzx eax, bp
push eax
lea eax, [esp + 0x20]
push eax
push 1
push ebx
call ecx
test eax, eax
jne 0x40339f
cmp dword [esp + 0x20], eax
pop edi
setne al
pop esi
pop ebp
pop ebx
lea eax, [eax + eax - 1]
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00406777
add esp, 0x7c
ret 0x10
lea eax, [edi - 0x113]
cmp eax, 0xef
ja case.0x403271.276
movzx edx, byte [eax + 0x4034a4]
jmp dword [edx*4 + 0x403490]
mov eax, ebp
mov ecx, ebp
and eax, 0xffff
sar ecx, 0x10
push 0x41d82c
mov dword [0x41d828], eax
mov dword [0x41d824], ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f89
push 0
mov dword [0x41d820], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp case.0x403271.276
cmp dword [0x41d820], 0
je case.0x403271.276
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x41d82c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x18]
add edi, edx
mov edx, dword [0x41d830]
add ecx, eax
mov eax, dword [esp + 0x28]
mov ebp, eax
sub ebp, edx
sub eax, edx
mov edx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esi + 0x40]
push 0
add ebx, ebp
mov dword [esp + 0x20], edx
sub edx, ebx
push edx
mov dword [esp + 0x20], ecx
sub ecx, edi
push ecx
push ebx
push edi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esi + 0x78], 0x20
je 0x403387
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esi + 0x40]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov dword [0x41d82c], ecx
mov dword [0x41d830], edx
mov edi, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x34]
push ebp
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00406777
add esp, 0x7c
ret 0x10
mov ecx, dword [esi + 0x20]
call fcn.00402dd0
test ax, ax
jne case.0x403271.276
mov eax, dword [esi + 0x40]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x403271.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0x7f00
push 0
mov dword [0x41d820], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0x50], 0
jne case.0x403271.276
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push ecx
lea ecx, [esp + 0x54]
push ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00406777
add esp, 0x7c
ret 0x10