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

Disassembly:
push 0x2c
push 0x100a2e58
call fcn.10083e60
wait
xor edi, edi
mov dword [ebp - 4], edi
mov dword [0x1010eaf8], edi
mov eax, dword [0x36208e4]
mov eax, dword [eax + 0x1d24]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 8], edi
je 0x1005f870
cmp dword [ebp + 8], 3
jne 0x1005f9a5
cmp dword [0x103a82c8], edi
jne 0x1005f999
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov ecx, 0x103bb4a8
call fcn.100011d9
cmp ebx, eax
jge 0x1005f999
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103bb49c]
mov ecx, dword [ecx + ebx*4]
sub eax, dword [ecx]
cmp eax, 0xbb8
jae 0x1005f991
mov dword [ebp - 0x20], 0x4a3b8d8
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x362f370]
jge 0x1005f991
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
add dword [ebp - 0x20], 4
cmp dword [esi], 0xaf3b24
jne 0x1005f989
mov edi, dword [esi + 0x10a4]
test edi, edi
je 0x1005f989
cmp dword [esi + 0x3c0], 1
je 0x1005f989
cmp dword [esi + 0x3b0], 0x270f
jle 0x1005f989
mov eax, dword [0x103bb4a8]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esi + 0x14]
cmp ecx, dword [eax]
jne 0x1005f989
fld dword [edi + 0x280]
call fcn.10083ba0
mov dword [ebp - 0x34], eax
fld dword [edi + 0x288]
call fcn.10083ba0
mov dword [ebp - 0x1c], eax
sub esp, 0x10
fld dword [0x10342918]
fstp dword [esp + 0xc]
fld dword [0x10342914]
fstp dword [esp + 8]
fild dword [ebp - 0x1c]
fstp dword [esp + 4]
fild dword [ebp - 0x34]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
fild dword [0x10342938]
fcompp
fnstsw ax
test ah, 1
jne 0x1005f991
mov esi, dword [esi + 0xc]
cmp dword [0x101123b0], 4
je 0x1005fcee
push esi
call fcn.1005e5de
jmp 0x1005fced
inc dword [ebp - 0x24]
jmp 0x1005f8b9
inc ebx
xor edi, edi
jmp 0x1005f87e
cmp dword [ebp + 8], 3
jne 0x1005f9a5
wait
jmp 0x1005fd24
cmp dword [ebp + 8], 2
jne 0x1005f9c3
mov eax, dword [ebp - 0x30]
mov eax, dword [eax*4 + 0x36208e8]
fld dword [eax + 0x35c]
call fcn.10083ba0
mov dword [ebp - 0x34], eax
cmp dword [0x103a81f8], 1
jne 0x1005f9d9
cmp dword [ebp + 8], 1
jne 0x1005f9d9
mov dword [ebp + 8], 4
mov dword [0x1034293c], 0xffff
mov dword [ebp - 0x28], 0x4a3b8d8
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x362f370]
jge 0x1005fc48
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
add dword [ebp - 0x28], 4
cmp esi, edi
je 0x1005fc3e
cmp dword [esi], 0xaf3b24
jne 0x1005fc3e
cmp dword [esi + 0x10a4], edi
je 0x1005fc3e
cmp dword [esi + 0x3c0], 1
je 0x1005fc3e
cmp dword [esi + 0x3b0], 0x270f
jle 0x1005fc3e
mov edi, dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1034289c]
cmp eax, 0x1388
jae 0x1005fa64
cmp dword [0x10342a28], edi
je 0x1005fc3e
cmp dword [esi + 0x3b0], 0x3e7
jl 0x1005fc3e
cmp dword [ebp - 0x30], edi
je 0x1005fc3e
cmp dword [ebp + 8], 2
jne 0x1005fa99
fild dword [ebp - 0x34]
fld dword [esi + 0x35c]
fcompp
fnstsw ax
test ah, 0x41
je 0x1005fc3e
cmp dword [0x103a82cc], 1
jne 0x1005fae3
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp eax, dword [0x103a3e60]
jge 0x1005fac1
cmp dword [eax*4 + 0x103a3cd0], edi
je 0x1005fc3e
inc eax
jmp 0x1005faa6
cmp ecx, 1
je 0x1005fc3e
fld dword [esi + 0x35c]
fild dword [0x103a8784]
fcompp
fnstsw ax
test ah, 1
je 0x1005fc3e
mov edi, dword [esi + 0x10a4]
cmp dword [0x103a82b8], 1
jne 0x1005fb04
mov eax, dword [esi + 0x5f4]
cmp eax, dword [esi + 0x610]
jne 0x1005fc3e
cmp dword [ebp + 8], 4
jne 0x1005fb26
cmp byte [edi + 0x1d1], 0
jne 0x1005fb26
fld dword [esi + 0x1074]
call fcn.10083ba0
fld dword [esi + 0x107c]
jmp 0x1005fb37
fld dword [edi + 0x280]
call fcn.10083ba0
fld dword [edi + 0x288]
mov ebx, eax
call fcn.10083ba0
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0x1005fb4d
test eax, eax
je 0x1005fc3e
cmp dword [0x35ed708], 0xa7f9
jne 0x1005fbab
lea eax, [esi + 0x360]
push 0x1009aeec
push eax
mov edi, dword [sym.imp.MSVCR100.dll_strstr]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1005fb7f
cmp dword [esi + 0x5f4], eax
je 0x1005fc3e
push 0x1009aee0
lea eax, [esi + 0x360]
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1005fbab
push 0x1009aeec
lea eax, [esi + 0x360]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005fc3e
cmp dword [0x103a8564], 3
jne 0x1005fbc8
mov eax, dword [esi + 0x3b0]
cmp eax, 0x2af9
jl 0x1005fbc8
cmp eax, 0x2b35
jle 0x1005fc3e
mov ecx, dword [0x1010eaf8]
mov eax, dword [esi + 0x5f4]
mov dword [ecx*4 + 0x1010c3e8], eax
mov ecx, dword [0x1010eaf8]
mov eax, dword [esi + 0x610]
mov dword [ecx*4 + 0x1010cbb8], eax
mov eax, dword [0x1010eaf8]
mov dword [eax*4 + 0x1010db58], ebx
mov eax, dword [0x1010eaf8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax*4 + 0x1010e328], ecx
lea eax, [esi + 0x360]
push eax
mov eax, dword [0x1010eaf8]
imul eax, eax, 0xc8
add eax, 0x100f3d48
push eax
call sub.MSVCR100.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [0x1010eaf8]
mov eax, dword [esi + 0xc]
mov dword [ecx*4 + 0x1010d388], eax
inc dword [0x1010eaf8]
inc dword [ebp - 0x2c]
xor edi, edi
jmp 0x1005f9ed
cmp dword [0x103a81f4], 1
jne 0x1005fc66
cmp byte [0x10342a86], 1
jne 0x1005fc66
push dword [0x10342938]
call fcn.1003d626
pop ecx
mov eax, dword [0x103a8564]
cmp eax, 1
je 0x1005fc75
cmp eax, 2
jne 0x1005fc7d
push 1
call fcn.10048a83
pop ecx
cmp dword [0x103a8564], 3
jle 0x1005fc8d
push edi
call fcn.10048a83
pop ecx
call fcn.10037bc1
call fcn.1003798b
mov esi, eax
cmp esi, edi
jne 0x1005fcb1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [0x10342890], eax
cmp dword [ebp + 8], 2
jne 0x1005f971
test esi, esi
je 0x1005f99f
fild dword [ebp - 0x34]
mov eax, dword [esi*4 + 0x36208e8]
fld dword [eax + 0x35c]
fcompp
fnstsw ax
test ah, 5
jp 0x1005fcee
push 0x1009aed8
call fcn.10006dd0
push esi
call fcn.1005e5de
pop ecx
pop ecx
wait
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1005fd2d
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.10083ea5
ret