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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
test esi, esi
je 0x474879
mov eax, dword [esi + 0x1b3c]
cmp eax, 0xffffffff
je 0x47484c
test eax, eax
jne 0x474852
mov eax, dword [esi + 0x1b2c]
cmp eax, 1
jle 0x474c68
mov eax, dword [esi + 0x1b40]
cmp eax, 0xffffffff
je 0x47486a
test eax, eax
jne 0x474870
mov eax, dword [esi + 0x1b30]
cmp eax, 1
jle 0x474c68
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x4c]
push ecx
mov ecx, dword [eax + 0x47c]
lea edx, [ebp + 0x10]
push edx
call fcn.004a6810
mov eax, dword [esi + 0x1b3c]
cmp eax, 0xffffffff
je 0x4748a4
test eax, eax
jne 0x4748aa
mov eax, dword [esi + 0x1b2c]
mov dx, word [ebp + 0x10]
dec eax
test dx, dx
jge 0x4748b8
xor edx, edx
jmp 0x4748c0
cmp dx, ax
jle 0x4748c4
mov dx, ax
mov word [ebp + 0x10], dx
mov eax, dword [esi + 0x1b40]
cmp eax, 0xffffffff
je 0x4748d3
test eax, eax
jne 0x4748d9
mov eax, dword [esi + 0x1b30]
mov cx, word [ebp + 0x12]
dec eax
test cx, cx
jge 0x4748eb
xor ecx, ecx
mov word [ebp + 0x12], cx
jmp 0x4748f4
cmp cx, ax
jle 0x4748f4
mov word [ebp + 0x12], ax
cmp dword [esi + 0x1b44], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
je 0x47491c
mov cx, word [esi + 0x1af2]
add cx, dx
mov dx, word [esi + 0x1af4]
add word [ebp - 6], dx
mov word [ebp - 8], cx
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
cmp ebx, 0x201
jne 0x474a56
xor bl, bl
test dword [esi + 0x1abc], 0x400
je 0x47495d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x1ad0]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov byte [ebp + 0x17], 1
cmp edi, eax
jbe 0x474961
mov byte [ebp + 0x17], 0
mov eax, dword [esi + 0x1abc]
test eax, 0x300
je 0x474981
xor ecx, ecx
and eax, 0x200
cmp eax, 0x200
sete cl
mov edi, ecx
jmp 0x4749ea
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x124b], 0
je 0x4749b0
push 1
push 0x7d7
call fcn.004451d0
mov ecx, dword [0x50b3a0]
test al, al
je 0x4749b0
xor edi, edi
push edi
push 0x7d7
jmp 0x4749e3
cmp byte [ecx + 0x124c], 0
je 0x474ad4
push 1
push 0x7d8
call fcn.004451d0
test al, al
je 0x474ad4
mov ecx, dword [0x50b3a0]
push 0
mov edi, 1
push 0x7d8
call fcn.00443870
mov bl, al
mov eax, dword [ebp - 8]
movzx edx, bl
shl edx, 0x18
mov dword [ebp + 8], eax
mov al, byte [ebp + 0x17]
mov byte [esi + 0x1abf], 0
or dword [esi + 0x1abc], edx
test al, al
je 0x474a1d
mov dx, word [esi + 0x1ae8]
xor ecx, ecx
dec dx
mov word [ebp - 0x10], cx
mov word [ebp + 8], dx
movzx ecx, al
neg ecx
sbb ecx, ecx
lea edx, [ebp + 8]
and ecx, edx
mov edx, dword [ebp - 0xe]
push ecx
xor ecx, ecx
test al, al
mov eax, dword [ebp - 0x10]
setne cl
lea ecx, [ecx + ecx + 0x201]
push ecx
push 1
push edx
push eax
push edi
mov ecx, esi
call fcn.00473880
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, 0x203
jne 0x474ac3
mov eax, dword [esi + 0x1abc]
test eax, 0x300
je 0x474ad4
and eax, 0x200
xor ecx, ecx
cmp eax, 0x200
mov eax, dword [ebp - 8]
push 0
sete cl
push 0
push 1
lea edx, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x14], eax
push edx
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
mov ecx, esi
call fcn.004714b0
mov edx, dword [ebp - 0xe]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x14]
push ecx
push ebx
push 1
push edx
push eax
push edi
mov ecx, esi
call fcn.00473880
and dword [esi + 0x1abc], 0xfffffff7
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, 0x200
jne 0x474adf
test byte [esi + 0x1abc], 8
jne 0x474b30
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, 0x202
jne 0x474bdb
test byte [esi + 0x1abc], 4
je 0x474ad4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x1acc]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp edi, eax
jbe 0x474b61
test dword [esi + 0x1abc], 0x400
je 0x474b30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x1ad0]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp edi, eax
jbe 0x474b61
mov eax, dword [esi + 0x1abc]
test eax, 0x400
je 0x474b4a
and eax, 0xfffffbff
mov dword [esi + 0x1abc], eax
jmp 0x474b59
mov ecx, dword [ebp - 6]
mov edx, dword [ebp - 8]
push ecx
push edx
mov ecx, esi
call fcn.004710e0
cmp ebx, 0x202
jne 0x474bb1
and dword [esi + 0x1abc], 0xfffffff7
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x1247], 0
mov eax, dword [esi + 0x1abc]
je 0x474bb1
test eax, 0x400
je 0x474b8c
mov ebx, dword [esi + 0x1ad0]
jmp 0x474b92
mov ebx, dword [esi + 0x1acc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, ebx
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp edi, eax
jbe 0x474bbc
push 0
push 1
mov ecx, esi
call fcn.004713d0
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x4c]
push 1
call fcn.00476a20
mov ecx, eax
add ecx, 8
call fcn.0049dd60
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, 0x205
je 0x474bef
cmp ebx, 0x208
jne 0x474ad4
test dword [esi + 0x1abc], 0x300
je 0x474ad4
cmp ebx, 0x205
jne 0x474c15
mov edx, dword [0x50b3a0]
mov al, byte [edx + 0x124e]
jmp 0x474c20
mov eax, dword [0x50b3a0]
mov al, byte [eax + 0x124f]
cmp al, 1
je 0x474c46
cmp al, 3
je 0x474c46
xor eax, eax
test eax, eax
setne cl
movzx edx, cl
push eax
push edx
mov ecx, esi
call fcn.004713d0
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
test eax, eax
setne cl
movzx edx, cl
push 0
push edx
mov ecx, esi
call fcn.004713d0
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10