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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c80d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ebx, dword [0x5014e4]
test ebx, ebx
je case.0x47e7a2.3
mov eax, dword [ebp + 0x10]
test eax, eax
js case.0x47e7a2.3
mov ecx, dword [ebp + 0x14]
test ecx, ecx
js case.0x47e7a2.3
cdq
idiv dword [0x50bc6c]
mov edi, dword [0x50bbf0]
lea edi, [edi + 1]
mov esi, eax
mov eax, ecx
cdq
idiv edi
mov edi, eax
test esi, esi
jle 0x47e721
test edi, edi
js 0x47e721
movsx ecx, word [ebx + 4]
cmp edi, ecx
jge 0x47e721
movsx edx, word [ebx + 6]
cmp esi, edx
jge 0x47e721
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + edi*4]
mov dx, word [ecx + esi*2 - 2]
mov eax, 0xc300
and dx, ax
mov ecx, 0x8200
cmp dx, cx
jne 0x47e721
dec esi
cmp word [0x50d178], 2
mov ebx, dword [ebp + 0xc]
jne 0x47e783
cmp ebx, 1
je 0x47e744
mov eax, dword [ebp + 8]
cmp eax, 0x201
je 0x47e744
cmp eax, 0x202
jne 0x47e786
cmp dword [0x4f9758], 0
jge 0x47e760
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x50d1b0]
cmp eax, 0xbb8
jmp 0x47e771
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x50d1b0]
cmp eax, 0x3e8
jb case.0x47e7a2.3
mov edx, 1
mov word [0x50d178], dx
mov eax, dword [ebp + 8]
mov ecx, dword [0x50d844]
add eax, 0xfffffe00
test ecx, ecx
je 0x47e86b
cmp eax, 8
ja case.0x47e7a2.3
jmp dword [eax*4 + 0x47eabc]
mov dword [0x50d254], esi
mov dword [0x50d774], esi
mov dword [0x50d65c], edi
mov dword [0x50d660], edi
mov dword [0x50d844], 1
call fcn.00481980
jmp case.0x47e7a2.3
cmp ebx, 1
jne case.0x47e7a2.3
test ecx, ecx
js case.0x47e7a2.3
cmp dword [0x50d254], esi
jne 0x47e7fa
cmp dword [0x50d65c], edi
je case.0x47e7a2.3
mov dword [0x50d254], esi
mov dword [0x50d65c], edi
call fcn.00481980
jmp case.0x47e7a2.3
call fcn.004817f0
mov dword [0x50d844], 0
call fcn.00481980
push 1
call fcn.00482010
add esp, 4
push 0x50ecf8
lea ecx, [ebp - 0x28]
call fcn.0040d5e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040d4d0
push eax
mov eax, dword [0x501860]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d440
jmp case.0x47e7a2.3
cmp eax, 9
ja case.0x47e874.5
jmp dword [eax*4 + 0x47eae0]
test ebx, 0xfffffffe
jne case.0x47e7a2.3
cmp word [0x50e354], 0
jle case.0x47e7a2.3
push edi
push esi
lea ecx, [ebp - 0x24]
push str.em_dC_dR
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [ebp - 0x24]
push edx
call fcn.00490170
mov ecx, dword [ebp - 0x28]
add esp, 0x14
push edi
push esi
push 1
mov dword [0x4f9758], esi
mov dword [0x4f9754], edi
mov dword [0x50d1c4], 0
mov dword [0x50d1c0], 1
call fcn.0047e060
jmp case.0x47e874.5
test ebx, 0xfffffffe
jne case.0x47e7a2.3
cmp word [0x50e354], 0
jle case.0x47e7a2.3
cmp dword [0x50d1c0], 0
je case.0x47e7a2.3
cmp dword [0x50d1c4], 0
jne 0x47e959
cmp esi, dword [0x4f9758]
jne 0x47e923
cmp edi, dword [0x4f9754]
je 0x47e94c
push edi
push esi
lea eax, [ebp - 0x24]
push str.em_dC_dR
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea ecx, [ebp - 0x24]
push ecx
call fcn.00490170
add esp, 0x14
mov dword [0x4f9758], esi
mov dword [0x4f9754], edi
push 0x4e48e4
call fcn.00490170
add esp, 4
mov ecx, dword [ebp - 0x28]
push edi
xor eax, eax
push esi
push eax
mov dword [0x50d1c0], eax
mov dword [0x50d1c4], eax
call fcn.0047e060
jmp case.0x47e874.5
cmp ebx, 1
jne case.0x47e7a2.3
cmp word [0x50e354], 0
jle case.0x47e7a2.3
cmp dword [0x50d1c4], 0
jne case.0x47e7a2.3
cmp dword [0x50d1c0], 0
je case.0x47e7a2.3
mov eax, dword [0x4f9758]
test eax, eax
js 0x47e9b3
cmp eax, esi
jne 0x47e9bf
cmp dword [0x4f9754], edi
je case.0x47e874.5
push edi
push esi
lea edx, [ebp - 0x24]
push str.em_dC_dR
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x24]
push eax
call fcn.00490170
mov ecx, dword [ebp - 0x28]
add esp, 0x14
push edi
push esi
push 1
mov dword [0x4f9758], esi
mov dword [0x4f9754], edi
call fcn.0047e060
jmp case.0x47e874.5
test ebx, 0xfffffffe
jne case.0x47e7a2.3
cmp word [0x50e354], 0
jle case.0x47e7a2.3
cmp esi, dword [0x4f9758]
jne 0x47ea23
cmp edi, dword [0x4f9754]
je 0x47ea4c
push edi
push esi
lea ecx, [ebp - 0x24]
push str.em_dC_dR
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [ebp - 0x24]
push edx
call fcn.00490170
add esp, 0x14
mov dword [0x4f9758], esi
mov dword [0x4f9754], edi
push 0x4e48e0
call fcn.00490170
mov ecx, dword [ebp - 0x28]
add esp, 4
push edi
push esi
push 0
mov dword [0x50d1c4], 1
call fcn.0047e060
jmp case.0x47e874.5
test ebx, 0xffffffef
jne case.0x47e7a2.3
push 0xd
jmp 0x47ea91
test ebx, 0xfffffffd
jne case.0x47e7a2.3
cmp word [0x50e354], 0
jle case.0x47e7a2.3
push 0x7f
call fcn.00490110
add esp, 4
call fcn.0048e840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret 0x10