Function at 0x405400
Capabilities:
Check for unmoving mouse cursor
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x47106c]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x1c]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x68], edi
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4058e4
cmp eax, 0x63
jne 0x4057d5
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x40556b
mov esi, dword [ebp + 0x14]
lea eax, [esp + 0x68]
push eax
push dword [edi + 0x24]
shr esi, 0x10
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x14]
test ax, ax
js 0x4054ee
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
cwde
cmp eax, ecx
jg 0x4054ee
test si, si
js 0x4054ee
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x6c]
movsx eax, si
cmp eax, ecx
jg 0x4054ee
cmp byte [edi + 0x96], 0
je 0x4054c3
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 0x24]
test eax, eax
je 0x405505
push 0
push 0xffffffffffffffff
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x405cdd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0x24]
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_GetClassLongW]
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_SetClassLongW]
push dword [edi + 4]
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x4055a1
push ecx
push dword [ebp + 0x14]
mov ecx, edi
sub esp, 8
call fcn.0041cdd0
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x200
jne 0x40575e
mov esi, dword [ebp + 0x14]
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0x24]
shr esi, 0x10
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x14]
test ax, ax
jle 0x4056c6
cwde
cmp eax, dword [esp + 0x84]
jge 0x4056c6
test si, si
jle 0x4056c6
movsx eax, si
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x88]
jge 0x4056c6
mov ecx, dword [ebp + 0x10]
mov byte [edi + 0x96], 1
call fcn.0041e560
test ax, ax
jne 0x405cdd
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetCapture]
push 0
push 0
push 0x18e
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
movsx ecx, word [edi + 0x98]
sub esp, 8
movd xmm1, dword [esp + 0x1c]
mov esi, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp + 0x70], xmm1
fld qword [esp + 0x70]
fstp qword [esp]
call fcn.00456040
fstp qword [esp + 0x70]
cvttsd2si eax, qword [esp + 0x70]
add esp, 8
add eax, esi
mov dword [esp + 0x14], eax
js 0x405cdd
mov ecx, edi
call fcn.0041d380
mov esi, dword [esp + 0x14]
cmp esi, eax
jge 0x405cdd
mov ecx, edi
call fcn.0041d230
cmp esi, eax
je 0x405cdd
push esi
mov ecx, edi
call fcn.0041d490
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esp + 0x68]
mov byte [edi + 0x96], 0
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x84]
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x405cdd
mov eax, dword [ebp + 0x14]
cwde
cmp eax, edx
jle 0x405cdd
cmp eax, ecx
jge 0x405cdd
test si, si
js 0x405cdd
movsx eax, si
cmp eax, dword [esp + 0x88]
jg 0x405cdd
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push 0x32
push 1
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x115
jne 0x4057ed
cmp dword [ebp + 0x10], 8
jne 0x4057cf
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x68]
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x84]
cmp ecx, edx
jle 0x4057c2
mov eax, dword [edi + 0x90]
add eax, edx
cmp ecx, eax
jge 0x4057c2
mov eax, dword [esp + 0x6c]
test eax, eax
js 0x4057c2
cmp eax, dword [esp + 0x88]
jle 0x4057cb
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x4057d5
cmp dword [ebp + 0x10], 1
jne 0x405cdd
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [edi + 0x24]
test eax, eax
je 0x4058b6
lea eax, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jl 0x405870
cmp ecx, dword [esp + 0x84]
jg 0x405870
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x80]
jl 0x405870
cmp eax, dword [esp + 0x88]
jle 0x405cdd
mov esi, dword [edi + 0x24]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x405886
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetCapture]
push 1
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x405917
sub esp, 0x10
mov ecx, edi
call fcn.0041c890
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xf
jne 0x405947
sub esp, 0x10
mov ecx, edi
call fcn.0041ca80
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
jne 0x40596d
mov dword [ecx], 1
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x4059c5
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40598b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40598b
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x405cdd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x201
jne 0x405a07
push 0
push 0
push dword [edi + 4]
mov word [edi + 0x94], 0x101
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x405ab6
lea eax, [esp + 0x7c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr ecx, 0x10
test ax, ax
js 0x405a4c
cwde
cmp eax, dword [esp + 0x84]
jg 0x405a4c
test cx, cx
js 0x405a4c
movsx eax, cx
cmp eax, dword [esp + 0x88]
jg 0x405a4c
mov cl, 1
jmp 0x405a4e
xor cl, cl
mov byte [edi + 0x95], cl
mov al, byte [edi + 0x94]
test al, al
je 0x405cdd
test cl, cl
je 0x405a73
mov ecx, edi
call fcn.0041d0c0
mov al, byte [edi + 0x94]
test al, al
je 0x405cdd
push 1
push 0
push dword [edi + 4]
mov word [edi + 0x94], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x200
jne 0x405b75
cmp byte [edi + 0x97], 0
jne 0x405b0b
mov eax, dword [edi + 4]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], 0x10
mov dword [esp + 0x84], 3
mov dword [esp + 0x8c], 0x32
call dword [sym.imp.USER32.dll_TrackMouseEvent]
test eax, eax
setne al
mov byte [edi + 0x97], al
mov eax, dword [ebp + 0x10]
mov edx, eax
and edx, 1
test al, 2
je 0x405b1a
or edx, 2
and al, 0x10
mov dword [esp + 0x14], eax
mov eax, edx
or eax, 4
cmp byte [esp + 0x14], 0
movzx ecx, ax
movzx eax, dx
cmove ecx, eax
test cx, cx
jne 0x405cdd
push 1
push 0
push dword [edi + 4]
mov byte [edi + 0x95], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x405bbc
push 1
push 0
push dword [edi + 4]
mov byte [edi + 0x97], 0
mov byte [edi + 0x95], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2b
jne 0x4057d5
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [eax + 0x20]
movd eax, xmm1
movaps xmmword [esp + 0x30], xmm1
movups xmmword [esp + 0x50], xmm0
cmp eax, 2
jne 0x405cdd
test byte [esp + 0x40], 1
mov esi, dword [sym.imp.OLEAUT32.dll_OleLoadPictureFile]
je 0x405c22
lea eax, [esp + 0x1c]
push eax
push 0
push 0x8000000d
call esi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0
push 0x8000000e
call esi
mov eax, dword [esp + 0x20]
jmp 0x405c46
lea eax, [esp + 0x24]
push eax
push 0
push VariantClear
call esi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push 0
push reloc.OLEAUT32.dll_VariantClear
call esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 0
push edi
call esi
push dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x4c]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x14]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [esp + 0x4c]
mov dword [esp + 0x54], 2
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x18]
push eax
call fcn.0041d250
push 0x24
lea ecx, [esp + 0x50]
push ecx
push 0xffffffffffffffff
push dword [eax]
push dword [esp + 0x58]
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405cdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov eax, 1
pop edi
pop esi
mov dword [ecx], 0
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004360ea
mov esp, ebp
pop ebp
ret 0x18