Function at 0x1005e5de
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 0x1005e627
cmp byte [0x10122867], 1
jne 0x1005e627
mov eax, dword [0x36208e4]
mov dword [eax + 0x1d24], 0xffff
mov byte [0x10122867], 0
call fcn.1006ba41
jmp 0x1005e95b
push ebx
xor ebx, ebx
cmp dword [0x103acda0], 1
push esi
jne 0x1005e6df
push dword [0x103acda4]
call fcn.10059940
mov esi, eax
pop ecx
mov dword [0x103d2374], esi
cmp esi, ebx
je 0x1005e6df
fld dword [esi]
call fcn.10083ba0
mov dword [0x103d2378], eax
fld dword [esi + 8]
call fcn.10083ba0
mov dword [0x103d237c], eax
mov eax, dword [esi + 0x20]
mov dword [0x103d2380], eax
mov eax, dword [0x103be1bc]
push fcn.10059f3c
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.10059f3c
push 0x1009a9f8
call fcn.10006dd0
pop ecx
jmp 0x1005e959
cmp edi, ebx
jne 0x1005e829
cmp dword [0x103a82cc], 1
jne 0x1005e6f6
mov dword [0x103a3e60], ebx
cmp dword [0x103a82d4], 1
jne 0x1005e94f
cmp dword [0x103a81f8], 1
jne 0x1005e94f
cmp dword [0x10112804], ebx
jle 0x1005e94f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
sub eax, dword [0x103428b4]
cmp eax, 7
jb 0x1005e94f
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.1005f83b
pop ecx
pop ecx
mov dword [0x101123b0], esi
cmp eax, ebx
jne 0x1005e7a7
mov eax, dword [0x103429c0]
mov dword [0x10342938], eax
jmp 0x1005e959
mov eax, dword [0x36208e4]
mov eax, dword [eax + 0x2a58]
cmp eax, 5
je 0x1005e7cc
cmp eax, edi
je 0x1005e7cc
cmp eax, 7
je 0x1005e7cc
mov dword [0x103429c4], 0x32
jmp 0x1005e7d9
mov eax, dword [0x103429c0]
add eax, 0xfffffff6
mov dword [0x103429c4], eax
mov eax, dword [0x103be1bc]
push 0x1005dddd
push 0x12c
add eax, 0x46
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1009ae4c
mov dword [0x10112804], ebx
mov dword [0x101127fc], ebx
mov dword [0x10112374], 1
mov dword [0x103429c8], ebx
mov dword [0x101123b0], edi
call fcn.10006dd0
jmp 0x1005e94e
push edi
call fcn.1006d880
cmp dword [0x103a82cc], 1
pop ecx
jne 0x1005e84b
mov eax, dword [0x103a3e60]
mov dword [eax*4 + 0x103a3cd0], edi
inc dword [0x103a3e60]
mov eax, dword [edi*4 + 0x36208e8]
push dword [eax + 0xc]
add eax, 0x360
push eax
push 0x1009ae38
mov esi, 0x10111d48
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
push esi
call fcn.10006dd0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0x2710
mov dword [0x101123e0], eax
call fcn.10037d23
cmp dword [0x103a99b8], 1
jne 0x1005e91b
xor esi, esi
lea eax, [ebp - 0x124]
push eax
push esi
call fcn.1000601d
lea eax, [ebp - 0x124]
push 0x1009ae2c
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
je 0x1005e8dd
lea eax, [ebp - 0x124]
push 0x1009ae20
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1005e8dd
inc esi
cmp esi, 0x14
jl 0x1005e899
jmp 0x1005e94f
cmp dword [ebp - 0x10c], ebx
jne 0x1005e8ed
push esi
call fcn.1005c545
jmp 0x1005e94e
mov eax, dword [0x35f5df8]
mov esi, dword [eax + esi*4 + 0x53c]
mov dword [esi + 0x354], ebx
mov eax, dword [0x103a99c0]
dec eax
push 0x37
push eax
call fcn.1005c5f4
mov eax, dword [ebp - 0x10c]
mov dword [esi + 0x354], eax
jmp 0x1005e94d
cmp byte [0x10342a7f], bl
jne 0x1005e93f
mov eax, dword [0x35f5df8]
mov ecx, dword [0x103a99c0]
mov eax, dword [eax + ecx*4 + 0x538]
cmp eax, ebx
je 0x1005e93f
mov dword [eax + 0x354], ebx
mov eax, dword [0x103a99c0]
dec eax
push 0x37
push eax
call fcn.1005c5f4
pop ecx
pop ecx
mov dword [0x10112374], 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10083a34
leave
ret