Function at 0x521f50
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0x3e8
ja 0x521fc0
cmp dword [ebp - 0x94], 0x3e8
je 0x5229b2
mov edx, dword [ebp - 0x94]
sub edx, 0x64
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 6
ja case.0x521fb9.1
mov eax, dword [ebp - 0x94]
jmp dword [eax*4 + 0x523014]
cmp dword [ebp - 0x94], 0x3e9
je 0x5229ec
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x2db4]
test edx, edx
je 0x521feb
jmp case.0x521fb9.1
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
cmp dword [ecx + 0x28], 3
je 0x522002
jmp case.0x521fb9.1
mov edx, dword [ebp - 0x90]
movzx eax, byte [edx + 0x159a]
test eax, eax
jne 0x522024
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x16e6]
test edx, edx
je 0x522029
jmp case.0x521fb9.1
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1599]
test ecx, ecx
je 0x52203f
jmp case.0x521fb9.1
lea edx, [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x184c]
jne 0x522070
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x1850]
jne 0x522070
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
add ecx, 0x40
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x1838]
test edx, edx
je case.default.0x52218a
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
movzx edx, byte [ecx + 0x2bc]
test edx, edx
je 0x522109
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov edx, dword [ebp - 0x90]
mov edx, dword [edx + 0x1840]
sub edx, dword [eax + 0x2ac]
mov eax, dword [ecx + 0x14]
sub eax, edx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x522121
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
mov eax, dword [ebp - 0x24]
sub eax, dword [edx + 0x2b4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
movzx eax, byte [edx + 0x2d0]
test eax, eax
je 0x52215f
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
cmp dword [edx + 0x14], 0x30
jl 0x52215f
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1860]
test ecx, ecx
je 0x52215f
mov byte [ebp - 0x1d], 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [eax + 0x288]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 3
ja case.default.0x52218a
mov edx, dword [ebp - 0x98]
jmp dword [edx*4 + 0x523030]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x5221ab
mov edx, dword [ebp - 0x14]
sub edx, 0x28
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x14], edx
jmp case.default.0x52218a
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x5221fa
mov edx, dword [ebp - 0x18]
add edx, 0x28
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x10], edx
jmp case.default.0x52218a
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x522249
mov edx, dword [ebp - 0x18]
add edx, 0x28
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x2b0]
mov dword [ebp - 0x10], edx
jmp case.default.0x52218a
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
movzx edx, byte [ecx + 0x2bc]
test edx, edx
je 0x5222d9
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
cmp dword [edx + 0x28], 3
jne 0x5222d7
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [ecx + 0x24]
sub ecx, dword [eax + 0x2ac]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
jmp 0x5222e2
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edx
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x5222f3
mov ecx, dword [ebp - 0x14]
sub ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x2b0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x2b0]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x522494
mov edx, dword [ebp - 0x90]
movzx eax, byte [edx + 0x1860]
test eax, eax
je 0x52239d
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x16a8], edx
mov eax, dword [ebp - 4]
mov dword [ecx + 0x16ac], eax
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x1860], 0
push 0x64
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.00518630
xor eax, eax
jmp 0x523002
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
cmp dword [edx + 0x288], 1
je 0x5223c7
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
cmp dword [ecx + 0x288], 0
jne 0x5223f2
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x16a8]
cmp eax, dword [ebp - 8]
je 0x5223e9
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x16a8], edx
jmp 0x5223f0
xor eax, eax
jmp 0x523002
jmp 0x52241b
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x16ac]
cmp ecx, dword [ebp - 4]
je 0x522414
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
mov dword [edx + 0x16ac], eax
jmp 0x52241b
xor eax, eax
jmp 0x523002
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.0050f670
mov ecx, dword [ebp - 0x90]
call fcn.00510030
mov ecx, dword [ebp - 0x90]
call fcn.005101f0
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x2db6]
test ecx, ecx
jne 0x522464
mov ecx, dword [ebp - 0x90]
call fcn.0050f570
jmp 0x522480
mov edx, dword [ebp - 0x90]
mov byte [edx + 0x2db6], 0
push 1
push 1
mov ecx, dword [ebp - 0x90]
call fcn.005112b0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ecx + 0x20]
call eax
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
cmp dword [edx + 0x28], 3
je 0x5224b0
jmp case.0x521fb9.1
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1599]
test ecx, ecx
je 0x5224c6
jmp case.0x521fb9.1
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + 0x16a8]
push ecx
call fcn.00460780
add esp, 4
cmp eax, 5
jle 0x522516
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1854]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x90]
add eax, dword [ecx + 0x1854]
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x1854], eax
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x1860], 1
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x1875], 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [eax + 0x288]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 3
ja case.default.0x52255b
mov edx, dword [ebp - 0x9c]
jmp dword [edx*4 + 0x523040]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax + 0x1850]
sub edx, dword [ecx + 0x1854]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x1850], edx
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x1850]
cmp eax, dword [edx + 0x185c]
jg 0x522618
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1858]
mov eax, dword [ecx + 0x185c]
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x184c], edx
mov dword [ecx + 0x1850], eax
push 1
push 1
mov ecx, dword [ebp - 0x90]
call fcn.005112b0
push 0x67
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
push 0
push 0xa
push 0x64
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c510
mov edx, dword [ebp - 0x90]
mov byte [edx + 0x1860], 0
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x1875], 0
xor eax, eax
jmp 0x523002
jmp case.default.0x52255b
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x184c]
sub eax, dword [edx + 0x1854]
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x184c], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x90]
mov ecx, dword [edx + 0x184c]
cmp ecx, dword [eax + 0x1858]
jg case.default.0x52255b
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1858]
mov ecx, dword [edx + 0x185c]
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x184c], eax
mov dword [edx + 0x1850], ecx
push 1
push 1
mov ecx, dword [ebp - 0x90]
call fcn.005112b0
push 0x67
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
push 0
push 0xa
push 0x64
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c510
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x1860], 0
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x1875], 0
xor eax, eax
jmp 0x523002
push 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1850]
push eax
mov ecx, dword [edx + 0x184c]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.005187e0
mov ecx, dword [ebp - 0x90]
call fcn.00510030
mov ecx, dword [ebp - 0x90]
call fcn.005101f0
mov ecx, dword [ebp - 0x90]
call fcn.0050f570
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [eax + 0x20]
call edx
jmp case.0x521fb9.1
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1599]
test ecx, ecx
je 0x522744
jmp case.0x521fb9.1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [eax + 0x288]
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 3
ja case.default.0x52276f
mov edx, dword [ebp - 0xa0]
jmp dword [edx*4 + 0x523050]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1850]
mov edx, dword [ebp - 0x90]
add ecx, dword [edx + 0x1854]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x1850], ecx
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [ecx + 0x1850]
cmp eax, dword [edx + 0x1848]
jl 0x52285c
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1844]
mov eax, dword [ecx + 0x1848]
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x184c], edx
mov dword [ecx + 0x1850], eax
push 0x66
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
push 1
mov ecx, dword [ebp - 0x90]
call fcn.0050f080
mov ecx, dword [ebp - 0x90]
call fcn.0050dc10
push 1
push 1
mov ecx, dword [ebp - 0x90]
call fcn.005112b0
mov edx, dword [ebp - 0x90]
mov byte [edx + 0x1876], 1
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x1860], 1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
movzx eax, byte [edx + 1]
test eax, eax
je 0x522855
push 0
push 0x64
push 0x68
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c510
xor eax, eax
jmp 0x523002
jmp case.default.0x52276f
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x184c]
mov eax, dword [ebp - 0x90]
add edx, dword [eax + 0x1854]
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x184c], edx
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x90]
mov ecx, dword [edx + 0x184c]
cmp ecx, dword [eax + 0x1844]
jl case.default.0x52276f
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1844]
mov ecx, dword [edx + 0x1848]
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x184c], eax
mov dword [edx + 0x1850], ecx
push 0x66
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
push 1
mov ecx, dword [ebp - 0x90]
call fcn.0050f080
mov ecx, dword [ebp - 0x90]
call fcn.0050dc10
push 1
push 1
mov ecx, dword [ebp - 0x90]
call fcn.005112b0
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x1876], 1
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x1860], 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x522940
push 0
push 0x64
push 0x68
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c510
xor eax, eax
jmp 0x523002
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x1870], 0
push 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1850]
push ecx
mov edx, dword [eax + 0x184c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.005187e0
mov ecx, dword [ebp - 0x90]
call fcn.00510030
mov ecx, dword [ebp - 0x90]
call fcn.005101f0
mov ecx, dword [ebp - 0x90]
call fcn.0050f570
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ecx + 0x20]
call eax
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x159b]
test edx, edx
je 0x5229e7
call fcn.00401820
movzx eax, al
test eax, eax
je 0x5229e7
mov ecx, dword [ebp - 0x90]
mov byte [ecx + 0x159b], 0
mov ecx, dword [ebp - 0x90]
call fcn.00518af0
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
call fcn.00518e60
jmp case.0x521fb9.1
mov edx, dword [ebp - 0x90]
movzx eax, byte [edx + 0x16e4]
test eax, eax
je 0x522a24
push 0x68
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
xor eax, eax
jmp 0x523002
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x1876]
test edx, edx
je 0x522a68
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1875]
test ecx, ecx
jne 0x522a68
mov edx, dword [ebp - 0x90]
movzx eax, byte [edx + 0x1599]
test eax, eax
jne 0x522a68
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x1878]
test edx, edx
je 0x522a6f
xor eax, eax
jmp 0x523002
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.004010b0
push 0
mov ecx, dword [ebp - 0x90]
call fcn.00519130
movzx edx, al
test edx, edx
jne 0x522d86
call fcn.00401820
movzx eax, al
test eax, eax
je 0x522d86
mov ecx, dword [ebp - 0x90]
add ecx, 0x167c
call fcn.0041d3c0
movzx ecx, al
test ecx, ecx
jne 0x522d86
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x50], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [eax + 0x2b8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x522b1a
xor eax, eax
jmp 0x523002
push 0x5a1204
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x522b37
xor eax, eax
jmp 0x523002
mov ecx, dword [ebp - 0x90]
add ecx, 0x167c
call fcn.0041d400
mov dword [ebp - 0x4c], eax
push 2
lea edx, [ebp - 0x6c]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ecx + 0x288]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 3
ja case.default.0x522b9e
mov ecx, dword [ebp - 0xa4]
jmp dword [ecx*4 + 0x523060]
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x4c], 1
jne 0x522bdc
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x90]
mov ecx, dword [edx + 0x1818]
add eax, dword [ecx + 0x2b8]
add eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
sub eax, edx
mov dword [ebp - 0x70], eax
jmp 0x522bf9
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
add eax, dword [edx + 0x2b8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp - 0x70]
jg 0x522c31
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 0x44]
jge 0x522c38
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ecx + 0x40]
jle 0x522c38
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax + 0x48]
jge 0x522c38
xor eax, eax
jmp 0x523002
jmp case.default.0x522b9e
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x4c], edx
jge 0x522c65
push 0x68
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
xor eax, eax
jmp 0x523002
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp - 0x44]
jge 0x522c96
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [ebp - 0x44]
jl 0x522c96
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 0x4c]
jle 0x522c96
xor eax, eax
jmp 0x523002
jmp case.default.0x522b9e
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x4c], 0
jne 0x522cb8
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x50]
sub edx, ecx
mov dword [ebp - 0x74], edx
jmp 0x522cc3
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x40]
cmp ecx, dword [ebp - 0x74]
jle 0x522cd8
xor eax, eax
jmp 0x523002
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edx + 0x40]
jge 0x522d09
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x40]
cmp edx, dword [ecx + 0x44]
jle 0x522d09
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 0x4c]
jge 0x522d09
xor eax, eax
jmp 0x523002
jmp case.default.0x522b9e
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x4c], 2
jne 0x522d23
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x6c]
mov dword [ebp - 0x78], edx
jmp 0x522d33
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x50]
sub ecx, eax
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x48]
cmp eax, dword [ebp - 0x78]
jge 0x522d48
xor eax, eax
jmp 0x523002
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x48]
cmp edx, dword [ebp - 0x44]
jge case.default.0x522b9e
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 0x44]
jle case.default.0x522b9e
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 0x4c]
jge case.default.0x522b9e
xor eax, eax
jmp 0x523002
push 1
mov ecx, dword [ebp - 0x90]
call fcn.0051a830
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x16e4]
test edx, edx
jne 0x522da3
xor eax, eax
jmp 0x523002
mov eax, dword [ebp - 0x90]
movzx ecx, byte [eax + 0x1877]
test ecx, ecx
je 0x522dbb
xor eax, eax
jmp 0x523002
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
movzx ecx, byte [eax + 0x2e]
test ecx, ecx
je 0x522dd6
xor eax, eax
jmp 0x523002
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov byte [ebp - 0x79], 0
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x80], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x1818]
mov edx, dword [ecx + 0x288]
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 3
ja case.default.0x522e2b
mov eax, dword [ebp - 0xa8]
jmp dword [eax*4 + 0x523070]
cmp dword [ebp - 0x84], 0
jg 0x522e61
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp - 0x88]
jg 0x522e61
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [eax + 0x48]
jg 0x522e61
mov byte [ebp - 0x79], 1
jmp case.default.0x522e2b
cmp dword [ebp - 0x88], 0
jg 0x522e95
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x44]
cmp eax, dword [ebp - 0x84]
jg 0x522e95
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x84]
cmp edx, dword [ecx + 0x4c]
jg 0x522e95
mov byte [ebp - 0x79], 1
jmp case.default.0x522e2b
mov eax, dword [ebp - 0x80]
sub eax, 1
cmp dword [ebp - 0x88], eax
jl 0x522ecb
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x44]
cmp edx, dword [ebp - 0x84]
jg 0x522ecb
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [eax + 0x4c]
jg 0x522ecb
mov byte [ebp - 0x79], 1
jmp case.default.0x522e2b
mov edx, dword [ebp - 0x8c]
sub edx, 2
cmp dword [ebp - 0x84], edx
jl case.default.0x522e2b
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x40]
cmp ecx, dword [ebp - 0x88]
jg case.default.0x522e2b
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
cmp eax, dword [edx + 0x48]
jg case.default.0x522e2b
mov byte [ebp - 0x79], 1
movzx ecx, byte [ebp - 0x79]
test ecx, ecx
je 0x522f87
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1818]
movzx ecx, byte [eax + 0xd84]
test ecx, ecx
je 0x522f3e
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x167c
call fcn.0041d610
push 1
mov ecx, dword [ebp - 0x90]
call fcn.0051ad50
push 0x69
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c540
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x1818]
movzx eax, byte [edx + 1]
test eax, eax
je 0x522f83
push 0
push 0x64
push 0x68
mov ecx, dword [ebp - 0x90]
add ecx, 4
call fcn.0042c510
xor eax, eax
jmp 0x523002
jmp case.0x521fb9.1
mov ecx, dword [ebp - 0x90]
cmp dword [ecx + 0x2db8], 0
jne 0x522f9a
jmp case.0x521fb9.1
mov edx, dword [ebp - 0x90]
movzx eax, byte [edx + 0x1875]
test eax, eax
jne 0x522fbc
mov ecx, dword [ebp - 0x90]
movzx edx, byte [ecx + 0x1860]
test edx, edx
je 0x522fbe
jmp case.0x521fb9.1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x90]
sub eax, dword [ecx + 0x2db8]
cmp eax, 0x1e
jae 0x522fd7
jmp case.0x521fb9.1
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x2db8], 0
push 0
push 0
push 0x838
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 0x10