Function at 0x1005e649
Capabilities:
Check for time delay via gettickcount
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100a69a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x103a81f4], 1
push edi
mov edi, dword [ebp + 8]
jne 0x1005e692
cmp byte [0x10122867], 1
jne 0x1005e692
mov eax, dword [0x2fb6ac4]
mov dword [eax + 0x1d20], 0xffff
mov byte [0x10122867], 0
call fcn.1006bd61
jmp 0x1005e9c6
push ebx
xor ebx, ebx
cmp dword [0x103acda0], 1
push esi
jne 0x1005e74a
push dword [0x103acda4]
call fcn.1005998a
mov esi, eax
pop ecx
mov dword [0x103d237c], esi
cmp esi, ebx
je 0x1005e74a
fld dword [esi]
call fcn.10083f90
mov dword [0x103d2380], eax
fld dword [esi + 8]
call fcn.10083f90
mov dword [0x103d2384], eax
mov eax, dword [esi + 0x20]
mov dword [0x103d2388], eax
mov eax, dword [0x103be1c0]
push fcn.10059f86
push 0x12c
add eax, 0x46
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push ebx
push ebx
push ebx
mov dword [0x10112804], ebx
mov dword [0x101127fc], ebx
mov dword [0x10112374], 1
mov byte [0x10342a87], bl
mov byte [0x10342a88], bl
mov byte [0x10342a89], bl
mov dword [0x101123b0], 4
call fcn.10059f86
push 0x1009aa38
call fcn.10006e54
pop ecx
jmp 0x1005e9c4
cmp edi, ebx
jne 0x1005e894
cmp dword [0x103a82cc], 1
jne 0x1005e761
mov dword [0x103a3e60], ebx
cmp dword [0x103a82d4], 1
jne 0x1005e9ba
cmp dword [0x103a81f8], 1
jne 0x1005e9ba
cmp dword [0x10112804], ebx
jle 0x1005e9ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
sub eax, dword [0x103428b4]
cmp eax, 7
jb 0x1005e9ba
push 0x138a
push dword [0x103a8180]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov esi, dword [0x101123b0]
push 4
pop edi
push 1
mov dword [0x10342938], eax
mov dword [0x10342944], ebx
mov dword [0x101123b0], edi
call fcn.1005f8c4
pop ecx
pop ecx
mov dword [0x101123b0], esi
cmp eax, ebx
jne 0x1005e812
mov eax, dword [0x103429c0]
mov dword [0x10342938], eax
jmp 0x1005e9c4
mov eax, dword [0x2fb6ac4]
mov eax, dword [eax + 0x2a50]
cmp eax, 5
je 0x1005e837
cmp eax, edi
je 0x1005e837
cmp eax, 7
je 0x1005e837
mov dword [0x103429c4], 0x32
jmp 0x1005e844
mov eax, dword [0x103429c0]
add eax, 0xfffffff6
mov dword [0x103429c4], eax
mov eax, dword [0x103be1c0]
push 0x1005de48
push 0x12c
add eax, 0x46
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1009ae8c
mov dword [0x10112804], ebx
mov dword [0x101127fc], ebx
mov dword [0x10112374], 1
mov dword [0x103429c8], ebx
mov dword [0x101123b0], edi
call fcn.10006e54
jmp 0x1005e9b9
push edi
call fcn.1006dba0
cmp dword [0x103a82cc], 1
pop ecx
jne 0x1005e8b6
mov eax, dword [0x103a3e60]
mov dword [eax*4 + 0x103a3cd0], edi
inc dword [0x103a3e60]
mov eax, dword [edi*4 + 0x2fb6ae0]
push dword [eax + 0xc]
add eax, 0x360
push eax
push 0x1009ae78
mov esi, 0x10111d48
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
push esi
call fcn.10006e54
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0x2710
mov dword [0x101123e0], eax
call fcn.10037deb
cmp dword [0x103a99b8], 1
jne 0x1005e986
xor esi, esi
lea eax, [ebp - 0x124]
push eax
push esi
call fcn.100060a1
lea eax, [ebp - 0x124]
push 0x1009ae6c
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
je 0x1005e948
lea eax, [ebp - 0x124]
push 0x1009ae60
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1005e948
inc esi
cmp esi, 0x14
jl 0x1005e904
jmp 0x1005e9ba
cmp dword [ebp - 0x10c], ebx
jne 0x1005e958
push esi
call fcn.1005c58f
jmp 0x1005e9b9
mov eax, dword [0x2f99f10]
mov esi, dword [eax + esi*4 + 0x53c]
mov dword [esi + 0x354], ebx
mov eax, dword [0x103a99c0]
dec eax
push 0x37
push eax
call fcn.1005c63e
mov eax, dword [ebp - 0x10c]
mov dword [esi + 0x354], eax
jmp 0x1005e9b8
cmp byte [0x10342a7f], bl
jne 0x1005e9aa
mov eax, dword [0x2f99f10]
mov ecx, dword [0x103a99c0]
mov eax, dword [eax + ecx*4 + 0x538]
cmp eax, ebx
je 0x1005e9aa
mov dword [eax + 0x354], ebx
mov eax, dword [0x103a99c0]
dec eax
push 0x37
push eax
call fcn.1005c63e
pop ecx
pop ecx
mov dword [0x10112374], 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10083e24
leave
ret