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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
test byte [0x10022150], 8
mov ebx, dword [ebp + 8]
jne 0x100201c8
lea esi, [ebx + 0x20]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x38]
mov edi, dword [eax + 0x20]
sub esp, 4
lea ecx, [edi + 1]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp + 0xc]
sub eax, 0x200
cmp eax, 0xc
ja case.0x100201bd.515
jmp dword [eax*4 + 0x10029f98]
mov eax, dword [ebp + 0x10]
mov ecx, str.iface__p__msg__Ix__x__ld__y__ld_n
mov esi, str.dinput_mouse_hook
mov edi, 0x10022150
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp], 3
mov dword [esp + 0x14], eax
call sym._wine_dbg_log.constprop.0_6
jmp 0x10020195
xor edi, edi
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
test byte [0x10022150], 8
jne 0x10020390
test ecx, ecx
je 0x10020244
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x10020244
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
sub esp, 4
sub eax, edx
mov edx, dword [ebx + 0x525]
mov dword [ebp - 0x14], eax
add edx, eax
mov dword [ebp - 0x18], edx
mov dword [ebx + 0x525], edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x10]
sub ecx, edx
mov edx, dword [ebx + 0x529]
mov dword [ebp - 0x10], ecx
add edx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebx + 0x529], edx
mov edx, dword [ebx + 0x50c]
and edx, 1
mov edx, dword [ebp - 0x1c]
cmove edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
cmove edx, eax
test eax, eax
mov eax, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
jne 0x100205c0
test ecx, ecx
je 0x10020334
mov eax, dword [ebp - 0x20]
call eax
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._queue_event
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x1002032f
mov eax, dword [ebx + 0x94c]
cmp eax, 2
je 0x10020324
dec eax
mov ecx, 1
je 0x10020334
test byte [ebx + 0x4c0], 1
je 0x10020334
mov eax, 1
mov dword [ebx + 0x944], eax
mov ecx, 1
xor edi, edi
jmp 0x10020220
mov byte [ebx + 0x531], 0x80
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov edi, pe_nt_image_headers32
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov edx, 3
xor edi, edi
mov dword [esp + 4], edx
call sym._queue_event
mov ecx, 1
test byte [0x10022150], 8
je 0x1002022d
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebx + 0x52d]
mov ecx, str.dinput_mouse_hook
mov edx, str.buttons__02x__02x__02x__02x__02x__x__ld__y__ld__w__ld_n
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x529]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x525]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0x535]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0x534]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x533]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0x532]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 0x531]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, 0x10022150
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_6
mov ecx, dword [ebp - 0x18]
jmp 0x1002022d
mov byte [ebx + 0x531], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x1002035e
mov byte [ebx + 0x532], 0x80
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp], ebx
mov eax, 4
xor edi, edi
mov dword [esp + 4], eax
call sym._queue_event
mov ecx, 1
jmp 0x10020220
mov byte [ebx + 0x532], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
jmp 0x1002045e
mov byte [ebx + 0x533], 0x80
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp], ebx
mov edi, 5
mov dword [esp + 4], edi
xor edi, edi
call sym._queue_event
mov ecx, 1
jmp 0x10020220
mov byte [ebx + 0x533], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
jmp 0x100204be
mov eax, dword [ebp + 0x10]
movsx eax, word [eax + 0xa]
add dword [ebx + 0x52d], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x52d]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
call sym._queue_event
mov edi, dword [ebx + 0x940]
xor ecx, ecx
jmp 0x10020220
mov eax, dword [ebp + 0x10]
mov dl, pe_nt_image_headers32
movzx eax, word [eax + 0xa]
mov byte [ebx + eax + 0x533], dl
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x10], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
movzx eax, word [eax + 0xa]
mov dword [esp], ebx
add eax, 5
mov dword [esp + 4], eax
call sym._queue_event
mov ecx, 1
jmp 0x10020220
mov eax, dword [ebp + 0x10]
xor edx, edx
movzx eax, word [eax + 0xa]
mov byte [ebx + eax + 0x533], dl
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x1002056f
call eax
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym._queue_event
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100202db
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10020308
jmp 0x1002032f