Function at 0x1006fee0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20dc
call fcn.100ae320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x20a0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20bc], edi
mov dword [ebp - 0x20a4], ecx
mov dword [ebp - 0x2098], esi
mov dword [ebp - 0x209c], eax
test ecx, ecx
je 0x1006ff48
cmp byte [edi + 0x25c], 0
jne 0x1006ff48
mov eax, dword [0x100eeff4]
mov byte [edi + 0x25c], 1
test eax, eax
je 0x1006ff48
push 2
push ecx
call eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp ebx, 0x100
je 0x1006ff71
cmp ebx, 0x104
je 0x1006ff71
cmp ebx, 0x101
je 0x1006ff71
cmp ebx, 0x105
jne 0x1006ffb9
cmp dword [edi + 0x124], 0
je 0x1006ffb9
mov edx, dword [ebp + 0x10]
lea eax, [edx - 1]
cmp eax, 0xfe
ja 0x1006ffb9
cmp edx, 0xe5
je 0x1006ff93
mov al, dl
jmp 0x1006ffa8
mov eax, esi
sar eax, 0x10
push 1
and eax, 0xff
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp al, byte [edi + 0x128]
jne 0x1006ffb9
mov eax, dword [ebp - 0x20a0]
mov byte [eax], 1
xor al, al
mov byte [ebp - 0x2091], 0
mov byte [ebp - 0x20b1], 0
mov dword [ebp - 0x20a8], eax
mov byte [ebp - 0x2092], al
cmp ebx, 0x100
je 0x1006fff5
cmp ebx, 0x104
je 0x1006fff5
cmp ebx, 0x101
je 0x1006fff5
cmp ebx, 0x105
jne 0x10070051
mov edx, dword [ebp + 0x10]
lea eax, [edx - 1]
cmp eax, 0xfe
ja 0x1007004b
cmp edx, 0xe5
je 0x1007000e
mov al, dl
jmp 0x1007001d
mov eax, esi
sar eax, 0x10
push 1
and eax, 0xff
push eax
call ecx
mov byte [ebp - 0x2092], al
mov dword [ebp - 0x20a8], eax
cmp ebx, 0x100
je 0x10070042
cmp ebx, 0x104
je 0x10070042
mov byte [ebp - 0x2091], 0
jmp 0x10070051
mov byte [ebp - 0x2091], 1
jmp 0x10070051
mov eax, dword [ebp - 0x20a8]
cmp ebx, 0x201
je 0x10070128
cmp ebx, 0x202
je 0x10070128
cmp ebx, 0x204
je 0x1007011e
cmp ebx, 0x205
je 0x1007011e
cmp ebx, 0x207
je 0x10070114
cmp ebx, 0x208
je 0x10070114
cmp ebx, 0x20b
jne 0x100700e1
mov ecx, dword [ebp + 0x10]
test cl, 0x20
je 0x100700bd
mov al, 5
mov dl, 1
mov byte [ebp - 0x2092], al
mov dword [ebp - 0x20a8], eax
mov byte [ebp - 0x2091], dl
jmp 0x1007010e
test cl, 0x40
movzx eax, al
mov ecx, 6
mov dl, 1
cmovne eax, ecx
mov byte [ebp - 0x2091], dl
mov byte [ebp - 0x2092], al
mov dword [ebp - 0x20a8], eax
jmp 0x1007010e
cmp ebx, 0x20c
jne 0x10070108
cmp byte [edi + 0xd], 0
sete al
add al, 5
xor dl, dl
mov dword [ebp - 0x20a8], eax
mov byte [ebp - 0x2092], al
mov byte [ebp - 0x2091], dl
jmp 0x1007010e
mov dl, byte [ebp - 0x2091]
test al, al
je 0x1007015d
jmp 0x10070145
mov al, 4
cmp ebx, 0x207
jmp 0x10070130
mov al, 2
cmp ebx, 0x204
jmp 0x10070130
mov al, 1
cmp ebx, 0x201
sete dl
mov dword [ebp - 0x20a8], eax
mov byte [ebp - 0x2092], al
mov byte [ebp - 0x2091], dl
movzx ecx, al
cmp byte [ecx + edi + 8], 0
setne byte [ebp - 0x20b1]
test dl, dl
setne al
mov byte [ecx + edi + 8], al
cmp ebx, 0x113
jne 0x1007017d
cmp dword [ebp + 0x10], 0x80
jne 0x10070182
mov ecx, dword [0x100f08a0]
inc ecx
mov dword [0x100f08a0], ecx
jmp 0x10070188
cmp ebx, 7
je 0x1007019c
mov ecx, dword [0x100f08a0]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
lea eax, [edx + edx*4]
shl eax, 2
sub ecx, eax
jne 0x100701cd
xor esi, esi
mov ebx, 0x8000
cmp byte [edi + esi + 8], 0
je 0x100701bb
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x100701bb
mov byte [edi + esi + 8], 0
inc esi
cmp esi, 0x100
jl 0x100701a3
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x2098]
cmp ebx, 0x201
je 0x10070750
cmp ebx, 0x202
je 0x10070750
cmp ebx, 0x204
je 0x10070750
cmp ebx, 0x205
je 0x10070750
cmp ebx, 0x200
je 0x10070750
cmp ebx, 0x20a
je 0x10070750
cmp ebx, 0x2a3
je 0x10070750
cmp ebx, 0x410
jne 0x1007023d
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x180], eax
mov dword [edi + 0x184], esi
jmp case.0x100708a5.515
cmp ebx, 0x240
jne 0x100705ad
cmp dword [0x100eeffc], 0
je case.0x100708a5.515
cmp dword [0x100eeff8], 0
je case.0x100708a5.515
mov eax, dword [ebp + 0x10]
xor ecx, ecx
movzx eax, ax
mov edx, 0x28
mov dword [ebp - 0x2098], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ad5d6
add esp, 4
mov dword [ebp - 0x20a0], eax
test eax, eax
je case.0x100708a5.515
push 0x28
push eax
push dword [ebp - 0x2098]
push esi
call dword [0x100eeffc]
test eax, eax
je 0x10070599
push esi
call dword [0x100eeff8]
mov esi, dword [ebp - 0x20a4]
lea eax, [ebp - 0x2038]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp - 0x2098], 0
jbe 0x10070599
mov ebx, dword [ebp - 0x20a0]
add ebx, 0x10
nop
mov eax, 0x51eb851f
imul dword [ebx - 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x20b0], eax
mov eax, 0x51eb851f
imul dword [ebx - 0xc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x20ac], eax
lea eax, [ebp - 0x20b0]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x20ac]
lea ecx, [ebp - 0x2020]
mov esi, dword [ebp - 0x20b0]
push ecx
lea ecx, [ebp - 0x2038]
mov dword [ebp - 0x2020], esi
push ecx
mov ecx, dword [edi + 0x260]
mov dword [ebp - 0x201c], eax
call fcn.1001ff10
mov edx, dword [ebx]
mov ecx, edx
and ecx, 0x10
jne 0x10070368
mov eax, dword [ebx - 4]
add eax, 0x42d
mov dword [ebp - 0x2018], eax
jmp 0x10070372
mov dword [ebp - 0x2018], 1
mov eax, dword [ebp - 0x2020]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
test dl, 3
jne 0x100704a5
test dl, 4
je 0x10070496
mov dword [ebp - 0x200c], 0
test ecx, ecx
je 0x1007056f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x20b8], eax
call esi
mov esi, eax
mov eax, 0x88888889
imul esi
mov eax, dword [edi + 0x114]
add edx, esi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp eax, ecx
jge 0x1007056f
mov ecx, dword [ebp - 0x20ac]
sub ecx, eax
mov eax, 0x88888889
imul esi
mov dword [ebp - 0x20c0], ecx
add edx, esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jle 0x1007056f
mov eax, dword [ebp - 0x20b0]
sub eax, dword [edi + 0x110]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x20c0]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jge 0x1007056f
mov eax, dword [ebp - 0x2030]
sub eax, dword [ebp - 0x2038]
cmp eax, dword [ebp - 0x20b8]
jge 0x1007045c
mov eax, dword [ebp - 0x202c]
sub eax, dword [ebp - 0x2034]
cmp eax, esi
jl 0x1007056f
mov byte [edi + 0x118], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [edi + 0x260]
add ecx, 0xf34
mov dword [edi + 0x11c], eax
call fcn.1003ee80
mov ecx, dword [edi + 0x260]
add ecx, 0xf34
call fcn.1003d3e0
jmp 0x1007056f
mov dword [ebp - 0x200c], 1
jmp 0x1007056f
mov dword [ebp - 0x200c], 1
test ecx, ecx
je 0x100704c3
cmp byte [edi + 0x108], 0
je 0x100704c3
mov byte [edi + 0x108], 0
mov eax, dword [ebx]
test al, 0x10
je 0x1007056f
test al, 2
je 0x1007056f
cmp byte [edi + 0x118], 0
je 0x1007055d
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x2048]
push eax
add ecx, 0xf34
call fcn.1003f090
push dword [ebp - 0x20ac]
lea eax, [ebp - 0x2048]
push dword [ebp - 0x20b0]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x10070524
mov eax, dword [edi + 0x260]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0xc8]
mov eax, dword [edi + 0x260]
mov ecx, 1
mov byte [edi + 0x118], 0
mov byte [eax + 0xfc4], 0
add eax, 0xfd8
lock xadd dword [eax], ecx
mov ecx, dword [edi + 0x260]
add ecx, 0xf34
call fcn.1003d3e0
mov esi, dword [ebp - 0x20b0]
mov eax, dword [ebp - 0x20ac]
mov dword [edi + 0x110], esi
mov dword [edi + 0x114], eax
mov ecx, dword [ebp - 0x209c]
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
mov esi, dword [ebp - 0x20a4]
add ebx, 0x28
dec dword [ebp - 0x2098]
jne 0x100702e0
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x20a0]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp case.0x100708a5.515
cmp ebx, 5
jne 0x100705cf
cmp byte [edi + 0x10b], 0
je case.0x100708a5.515
mov ecx, dword [ebp - 0x20a4]
call fcn.10072e90
jmp case.0x100708a5.515
cmp ebx, 0xff
jne 0x10070732
mov eax, dword [edi + 0x260]
cmp byte [eax + 0xf2d], 0
je case.0x100708a5.515
cmp byte [edi + 0x10b], 0
je 0x10070600
cmp byte [edi + 0x25d], 0
jne 0x1007060d
cmp byte [edi + 0x1c8], 0
je case.0x100708a5.515
push 0x10
lea eax, [ebp - 0x20a0]
mov dword [ebp - 0x20a0], 0
push eax
push 0
push 0x10000003
push esi
call dword [sym.imp.USER32.dll_GetRawInputData]
push 0x1fff
lea eax, [ebp - 0x2007]
mov byte [ebp - 0x2008], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebp - 0x20a0], 0x2000
ja case.0x100708a5.515
push 0x10
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x10000003
push esi
call dword [sym.imp.USER32.dll_GetRawInputData]
test eax, eax
je case.0x100708a5.515
cmp dword [ebp - 0x2008], 0
jne case.0x100708a5.515
test byte [ebp - 0x1ff8], 1
jne case.0x100708a5.515
cmp byte [edi + 0x1c8], 0
je 0x100706ef
movd xmm0, dword [ebp - 0x1fec]
movsd xmm1, qword [edi + 0x1d8]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, qword [edi + 0x1e0]
movsd qword [edi + 0x1e0], xmm0
movd xmm0, dword [ebp - 0x1fe8]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, qword [edi + 0x1e8]
movsd qword [edi + 0x1e8], xmm0
jmp case.0x100708a5.515
mov ecx, dword [edi + 0x260]
add ecx, 0x18
call fcn.100614f0
test al, al
jne case.0x100708a5.515
mov ecx, dword [ebp - 0x1fec]
mov eax, dword [ebp - 0x1fe8]
test ecx, ecx
jne 0x1007071d
test eax, eax
je case.0x100708a5.515
mov esi, dword [ebp - 0x209c]
push eax
push ecx
push esi
mov ecx, edi
call fcn.10072440
jmp case.0x100708a5.515
cmp ebx, 0x413
jne case.0x100708a5.515
push dword [ebp - 0x209c]
mov ecx, edi
call fcn.100722f0
jmp case.0x100708a5.515
lea eax, [ebp - 0x2038]
push eax
push dword [ebp - 0x20a4]
call dword [sym.imp.USER32.dll_GetClientRect]
movsx eax, si
shr esi, 0x10
movsx ecx, si
mov dword [ebp - 0x20b8], eax
mov dword [ebp - 0x20b0], eax
mov dword [ebp - 0x20c0], ecx
mov dword [ebp - 0x20ac], ecx
cmp ebx, 0x20a
jne 0x100707ab
lea eax, [ebp - 0x20b0]
push eax
push dword [ebp - 0x20a4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x20b0]
mov ecx, dword [ebp - 0x20ac]
mov edx, dword [edi + 0x260]
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], ecx
mov esi, dword [edx + 0xeb0]
test esi, esi
je 0x1007080f
cmp esi, 0xb4
je 0x1007080f
movd xmm1, dword [edx + 0x14]
movd xmm0, eax
mov eax, dword [ebp - 0x2030]
sub eax, dword [ebp - 0x2038]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
addsd xmm1, qword [0x100d0f30]
cvttsd2si esi, xmm1
movd xmm1, dword [edx + 0x10]
jmp 0x1007084d
movd xmm1, dword [edx + 0x10]
movd xmm0, eax
mov eax, dword [ebp - 0x2030]
sub eax, dword [ebp - 0x2038]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
addsd xmm1, qword [0x100d0f30]
cvttsd2si esi, xmm1
movd xmm1, dword [edx + 0x14]
mov eax, dword [ebp - 0x202c]
sub eax, dword [ebp - 0x2034]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x20a0], esi
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, eax
lea eax, [ebx - 0x200]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
addsd xmm1, qword [0x100d0f30]
cvttsd2si ecx, xmm1
mov dword [ebp - 0x2098], ecx
cmp eax, 0xa3
ja case.0x100708a5.515
movzx eax, byte [eax + 0x10071bd4]
jmp dword [eax*4 + 0x10071bb4]
inc dword [edi + 0x1c4]
cmp byte [edi + 0x10b], 0
je 0x10070acd
mov eax, dword [edi + 0x120]
test eax, eax
je case.0x100708a5.515
cmp byte [edi + 0x152], 0
mov esi, dword [ebp - 0x209c]
mov byte [edi + 0x168], 1
movd xmm0, dword [eax]
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x158], xmm0
movd xmm0, dword [eax + 4]
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x160], xmm0
jne 0x10070945
movzx eax, byte [edi + 0x128]
mov ecx, esi
mov dword [ebp - 0x2018], eax
cvttsd2si eax, qword [edi + 0x170]
mov dword [ebp - 0x200c], 1
mov dword [ebp - 0x2014], eax
cvttsd2si eax, qword [edi + 0x178]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
mov ecx, dword [edi + 0x120]
push 2
mov dword [ebp - 0x2028], 1
mov dword [ebp - 0x201c], 1
mov eax, dword [ecx]
mov dword [ebp - 0x2024], eax
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 0x260]
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2080]
push eax
call fcn.10020260
push eax
mov ecx, esi
call fcn.10031b50
cmp byte [edi + 0x152], 0
je case.0x100708a5.515
cmp byte [edi + 0x153], 0
je case.0x100708a5.515
movzx eax, byte [edi + 0x128]
mov ecx, esi
mov dword [ebp - 0x2028], eax
cvttsd2si eax, qword [edi + 0x170]
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2024], eax
cvttsd2si eax, qword [edi + 0x178]
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x2028]
push eax
call fcn.10031b50
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov esi, 5
mov eax, esi
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x170], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov eax, esi
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax + 4]
mov eax, dword [edi + 0x1bc]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x178], xmm0
test eax, eax
je case.0x100708a5.515
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [edi + 0x1bc], 0
jmp case.0x100708a5.515
cmp byte [edi + 0x10f], 0
jne case.0x100708a5.515
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, eax
and ecx, 0xffffff00
cmp ecx, 0xff515700
jne 0x10070af8
test al, al
js case.0x100708a5.515
push dword [ebp - 0x20a4]
mov byte [edi + 0x108], 1
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [ebp - 0x2018], 1
mov dword [ebp - 0x200c], 1
mov dword [ebp - 0x2014], esi
mov eax, dword [ebp - 0x2098]
mov ecx, dword [ebp - 0x209c]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
jmp case.0x100708a5.515
inc dword [edi + 0x1c4]
cmp byte [edi + 0x108], 0
je 0x10070b94
mov dword [ebp - 0x2014], esi
lea eax, [ebp - 0x2018]
mov esi, dword [ebp - 0x209c]
mov dword [ebp - 0x2010], ecx
mov ecx, esi
push eax
mov byte [edi + 0x108], 0
mov dword [ebp - 0x2018], 1
mov dword [ebp - 0x200c], 0
call fcn.10031b50
jmp 0x10070b9a
mov esi, dword [ebp - 0x209c]
cmp byte [edi + 0x168], 0
je 0x10070bf8
mov ecx, dword [edi + 0x120]
mov byte [edi + 0x168], 0
push 2
mov dword [ebp - 0x2018], 1
mov eax, dword [ecx]
mov dword [ebp - 0x2014], eax
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 0x260]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2090]
mov dword [ebp - 0x200c], 0
push eax
call fcn.10020260
push eax
mov ecx, esi
call fcn.10031b50
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x20a4]
jne case.0x100708a5.515
cmp byte [edi + 0x109], 0
jne case.0x100708a5.515
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp case.0x100708a5.515
cmp byte [edi + 0x10a], 0
jne case.0x100708a5.515
sub esp, 8
mov ecx, edx
call fcn.10020600
test al, al
jne case.0x100708a5.515
push dword [ebp - 0x20a4]
mov byte [edi + 0x109], 1
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0x2098]
mov ecx, dword [ebp - 0x209c]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x2018], 2
mov dword [ebp - 0x200c], 1
mov dword [ebp - 0x2014], esi
call fcn.10031b50
jmp case.0x100708a5.515
cmp byte [edi + 0x109], 0
je case.0x100708a5.515
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2010], ecx
mov ecx, dword [ebp - 0x209c]
push eax
mov byte [edi + 0x109], 0
mov dword [ebp - 0x2018], 2
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2014], esi
call fcn.10031b50
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x20a4]
jne case.0x100708a5.515
cmp byte [edi + 0x108], 0
jne case.0x100708a5.515
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp case.0x100708a5.515
cmp byte [edi + 0x10b], 0
je 0x10070f05
cmp byte [edi + 0x1c8], 0
jne 0x10070eee
lea ecx, [edx + 0x18]
call fcn.100614f0
test al, al
jne 0x10070eee
mov eax, dword [edi + 0x260]
cmp byte [eax + 0xf2d], 0
jne 0x10070d5d
mov eax, dword [ebp - 0x2098]
mov ecx, edi
sub eax, dword [edi + 0x184]
push eax
mov eax, esi
sub eax, dword [edi + 0x180]
push eax
push dword [ebp - 0x209c]
call fcn.10072440
mov eax, 0x88888889
imul dword [0x100f089c]
add edx, dword [0x100f089c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [0x100f089c]
shl ecx, 2
sub eax, ecx
jne 0x10070e13
push 2
push dword [ebp - 0x20a4]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xorps xmm0, xmm0
lea ecx, [ebp - 0x2070]
push ecx
movdqu xmmword [ebp - 0x2070], xmm0
push eax
movdqu xmmword [ebp - 0x2060], xmm0
mov dword [ebp - 0x2070], 0x28
movq qword [ebp - 0x2050], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x10070e13
push 0x100f0888
push dword [ebp - 0x20a4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x2054]
mov edx, dword [ebp - 0x2050]
mov dword [0x100f08ac], 0
mov dword [0x100f08a8], 0
mov dword [0x100f08b0], ecx
mov dword [0x100f08b4], edx
jmp 0x10070e1f
mov ecx, dword [0x100f08b0]
mov edx, dword [0x100f08b4]
movdqu xmm0, xmmword [ebp - 0x2038]
inc dword [0x100f089c]
cmp dword [0x100f0888], 0
movdqu xmmword [ebp - 0x2018], xmm0
jge 0x10070e50
mov eax, dword [ebp - 0x2038]
sub eax, dword [0x100f0888]
mov dword [ebp - 0x2018], eax
mov eax, dword [0x100f088c]
test eax, eax
jns 0x10070e5f
sub dword [ebp - 0x2014], eax
mov eax, dword [0x100f0890]
cmp eax, ecx
jle 0x10070e70
sub ecx, eax
add dword [ebp - 0x2010], ecx
mov eax, dword [0x100f0894]
cmp eax, edx
jle 0x10070e81
sub edx, eax
add dword [ebp - 0x200c], edx
push 0xffffffffffffffce
push 0xffffffffffffffce
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push dword [ebp - 0x20ac]
lea eax, [ebp - 0x2018]
push dword [ebp - 0x20b0]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x10070eee
lea eax, [ebp - 0x2020]
mov ecx, edi
push eax
call fcn.1006f0e0
push dword [ebp - 0x201c]
push dword [ebp - 0x2020]
push 0x410
push dword [ebp - 0x20a4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x2020]
mov ecx, edi
push eax
push dword [ebp - 0x20a4]
call fcn.1006f010
mov eax, dword [ebp - 0x2098]
mov dword [edi + 0x180], esi
mov dword [edi + 0x184], eax
jmp case.0x100708a5.515
cmp byte [edi + 0x108], 0
je 0x10070f40
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2010], ecx
mov ecx, dword [ebp - 0x209c]
push eax
mov dword [ebp - 0x2018], 1
mov dword [ebp - 0x200c], 1
mov dword [ebp - 0x2014], esi
call fcn.10031b50
cmp byte [edi + 0x109], 0
je 0x10070f81
mov eax, dword [ebp - 0x2098]
mov ecx, dword [ebp - 0x209c]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x2018], 2
mov dword [ebp - 0x200c], 1
mov dword [ebp - 0x2014], esi
call fcn.10031b50
cmp byte [edi + 0x10c], 0
je case.0x100708a5.515
mov eax, dword [ebp - 0x2098]
mov ecx, dword [ebp - 0x209c]
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x2028]
push eax
mov dword [ebp - 0x2028], 0
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2024], esi
call fcn.10031b50
cmp byte [edi + 0x10d], 0
je 0x10070feb
push 0
mov byte [edi + 0x10d], 0
call dword [sym.imp.USER32.dll_ShowCursor]
cmp eax, 0xffffffff
je 0x10070feb
push eax
mov ecx, edi
call fcn.10071ea0
mov eax, dword [ebp - 0x20a4]
xorps xmm0, xmm0
movq qword [ebp - 0x2014], xmm0
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x2018], 0x10
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2014], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp case.0x100708a5.515
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movsx ecx, ax
mov eax, 0x88888889
imul ecx
mov eax, 0xfffffffd
add edx, ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, eax
cmovl esi, eax
mov eax, 3
cmp esi, eax
cmovg esi, eax
test byte [ebp + 0x10], 8
mov dword [ebp - 0x20a4], esi
je 0x100710fc
test esi, esi
je case.0x100708a5.515
setg al
cmp byte [edi + 0x21c], 0
mov byte [ebp - 0x20a4], al
jne 0x100710c7
push dword [ebp - 0x2098]
mov eax, dword [ebp - 0x20a0]
mov ecx, edi
push eax
lea eax, [edi + 0x22c]
mov byte [edi + 0x21c], 1
push eax
lea eax, [edi + 0x224]
mov dword [edi + 0x220], 0
push eax
push dword [ebp - 0x20a4]
call fcn.1006f150
jmp 0x100710d9
cmp al, byte [edi + 0x21d]
je 0x100710d9
mov dword [edi + 0x220], 0
mov eax, esi
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + eax*4]
add eax, eax
add dword [edi + 0x220], eax
mov al, byte [ebp - 0x20a4]
mov byte [edi + 0x21d], al
jmp case.0x100708a5.515
push dword [ebp - 0x20ac]
lea eax, [ebp - 0x2038]
push dword [ebp - 0x20b0]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je case.0x100708a5.515
cmp byte [edi + 0x10c], 0
je 0x10071157
test esi, esi
je 0x10071157
xor eax, eax
mov dword [ebp - 0x200c], 0
test esi, esi
setg al
add eax, 0x414
mov dword [ebp - 0x2018], eax
mov eax, dword [ebp - 0x20a0]
mov dword [ebp - 0x2014], eax
jmp 0x10070b25
cmp dword [edi + 0x244], 0
jne 0x10071197
mov eax, dword [ebp - 0x20a0]
mov dword [edi + 0x234], eax
mov eax, dword [ebp - 0x2098]
mov dword [edi + 0x238], eax
mov eax, dword [ebp - 0x20b8]
mov dword [edi + 0x23c], eax
mov eax, dword [ebp - 0x20c0]
mov dword [edi + 0x240], eax
mov byte [edi + 0x248], 1
mov ecx, dword [edi + 0x260]
lea eax, [ebp - 0x20d0]
push eax
call fcn.10012dd0
mov ecx, dword [edi + 0x260]
lea esi, [eax + 4]
lea eax, [ebp - 0x20c8]
push eax
call fcn.10012dd0
mov ecx, dword [edi + 0x260]
mov eax, dword [eax]
cmp eax, dword [esi]
jle 0x100711da
lea eax, [ebp - 0x20d8]
push eax
call fcn.10012dd0
mov eax, dword [eax]
jmp 0x100711e9
lea eax, [ebp - 0x2040]
push eax
call fcn.10012dd0
mov eax, dword [eax + 4]
imul ecx, eax, 0x8c
mov eax, 0x51eb851f
imul ecx
mov eax, 0x66666667
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, dword [ebp - 0x20a4]
add ecx, dword [edi + 0x244]
imul ecx
mov dword [edi + 0x244], ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x254], eax
jne 0x10071240
xor eax, eax
test ecx, ecx
setg al
lea eax, [eax*2 - 1]
mov dword [edi + 0x254], eax
mov ecx, edi
mov dword [edi + 0x258], 0xf
call fcn.10073bf0
test al, al
jne 0x10071260
mov ecx, edi
call fcn.10073c50
test al, al
je case.0x100708a5.515
mov dword [edi + 0x258], 3
jmp case.0x100708a5.515
mov esi, dword [sym.imp.USER32.dll_ShowCursor]
push 1
call esi
test eax, eax
je 0x1007129a
jle 0x10071285
push 0
call esi
cmp eax, 0xffffffff
jmp 0x10071290
cmp eax, 0xffffffff
jge 0x1007129a
push 1
call esi
test eax, eax
je 0x1007129a
push eax
mov ecx, edi
call fcn.10071ea0
mov byte [edi + 0x10d], 1
cmp dword [edi + 0x124], 0
je 0x10071510
mov edx, dword [ebp - 0x20a8]
xor al, al
mov dword [ebp - 0x2098], eax
test dl, dl
je 0x100714c7
mov al, byte [edi + 0x128]
cmp dl, al
jne 0x10071357
cmp byte [ebp - 0x2091], 0
jne 0x10071313
mov ecx, dword [edi + 0x260]
movzx esi, al
push esi
call fcn.10055ee0
test al, al
jne 0x10071313
mov ecx, dword [edi + 0x260]
push esi
call fcn.10055f40
mov ecx, dword [ebp - 0x2098]
test al, al
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x2098], ecx
mov esi, dword [edi + 0x260]
mov eax, dword [esi + 0xf94]
test eax, eax
je 0x10071357
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [esi + 0xf94]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0xf94], 0
lea eax, [esi + 0xfd8]
mov ecx, 1
lock xadd dword [eax], ecx
cmp byte [edi + 0x1f8], 0
je 0x1007139d
lea eax, [ebp - 0x2092]
push eax
lea eax, [ebp - 0x20bc]
lea ecx, [edi + 0x1fc]
push eax
call fcn.10025030
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov eax, dword [eax]
cmp eax, dword [edi + 0x1fc]
je 0x100714cd
call esi
sub eax, 0xffffff80
mov dword [edi + 0x204], eax
jmp 0x100714cd
mov eax, dword [edi + 0x1fc]
mov edx, eax
mov esi, eax
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x20a8]
cmp byte [ecx + 0xd], 0
jne 0x100713ca
cmp byte [ecx + 0xe], dl
jae 0x100713c0
mov ecx, dword [ecx + 8]
jmp 0x100713c4
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100713b6
mov ecx, dword [edi + 0x1fc]
cmp esi, ecx
je 0x100713df
mov dword [ebp - 0x20b8], esi
cmp dl, byte [esi + 0xe]
jae 0x100713e5
mov dword [ebp - 0x20b8], ecx
lea ecx, [ebp - 0x20b8]
cmp dword [ecx], eax
je 0x100714c7
cmp byte [ebp - 0x2091], 0
je 0x100714a4
movdqa xmm0, xmmword [0x100d12b0]
xor al, al
xor esi, esi
movzx edx, dl
mov dword [ebp - 0x20a0], eax
mov edi, 0x8000
movdqu xmmword [ebp - 0x2018], xmm0
mov dword [ebp - 0x20b8], edx
lea ebx, [esi + 1]
jmp 0x10071430
mov ecx, dword [ebp + esi*4 - 0x2018]
cmp ecx, edx
je 0x1007145d
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp - 0x20b8]
test di, ax
mov eax, dword [ebp - 0x20a0]
movzx eax, al
cmovne eax, ebx
mov dword [ebp - 0x20a0], eax
inc esi
cmp esi, 4
jb 0x10071430
cmp byte [ebp - 0x20b1], 0
mov edi, dword [ebp - 0x20bc]
mov ebx, dword [ebp + 0xc]
jne 0x100714c7
test al, al
jne 0x100714c7
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
cmp byte [edi + 0x10b], al
je 0x1007149b
mov al, 1
mov dword [edi + 0x204], 0
mov dword [ebp - 0x2098], eax
jmp 0x100714cd
mov byte [0x100f0898], 1
jmp 0x100714cd
cmp byte [0x100f0898], 0
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
je 0x100714cd
mov byte [0x100f0898], 0
call esi
add eax, 0x60
mov dword [edi + 0x204], eax
jmp 0x100714cd
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [edi + 0x204], 0
je 0x100714ee
call esi
cmp dword [edi + 0x204], eax
ja 0x100714ee
mov dword [edi + 0x204], 0
mov al, 1
jmp 0x100714f4
mov eax, dword [ebp - 0x2098]
cmp ebx, 0x412
je 0x10071500
test al, al
je 0x10071510
mov esi, dword [ebp - 0x209c]
mov ecx, edi
push esi
call fcn.10071ed0
jmp 0x10071516
mov esi, dword [ebp - 0x209c]
mov eax, dword [ebp - 0x20a8]
test al, al
je 0x1007154b
cmp dword [edi + 0x124], 0
je 0x1007154b
cmp al, byte [edi + 0x208]
jne 0x1007154b
cmp byte [ebp - 0x2091], 0
jne 0x1007154b
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, 0x1f4
mov dword [edi + 0x20c], eax
cmp ebx, 0x113
jne 0x10071b05
cmp dword [ebp + 0x10], 0x80
jne 0x10071b05
cmp byte [edi + 0x10b], 0
je 0x100717cf
cmp byte [edi + 0x1b8], 0
je 0x100717cf
mov ecx, dword [edi + 0x1bc]
test ecx, ecx
je 0x10071ad1
mov eax, dword [edi + 0x1c0]
cmp eax, dword [edi + 0x1c4]
jne 0x10071acb
cmp byte [edi + 0x168], 0
jne 0x10071acb
cmp byte [edi + 0x108], 0
jne 0x10071acb
cvttsd2si edx, qword [edi + 0x170]
mov eax, dword [edi + 0x124]
mov ecx, dword [ecx]
mov eax, dword [eax]
sub ecx, eax
mov dword [ebp - 0x20a0], ecx
mov dword [ebp - 0x2098], edx
sub edx, eax
mov eax, ecx
mov dword [ebp - 0x20bc], edx
imul eax, edx
test eax, eax
jle 0x10071a85
mov eax, edx
cdq
mov ecx, eax
mov eax, dword [ebp - 0x20a0]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
sub eax, ecx
cmp eax, 0x1e
jle 0x10071a7f
cmp ecx, 0x78
jle 0x10071a7f
movzx eax, byte [edi + 0x128]
mov ecx, esi
mov edx, dword [ebp - 0x2098]
mov dword [ebp - 0x2018], eax
cvttsd2si eax, qword [edi + 0x178]
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2014], edx
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov esi, 5
mov eax, esi
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x170], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov eax, esi
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax + 4]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x178], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x19c], eax
mov byte [edi + 0x198], 1
call dword [sym.imp.MSVCR120.dll_rand]
cdq
idiv esi
mov esi, 2
mov eax, esi
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [edi + 0x170]
movsd qword [edi + 0x170], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 5
idiv ecx
mov eax, dword [edi + 0x260]
sub esi, edx
movd xmm1, dword [eax + 0x10]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [edi + 0x178]
movsd qword [edi + 0x178], xmm0
mov eax, dword [edi + 0x1bc]
test eax, eax
je 0x100717ed
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [edi + 0x1bc], 0
add esp, 4
cmp dword [edi + 0x20c], 0
je 0x10071973
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [edi + 0x20c], eax
ja 0x10071973
cmp byte [edi + 0x10b], 0
je 0x10071969
movzx eax, byte [edi + 0x128]
mov ecx, dword [ebp - 0x209c]
mov dword [ebp - 0x2018], eax
cvttsd2si eax, qword [edi + 0x170]
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2014], eax
cvttsd2si eax, qword [edi + 0x178]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov eax, 5
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x170], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov eax, 5
mov dword [ebp - 0x200c], 1
sub eax, edx
movd xmm0, eax
mov eax, dword [edi + 0x260]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
mov eax, dword [edi + 0x124]
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
add ecx, dword [eax + 4]
cvttsd2si eax, qword [edi + 0x170]
movd xmm0, ecx
mov ecx, dword [ebp - 0x209c]
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x2014], eax
cvttsd2si eax, xmm0
movsd qword [edi + 0x178], xmm0
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
call fcn.10031b50
mov eax, dword [edi + 0x1bc]
test eax, eax
je 0x10071969
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x20c], 0
cmp byte [edi + 0x118], 0
je 0x100719b2
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [edi + 0x11c]
cmp eax, 0x1388
jbe 0x100719b2
mov eax, dword [edi + 0x260]
mov ecx, 1
mov byte [eax + 0xfc4], 0
add eax, 0xfd8
lock xadd dword [eax], ecx
inc ecx
mov byte [edi + 0x118], 0
cmp byte [edi + 0x109], 0
je 0x10071b05
cmp byte [edi + 0xa], 0
jne 0x10071b05
lea eax, [ebp - 0x20b0]
mov byte [edi + 0x109], 0
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x2038]
push eax
mov eax, dword [edi + 0x260]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x20b0]
push eax
mov eax, dword [edi + 0x260]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x20b0]
mov ecx, dword [edi + 0x260]
mov dword [ebp - 0x2020], eax
mov eax, dword [ebp - 0x20ac]
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2020]
push eax
lea eax, [ebp - 0x2038]
push eax
call fcn.1001ff10
mov eax, dword [ebp - 0x2020]
mov esi, dword [ebp - 0x209c]
mov ecx, esi
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2018], 2
call fcn.10031b50
jmp 0x10071b0b
mov ecx, dword [ebp - 0x20a0]
mov eax, ecx
cdq
mov ecx, eax
mov eax, dword [ebp - 0x20bc]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x100717ed
cvttsd2si eax, qword [edi + 0x178]
mov ecx, dword [edi + 0x1bc]
mov edx, dword [ebp - 0x2098]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1c4]
mov dword [edi + 0x1c0], eax
jmp 0x100717ed
push ecx
jmp 0x100717da
push 8
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
cvttsd2si ecx, qword [edi + 0x170]
mov dword [edi + 0x1bc], eax
cvttsd2si edx, qword [edi + 0x178]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x1c4]
mov dword [edi + 0x1c0], eax
jmp 0x100717ea
mov esi, dword [ebp - 0x209c]
mov al, byte [edi + 0x1cb]
test al, al
je 0x10071b2c
movzx eax, al
cmp byte [eax + edi + 8], 0
je 0x10071b2c
mov eax, dword [edi + 0x260]
mov byte [eax + 0xf2c], 1
push esi
lea eax, [edi + 8]
mov ecx, edi
push eax
call fcn.1006fd90
cmp ebx, 8
jne 0x10071b58
cmp byte [edi + 0x10b], 0
je 0x10071b9f
cmp byte [edi + 0x129], 0
jne 0x10071b9f
mov byte [edi + 0x129], 1
jmp 0x10071b97
cmp byte [edi + 0x129], 0
je 0x10071b9f
cmp ebx, 7
je 0x10071b87
cmp ebx, 0x200
jne 0x10071b9f
mov eax, dword [edi + 0x260]
mov esi, dword [eax + 8]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x10071b9f
mov esi, dword [ebp - 0x209c]
cmp byte [edi + 0x10b], 0
mov byte [edi + 0x129], 0
jne 0x10071b9f
push esi
mov ecx, edi
call fcn.10071ed0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad688
mov esp, ebp
pop ebp
ret 0x18