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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100a69a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [0x2fb6ac4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
cmp ebx, eax
je 0x1005f129
push esi
push edi
call fcn.10047fb1
mov esi, dword [ebx + 0x1d20]
push 0xd70444
push esi
mov dword [ebp - 0x40], esi
call fcn.1000631c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005ea81
cmp dword [edi + 0x3b0], 0x270f
jg 0x1005ea41
push 0xffff
call fcn.1006dba0
jmp 0x1005eb8f
push edi
call fcn.1005cbc8
mov eax, dword [edi]
mov esi, dword [edi + 0x10a4]
fld dword [esi + 0x280]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x3c0]
pop ecx
mov dword [ebp - 0x34], eax
call fcn.10083f90
fld dword [esi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083f90
mov dword [ebp - 0x30], eax
movzx eax, word [edi + 0x14]
mov dword [ebp - 0x38], eax
jmp 0x1005eab1
cmp dword [0x103b64b8], 0
je 0x1005eab1
cmp byte [0x10342a8e], 1
jne 0x1005eab1
cmp dword [0x103b7db4], 0
jne 0x1005eab1
push 0xd730a0
push esi
call fcn.1000631c
pop ecx
pop ecx
test eax, eax
jne 0x1005f127
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x103d27a4]
cmp eax, 0x7530
jb 0x1005eb95
cmp dword [0x103acda0], 1
jne 0x1005eb95
call esi
push dword [0x103acda4]
mov dword [0x103d27a4], eax
call fcn.1005998a
pop ecx
mov dword [0x103d237c], eax
test eax, eax
je 0x1005eb95
mov eax, dword [0x103be1c0]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [0x103d237c]
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]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [0x101127fc], eax
mov dword [0x10112374], 1
mov byte [0x10342a87], al
mov byte [0x10342a88], al
mov byte [0x10342a89], al
mov dword [0x101123b0], 4
call fcn.10059f86
push 0x1009aed0
call fcn.10006e54
pop ecx
jmp 0x1005f127
or dword [0x10342a34], 0xffffffff
cmp dword [0x103a838c], 1
jne 0x1005ec60
fld dword [0x10342918]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x10342914]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10006f97
fcomp qword [0x1009aec8]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x1005ec60
mov dword [ebx + 0x1d20], 0xffff
mov eax, dword [0x103be1c0]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x103be1c0]
push fcn.1003da0d
push 0x12c
add eax, 0x4d
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x10342918]
and dword [0x101127fc], 0
sub esp, 0xc
fstp dword [esp + 8]
mov dword [0x10112374], 1
fldz
fstp dword [esp + 4]
fld dword [0x10342914]
fstp dword [esp]
call fcn.1003823d
add esp, 0xc
jmp 0x1005f127
call fcn.1003d978
push dword [0x103428dc]
call fcn.1003db0f
pop ecx
mov ecx, dword [0x103a8388]
inc ecx
cmp eax, ecx
jge 0x1005ecad
mov eax, dword [0x103be1c0]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x103be1c0]
push 0x1005e5f0
push 0xa
add eax, 0x46
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
fild dword [ebp - 0x30]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [ebp - 0x28]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10006f97
add esp, 0x10
call fcn.10083f90
cmp dword [0x103a9910], 1
mov dword [ebp - 0x3c], eax
jne 0x1005ee09
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov ecx, 0x103b1184
mov dword [ebp - 0x28], 0x270f
call fcn.10001036
test eax, eax
jle 0x1005edcb
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x103b1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp - 0x38]
cmp dword [eax], ecx
je 0x1005edc4
mov eax, dword [0x103b1184]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x1005edac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103b231c]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
ja 0x1005edac
mov eax, dword [0x103b1924]
push dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.1003d912
pop ecx
pop ecx
mov esi, eax
xor ecx, ecx
mov eax, 0x10342948
cmp dword [eax], esi
je 0x1005ed77
add eax, 4
cmp eax, 0x103429c0
jl 0x1005ed67
jmp 0x1005ed7a
xor ecx, ecx
inc ecx
test esi, esi
jle 0x1005edac
cmp ecx, 1
jne 0x1005edac
push 0xd70444
push esi
call fcn.1000631c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005edac
fld dword [edi + 0x35c]
call fcn.10083f90
cmp eax, 0x1e
jg 0x1005edac
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
inc dword [ebp - 0x2c]
mov ecx, 0x103b1184
call fcn.10001036
cmp dword [ebp - 0x2c], eax
jl 0x1005ed0f
jmp 0x1005edcb
mov dword [ebp - 0x28], 0x270f
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x10342938]
jg 0x1005ee09
push dword [ebp - 0x30]
call fcn.10038422
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c63e
push dword [ebp - 0x30]
mov esi, 0x10111d48
push 0x1009aeb4
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
push esi
call fcn.10006e54
add esp, 0x1c
cmp dword [ebp - 0x34], 1
je 0x1005f065
cmp dword [ebp - 0x40], 0xffff
je 0x1005f065
cmp dword [ebp - 0x3c], 0x1e
jg 0x1005f065
test edi, edi
je 0x1005f065
mov eax, dword [ebx + 0x2a50]
cmp eax, 8
je 0x1005ee50
cmp eax, 9
je 0x1005ee50
cmp eax, 0xb
je 0x1005ee50
cmp eax, 0xd
jne 0x1005ef40
mov ecx, 0x103bb574
xor edi, edi
call fcn.10001036
test eax, eax
jle 0x1005ef40
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call fcn.100060a1
mov eax, dword [0x103bb574]
push dword [eax + edi*4]
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x1005ef20
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x1005ef20
lea eax, [ebp - 0x24]
push 0x1009aeac
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1005ef5c
lea eax, [ebp - 0x24]
push 0x1009aea4
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x1005f04d
mov ecx, 0x103b1184
call fcn.10001036
test eax, eax
jle 0x1005ef20
mov eax, dword [0x103b1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp - 0x38]
cmp dword [eax], ecx
jne 0x1005ef11
mov eax, dword [0x103b1184]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x1005ef11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103b231c]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
jbe 0x1005f04d
mov ecx, 0x103b1184
inc esi
call fcn.10001036
cmp esi, eax
jl 0x1005eed9
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0x14
jl 0x1005ee68
mov ecx, 0x103bb574
inc edi
call fcn.10001036
cmp edi, eax
jl 0x1005ee64
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c63e
or dword [0x100a6388], 0xffffffff
pop ecx
pop ecx
jmp 0x1005f103
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x2c], 0x10342948
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
jle 0x1005f01d
push 0xd70444
push eax
call fcn.1000631c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f01d
mov edi, dword [esi + 0x10a4]
fld dword [edi + 0x280]
call fcn.10083f90
fld dword [edi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083f90
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [ebp - 0x28]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10006f97
fcomp dword [0x1009aea0]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x1005f01d
mov ecx, dword [esi + 0x5f4]
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [ebp - 0x40]
jle 0x1005f01d
fild dword [ebp - 0x3c]
fidiv dword [esi + 0x610]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fcomp qword [str.333333]
fnstsw ax
test ah, 1
jne 0x1005f01d
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], eax
add dword [ebp - 0x2c], 4
cmp dword [ebp - 0x2c], 0x103429c0
jl 0x1005ef69
cmp dword [ebp - 0x38], 0
je 0x1005f04d
push dword [ebp - 0x38]
call fcn.10038422
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c63e
add esp, 0xc
mov esi, dword [ebp - 0x34]
push 0xb
push esi
call fcn.1005c63e
pop ecx
pop ecx
mov dword [0x100a6388], esi
jmp 0x1005f103
xor edi, edi
mov eax, dword [edi*4 + 0x10342948]
test eax, eax
jle 0x1005f0de
push 0xd70444
push eax
call fcn.1000631c
pop ecx
pop ecx
test eax, eax
je 0x1005f0de
mov esi, dword [eax + 0x10a4]
fld dword [esi + 0x280]
call fcn.10083f90
fld dword [esi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083f90
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [ebp - 0x28]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10006f97
fcomp qword [0x10098d10]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x1005f0e6
inc edi
cmp edi, 0x1e
jl 0x1005f067
jmp 0x1005f103
push dword [edi*4 + 0x10342948]
call fcn.10038422
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c63e
add esp, 0xc
cmp dword [0x103a8200], 1
jne 0x1005f127
cmp dword [ebp - 0x44], 0xd70444
jne 0x1005f127
mov byte [0x10342a7b], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x103428e0], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10083e24
leave
ret 0x10