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

Disassembly:
push 0x2c
push 0x100a2f38
call fcn.10084250
wait
xor edi, edi
mov dword [ebp - 4], edi
mov dword [0x1010eaf8], edi
mov eax, dword [0x2fb6ac4]
mov eax, dword [eax + 0x1d20]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 8], edi
je 0x1005f8f9
cmp dword [ebp + 8], 3
jne 0x1005fa2e
cmp dword [0x103a82c8], edi
jne 0x1005fa22
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov ecx, 0x103bb4a8
call fcn.10001036
cmp ebx, eax
jge 0x1005fa22
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 0x1005fa1a
mov dword [ebp - 0x20], 0x2fc5570
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x2fb6a98]
jge 0x1005fa1a
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
add dword [ebp - 0x20], 4
cmp dword [esi], 0xd70444
jne 0x1005fa12
mov edi, dword [esi + 0x10a4]
test edi, edi
je 0x1005fa12
cmp dword [esi + 0x3c0], 1
je 0x1005fa12
cmp dword [esi + 0x3b0], 0x270f
jle 0x1005fa12
mov eax, dword [0x103bb4a8]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esi + 0x14]
cmp ecx, dword [eax]
jne 0x1005fa12
fld dword [edi + 0x280]
call fcn.10083f90
mov dword [ebp - 0x34], eax
fld dword [edi + 0x288]
call fcn.10083f90
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.10006f97
add esp, 0x10
fild dword [0x10342938]
fcompp
fnstsw ax
test ah, 1
jne 0x1005fa1a
mov esi, dword [esi + 0xc]
cmp dword [0x101123b0], 4
je 0x1005fd77
push esi
call fcn.1005e649
jmp 0x1005fd76
inc dword [ebp - 0x24]
jmp 0x1005f942
inc ebx
xor edi, edi
jmp 0x1005f907
cmp dword [ebp + 8], 3
jne 0x1005fa2e
wait
jmp 0x1005fdad
cmp dword [ebp + 8], 2
jne 0x1005fa4c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax*4 + 0x2fb6ae0]
fld dword [eax + 0x35c]
call fcn.10083f90
mov dword [ebp - 0x34], eax
cmp dword [0x103a81f8], 1
jne 0x1005fa62
cmp dword [ebp + 8], 1
jne 0x1005fa62
mov dword [ebp + 8], 4
mov dword [0x1034293c], 0xffff
mov dword [ebp - 0x28], 0x2fc5570
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x2fb6a98]
jge 0x1005fcd1
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
add dword [ebp - 0x28], 4
cmp esi, edi
je 0x1005fcc7
cmp dword [esi], 0xd70444
jne 0x1005fcc7
cmp dword [esi + 0x10a4], edi
je 0x1005fcc7
cmp dword [esi + 0x3c0], 1
je 0x1005fcc7
cmp dword [esi + 0x3b0], 0x270f
jle 0x1005fcc7
mov edi, dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1034289c]
cmp eax, 0x1388
jae 0x1005faed
cmp dword [0x10342a28], edi
je 0x1005fcc7
cmp dword [esi + 0x3b0], 0x3e7
jl 0x1005fcc7
cmp dword [ebp - 0x30], edi
je 0x1005fcc7
cmp dword [ebp + 8], 2
jne 0x1005fb22
fild dword [ebp - 0x34]
fld dword [esi + 0x35c]
fcompp
fnstsw ax
test ah, 0x41
je 0x1005fcc7
cmp dword [0x103a82cc], 1
jne 0x1005fb6c
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp eax, dword [0x103a3e60]
jge 0x1005fb4a
cmp dword [eax*4 + 0x103a3cd0], edi
je 0x1005fcc7
inc eax
jmp 0x1005fb2f
cmp ecx, 1
je 0x1005fcc7
fld dword [esi + 0x35c]
fild dword [0x103a8784]
fcompp
fnstsw ax
test ah, 1
je 0x1005fcc7
mov edi, dword [esi + 0x10a4]
cmp dword [0x103a82b8], 1
jne 0x1005fb8d
mov eax, dword [esi + 0x5f4]
cmp eax, dword [esi + 0x610]
jne 0x1005fcc7
cmp dword [ebp + 8], 4
jne 0x1005fbaf
cmp byte [edi + 0x1d1], 0
jne 0x1005fbaf
fld dword [esi + 0x1074]
call fcn.10083f90
fld dword [esi + 0x107c]
jmp 0x1005fbc0
fld dword [edi + 0x280]
call fcn.10083f90
fld dword [edi + 0x288]
mov ebx, eax
call fcn.10083f90
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0x1005fbd6
test eax, eax
je 0x1005fcc7
cmp dword [0x2f91a04], 0xa7f9
jne 0x1005fc34
lea eax, [esi + 0x360]
push 0x1009af2c
push eax
mov edi, dword [sym.imp.MSVCR100.dll_strstr]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1005fc08
cmp dword [esi + 0x5f4], eax
je 0x1005fcc7
push 0x1009af20
lea eax, [esi + 0x360]
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1005fc34
push 0x1009af2c
lea eax, [esi + 0x360]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005fcc7
cmp dword [0x103a8564], 3
jne 0x1005fc51
mov eax, dword [esi + 0x3b0]
cmp eax, 0x2af9
jl 0x1005fc51
cmp eax, 0x2b35
jle 0x1005fcc7
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 0x1005fa76
cmp dword [0x103a81f4], 1
jne 0x1005fcef
cmp byte [0x10342a86], 1
jne 0x1005fcef
push dword [0x10342938]
call fcn.1003d6e9
pop ecx
mov eax, dword [0x103a8564]
cmp eax, 1
je 0x1005fcfe
cmp eax, 2
jne 0x1005fd06
push 1
call fcn.10048b16
pop ecx
cmp dword [0x103a8564], 3
jle 0x1005fd16
push edi
call fcn.10048b16
pop ecx
call fcn.10037c89
call fcn.10037a53
mov esi, eax
cmp esi, edi
jne 0x1005fd3a
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 0x1005f9fa
test esi, esi
je 0x1005fa28
fild dword [ebp - 0x34]
mov eax, dword [esi*4 + 0x2fb6ae0]
fld dword [eax + 0x35c]
fcompp
fnstsw ax
test ah, 5
jp 0x1005fd77
push 0x1009af18
call fcn.10006e54
push esi
call fcn.1005e649
pop ecx
pop ecx
wait
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1005fdb6
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.10084295
ret