Function at 0x523c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x16c]
push edi
push 0
push 0xffffffffffffffff
call edx
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
mov edx, dword [esi + 0x40]
mov eax, dword [eax + 0x16c]
push 0
push edx
call eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00523680
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
add eax, ebx
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_PtInRect]
lea ecx, [ebp - 0x30]
test eax, eax
jne 0x523cc1
lea ecx, [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x38], edx
xor edx, edx
test eax, eax
setne dl
neg eax
sbb eax, eax
add eax, 5
mov dword [ebp - 0x34], ecx
push 0
mov ecx, esi
lea edi, [edx + edx - 1]
mov dword [ebp - 0x48], edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], eax
call fcn.00559e20
mov eax, dword [esi]
mov edx, dword [eax + 0x16c]
push edi
push 1
mov ecx, esi
call edx
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0040cf29
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0x20]
push 0
push 0x212
push 0x1b3
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], 1
call ebx
push 0
push 0
mov edi, eax
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x523e64
lea esp, [esp]
cmp eax, 0x200
jne 0x523db9
mov eax, dword [ebp - 0x14]
movzx ecx, ax
shr eax, 0x10
push eax
push ecx
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x10c]
mov ecx, esi
call eax
test eax, eax
je 0x523e46
call ebx
push 1
mov ecx, esi
mov edi, eax
call fcn.00559e20
jmp 0x523e46
cmp eax, 0x113
jne 0x523e28
cmp dword [ebp - 0x18], 0x1b3
jne 0x523e28
cmp dword [esi + 0x64], 0
je 0x523e02
call ebx
sub eax, edi
shr eax, 0xa
mov ecx, 1
cmp eax, 5
jb 0x523de7
mov ecx, 0x14
jmp 0x523df1
cmp eax, 2
jb 0x523df1
mov ecx, 5
mov eax, dword [ebp - 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x16c]
push eax
push ecx
mov ecx, esi
call edx
cmp dword [ebp - 0x44], 0
je 0x523e21
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 0x20]
push 0
push 0x64
push 0x1b3
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0040cf29
cmp eax, dword [esi + 0xc0]
jne 0x523e64
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
jne 0x523d70
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0x20]
push 0x1b3
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x68], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov ecx, esi
call fcn.00559e20
mov esi, dword [esi + 0xc0]
cmp dword [esi + 0xdc], 5
je 0x523eb0
mov eax, dword [esi]
mov edx, dword [eax + 0x164]
push 0
push 1
push 0
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret 8