Function at 0x1005e969
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 [0x36208e4]
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 0x1005f0bf
push esi
push edi
call fcn.10047f0b
mov esi, dword [ebx + 0x1d24]
push 0xaf3b24
push esi
mov dword [ebp - 0x40], esi
call fcn.10006298
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005ea17
cmp dword [edi + 0x3b0], 0x270f
jg 0x1005e9d7
push 0xffff
call fcn.1006d880
jmp 0x1005eb25
push edi
call fcn.1005cb5a
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.10083ba0
fld dword [esi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083ba0
mov dword [ebp - 0x30], eax
movzx eax, word [edi + 0x14]
mov dword [ebp - 0x38], eax
jmp 0x1005ea47
cmp dword [0x103b64b8], 0
je 0x1005ea47
cmp byte [0x10342a8e], 1
jne 0x1005ea47
cmp dword [0x103b7db4], 0
jne 0x1005ea47
push 0xaf6500
push esi
call fcn.10006298
pop ecx
pop ecx
test eax, eax
jne 0x1005f0bd
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x103d279c]
cmp eax, 0x7530
jb 0x1005eb2b
cmp dword [0x103acda0], 1
jne 0x1005eb2b
call esi
push dword [0x103acda4]
mov dword [0x103d279c], eax
call fcn.10059940
pop ecx
mov dword [0x103d2374], eax
test eax, eax
je 0x1005eb2b
mov eax, dword [0x103be1bc]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [0x103d2374]
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]
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.10059f3c
push 0x1009ae90
call fcn.10006dd0
pop ecx
jmp 0x1005f0bd
or dword [0x10342a34], 0xffffffff
cmp dword [0x103a838c], 1
jne 0x1005ebf6
fld dword [0x10342918]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x10342914]
fstp dword [esp + 8]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10006f13
fcomp qword [0x1009ae88]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x1005ebf6
mov dword [ebx + 0x1d24], 0xffff
mov eax, dword [0x103be1bc]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x103be1bc]
push fcn.1003d94a
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.1003815c
add esp, 0xc
jmp 0x1005f0bd
call fcn.1003d8b5
push dword [0x103428dc]
call fcn.1003da4c
pop ecx
mov ecx, dword [0x103a8388]
inc ecx
cmp eax, ecx
jge 0x1005ec43
mov eax, dword [0x103be1bc]
add eax, 0x45
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x103be1bc]
push 0x1005e585
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 + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
call fcn.10083ba0
cmp dword [0x103a9910], 1
mov dword [ebp - 0x3c], eax
jne 0x1005ed9f
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov ecx, 0x103b1184
mov dword [ebp - 0x28], 0x270f
call fcn.100011d9
test eax, eax
jle 0x1005ed61
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 0x1005ed5a
mov eax, dword [0x103b1184]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x1005ed42
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 0x1005ed42
mov eax, dword [0x103b1924]
push dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.1003d84f
pop ecx
pop ecx
mov esi, eax
xor ecx, ecx
mov eax, 0x10342948
cmp dword [eax], esi
je 0x1005ed0d
add eax, 4
cmp eax, 0x103429c0
jl 0x1005ecfd
jmp 0x1005ed10
xor ecx, ecx
inc ecx
test esi, esi
jle 0x1005ed42
cmp ecx, 1
jne 0x1005ed42
push 0xaf3b24
push esi
call fcn.10006298
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005ed42
fld dword [edi + 0x35c]
call fcn.10083ba0
cmp eax, 0x1e
jg 0x1005ed42
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
inc dword [ebp - 0x2c]
mov ecx, 0x103b1184
call fcn.100011d9
cmp dword [ebp - 0x2c], eax
jl 0x1005eca5
jmp 0x1005ed61
mov dword [ebp - 0x28], 0x270f
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x10342938]
jg 0x1005ed9f
push dword [ebp - 0x30]
call fcn.1003832e
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c5f4
push dword [ebp - 0x30]
mov esi, 0x10111d48
push 0x1009ae74
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
push esi
call fcn.10006dd0
add esp, 0x1c
cmp dword [ebp - 0x34], 1
je 0x1005effb
cmp dword [ebp - 0x40], 0xffff
je 0x1005effb
cmp dword [ebp - 0x3c], 0x1e
jg 0x1005effb
test edi, edi
je 0x1005effb
mov eax, dword [ebx + 0x2a58]
cmp eax, 8
je 0x1005ede6
cmp eax, 9
je 0x1005ede6
cmp eax, 0xb
je 0x1005ede6
cmp eax, 0xd
jne 0x1005eed6
mov ecx, 0x103bb574
xor edi, edi
call fcn.100011d9
test eax, eax
jle 0x1005eed6
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call fcn.1000601d
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 0x1005eeb6
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x1005eeb6
lea eax, [ebp - 0x24]
push 0x1009ae6c
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1005eef2
lea eax, [ebp - 0x24]
push 0x1009ae64
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x1005efe3
mov ecx, 0x103b1184
call fcn.100011d9
test eax, eax
jle 0x1005eeb6
mov eax, dword [0x103b1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp - 0x38]
cmp dword [eax], ecx
jne 0x1005eea7
mov eax, dword [0x103b1184]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x1005eea7
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 0x1005efe3
mov ecx, 0x103b1184
inc esi
call fcn.100011d9
cmp esi, eax
jl 0x1005ee6f
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0x14
jl 0x1005edfe
mov ecx, 0x103bb574
inc edi
call fcn.100011d9
cmp edi, eax
jl 0x1005edfa
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c5f4
or dword [0x100a6388], 0xffffffff
pop ecx
pop ecx
jmp 0x1005f099
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 0x1005efb3
push 0xaf3b24
push eax
call fcn.10006298
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005efb3
mov edi, dword [esi + 0x10a4]
fld dword [edi + 0x280]
call fcn.10083ba0
fld dword [edi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083ba0
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 + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10006f13
fcomp dword [0x1009ae60]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x1005efb3
mov ecx, dword [esi + 0x5f4]
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [ebp - 0x40]
jle 0x1005efb3
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 0x1005efb3
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 0x1005eeff
cmp dword [ebp - 0x38], 0
je 0x1005efe3
push dword [ebp - 0x38]
call fcn.1003832e
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c5f4
add esp, 0xc
mov esi, dword [ebp - 0x34]
push 0xb
push esi
call fcn.1005c5f4
pop ecx
pop ecx
mov dword [0x100a6388], esi
jmp 0x1005f099
xor edi, edi
mov eax, dword [edi*4 + 0x10342948]
test eax, eax
jle 0x1005f074
push 0xaf3b24
push eax
call fcn.10006298
pop ecx
pop ecx
test eax, eax
je 0x1005f074
mov esi, dword [eax + 0x10a4]
fld dword [esi + 0x280]
call fcn.10083ba0
fld dword [esi + 0x288]
mov dword [ebp - 0x28], eax
call fcn.10083ba0
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 + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10006f13
fcomp qword [0x10098cd0]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x1005f07c
inc edi
cmp edi, 0x1e
jl 0x1005effd
jmp 0x1005f099
push dword [edi*4 + 0x10342948]
call fcn.1003832e
mov eax, dword [0x103a99c8]
dec eax
push 0
push eax
call fcn.1005c5f4
add esp, 0xc
cmp dword [0x103a8200], 1
jne 0x1005f0bd
cmp dword [ebp - 0x44], 0xaf3b24
jne 0x1005f0bd
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.10083a34
leave
ret 0x10