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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ab2d0
push 0x1008691a
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100ae8c8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
wait
mov dword [ebp - 4], 0
cmp dword [0x33ccfd8], 0
je 0x1007d0a0
mov ebx, dword [0x36208e4]
push 0xaf6500
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f10
add esp, 8
mov edi, eax
cmp dword [0x1019f4d0], 1
jne 0x1007d00b
test edi, edi
je 0x1007d00b
cmp edi, ebx
je 0x1007d00b
mov eax, dword [ebx + 0x47e4]
mov cx, word [0x101c04a0]
cmp cx, word [edi + 0x14]
je 0x1007cfd8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c049c], eax
mov dx, word [edi + 0x14]
mov word [0x101c04a0], dx
jmp 0x1007d011
test eax, eax
jle 0x1007cff2
mov byte [0x101c0498], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c049c], eax
jmp 0x1007d011
cmp byte [0x101c0498], 1
jne 0x1007d0a6
mov byte [0x101c0498], 0
call fcn.10037c70
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1019f3e8], 1
jne 0x1007d286
push 0xaf6500
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f10
add esp, 8
test eax, eax
je 0x1007d1a2
cmp eax, ebx
je 0x1007d1a2
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [eax + 0x1f6c]
fstp dword [esp + 4]
fld dword [eax + 0x1f64]
fstp dword [esp]
call fcn.10008200
add esp, 0x10
fild dword [0x1019f3f0]
fcompp
fnstsw ax
test ah, 5
jp 0x1007d1a2
push 8
push 0x100a1fb8
call fcn.1003ae70
push 0xffff
call fcn.1006e700
add esp, 0xc
wait
jmp 0x1007d83e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x1012d3fd], 1
jne 0x1007d0c8
call esi
mov dword [0x101c049c], eax
mov byte [0x1012d3fd], 0
jmp 0x1007d011
call esi
sub eax, dword [0x101c049c]
cmp eax, 0x1b58
jb 0x1007d116
push 0xa
lea eax, [ebp - 0x50]
push eax
movzx ecx, word [0x101c04a0]
push ecx
call dword [sym.imp.MSVCR100D.dll__itoa]
push 8
lea edx, [ebp - 0x50]
push edx
call fcn.1003ae70
movzx eax, word [0x101c04a0]
mov byte [eax + 0x1011d208], 1
push 0xffff
call fcn.1006e700
add esp, 0x18
jmp 0x1007d011
call esi
sub eax, dword [0x101c049c]
cmp eax, 0xfa0
jb 0x1007d011
call esi
sub eax, dword [0x1012d208]
cmp eax, 0xfa0
jb 0x1007d149
call fcn.10037c70
call esi
mov dword [0x101c049c], eax
jmp 0x1007d011
call esi
sub eax, dword [0x101c0494]
cmp eax, 0x12c
jbe 0x1007d011
call esi
mov dword [0x101c0494], eax
sub esp, 8
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10037e60
call fcn.10037c70
push 0
movzx ecx, word [0x101c04a0]
push ecx
mov edx, dword [0x1019f4ac]
dec edx
push edx
call fcn.10037fa0
add esp, 0x14
jmp 0x1007d011
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10008200
add esp, 0x10
fild dword [0x1019f3f0]
fcompp
fnstsw ax
test ah, 5
jnp 0x1007d22b
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10008200
add esp, 0x10
fcomp qword [0x100a0610]
fnstsw ax
test ah, 0x41
jne 0x1007d286
cmp dword [0x1019f4c8], 1
jne 0x1007d286
push fcn.1007be80
push 0x1f4
mov ecx, dword [0x101a46e4]
add ecx, 0x59
push ecx
mov edx, dword [0x100eaf2c]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [0x1012d416], 1
mov dword [0x1011d174], 0
push 0
push 0
push 0
push 0
call fcn.1007be80
push 8
push 0x100a1fa8
call fcn.1003ae70
add esp, 8
mov byte [0x1012d409], 0
wait
jmp 0x1007d83e
mov eax, dword [0x36208e4]
cmp dword [eax + 0x2a58], 6
jne 0x1007d2cb
call esi
sub eax, dword [0x101c0490]
cmp eax, 0x12c
jbe 0x1007d2cb
push 0x100956e0
call fcn.10046500
push 0x1009edac
call fcn.10046500
push 0x1009edb8
call fcn.10046500
add esp, 0xc
call esi
mov dword [0x101c0490], eax
cmp dword [0x1019f3e4], 1
jne 0x1007d65f
call esi
sub eax, dword [0x101c0428]
mov ecx, dword [0x1019f590]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jb 0x1007d30b
cmp dword [0x1019f58c], 1
jne 0x1007d30b
push 0xffff
call fcn.1006e700
add esp, 4
jmp 0x1007d519
test edi, edi
je 0x1007d48d
cmp edi, ebx
je 0x1007d48d
cmp dword [0x1019f3f4], 1
jne 0x1007d344
push edi
call fcn.1003ae60
add esp, 4
test al, al
jne 0x1007d344
push 0xffff
call fcn.1006e700
add esp, 4
wait
jmp 0x1007d83e
push 1
push edi
call fcn.1007b570
add esp, 8
test al, al
jne 0x1007d372
push 0xffff
call fcn.1006e700
push 8
push 0x100a1f8c
call fcn.1003ae70
add esp, 0xc
wait
jmp 0x1007d83e
cmp dword [0x1019f4a4], 2
jne 0x1007d3f4
call esi
sub eax, dword [0x101c048c]
cmp eax, 0x3e8
jb 0x1007d3f4
call esi
mov dword [0x101c048c], eax
call fcn.1007bae0
mov edi, eax
cmp edi, dword [ebx + 0x1d24]
je 0x1007d3f4
call fcn.10037c70
push edi
call fcn.1006e700
push 0xaf6500
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.10006f10
mov cx, word [eax + 0x14]
mov word [0x101c04a0], cx
add eax, 0x5274
push eax
push 0x100a1f80
push str._s:_s
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea eax, [ebp - 0x80]
push eax
call fcn.1003ae70
add esp, 0x24
jmp 0x1007d7a8
push 0xaf6500
mov ecx, dword [ebx + 0x1d24]
push ecx
call fcn.10006f10
fld dword [eax + 0x1f64]
fstp dword [ebp - 0x90]
fld dword [eax + 0x1f6c]
fstp dword [ebp - 0x8c]
fld dword [ebp - 0x8c]
fstp dword [esp + 4]
fld dword [ebp - 0x90]
fstp dword [esp]
sub esp, 8
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10008200
add esp, 0x10
fcomp dword [0x1009e8e8]
fnstsw ax
test ah, 0x41
jne 0x1007d65f
call esi
sub eax, dword [0x101c0488]
cmp eax, 0xfa
jb 0x1007d65f
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.1006e700
add esp, 4
call esi
mov dword [0x101c0488], eax
jmp 0x1007d65f
call fcn.1007bae0
mov edi, eax
test edi, edi
jle 0x1007d4f9
call fcn.10037c70
push edi
call fcn.1006e700
push 0xaf6500
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f10
add esp, 0xc
mov edi, eax
call esi
mov dword [0x101c049c], eax
mov cx, word [edi + 0x14]
mov word [0x101c04a0], cx
add edi, 0x5274
push edi
push 0x100a1f80
push str._s:_s
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea eax, [ebp - 0x80]
push eax
call fcn.1003ae70
add esp, 0x18
jmp 0x1007d7a8
cmp dword [0x1019f58c], 1
jne 0x1007d5a8
call esi
sub eax, dword [0x101c0428]
cmp eax, 0x7d0
jb 0x1007d5a8
call esi
mov dword [0x101c0428], eax
mov ecx, dword [0x101b8d5c]
dec ecx
push ecx
call fcn.1007bf80
add esp, 4
mov dword [0x101b8d5c], eax
xor edi, edi
cmp eax, edi
jl 0x1007d5a8
push 0x1007cec0
push 0x64
mov edx, dword [0x101a46e4]
add edx, 0x59
push edx
mov eax, dword [0x100eaf2c]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [0x1012d416], 1
mov dword [0x1011d174], edi
mov ecx, dword [0x101b8d5c]
push ecx
call fcn.1007bf10
mov dword [0x1012d38c], edi
mov edx, dword [0x101b8d5c]
push edx
push 0x100a1f70
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea ecx, [ebp - 0x30]
push ecx
call fcn.1003ae70
add esp, 0x18
mov byte [0x1012d409], 0
wait
jmp 0x1007d83e
call esi
mov dword [0x101c049c], eax
xor edx, edx
mov word [0x101c04a0], dx
mov byte [0x1012d409], dl
cmp dword [0x1019f3e8], 1
jne 0x1007d65f
call esi
sub eax, dword [0x101c0484]
cmp eax, 0x12c
jb 0x1007d65f
call esi
mov dword [0x101c0484], eax
sub esp, 8
fld dword [ebx + 0x1f64]
fstp dword [esp + 4]
fld dword [0x101c04cc]
fstp dword [esp]
call fcn.100561a0
add esp, 8
fcomp dword [0x1009e6dc]
fnstsw ax
test ah, 5
jp 0x1007d63b
sub esp, 8
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [0x101c04c8]
fstp dword [esp]
call fcn.100561a0
add esp, 8
fcomp dword [0x1009e6dc]
fnstsw ax
test ah, 5
jnp 0x1007d65f
sub esp, 0xc
fld dword [0x101c04c8]
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x101c04cc]
fstp dword [esp]
call fcn.10038190
add esp, 0xc
mov eax, dword [ebx + 0x1d24]
cmp eax, 0xffff
je 0x1007d0a0
cmp eax, dword [ebx + 0xc]
je 0x1007d0a0
call esi
sub eax, dword [0x101c0480]
cmp eax, 0x12c
jbe 0x1007d0a0
call esi
mov dword [0x101c0480], eax
mov esi, 1
cmp dword [0x1019f3ec], esi
jne 0x1007d79e
mov eax, dword [ebx + 0x2a58]
cmp eax, 8
je 0x1007d6e3
cmp eax, 9
je 0x1007d6e3
cmp eax, 0xb
je 0x1007d6e3
cmp eax, 0xa
jne 0x1007d79e
call fcn.1003cb20
cmp al, 1
jne 0x1007d79e
cmp dword [0x1019f4a8], esi
sete al
mov byte [0x1012d409], al
wait
jmp 0x1007d83e
xor edi, edi
mov dword [ebp - 0x88], edi
mov ecx, 0x101a20fc
call fcn.10001040
cmp edi, eax
jge 0x1007d79e
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, 0x14
jge 0x1007d798
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.10006bb0
add esp, 8
mov edx, dword [0x101a20fc]
mov ecx, dword [edx + edi*4]
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1007d747
test dl, dl
je 0x1007d743
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007d747
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007d727
xor eax, eax
jmp 0x1007d74c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007d792
cmp dword [ebp - 0x24], eax
jne 0x1007d792
cmp dword [0x1019f4a8], 1
jne 0x1007d77c
mov byte [0x1012d409], 1
push 0xb
push esi
call fcn.10038380
add esp, 8
mov dword [0x100ae394], esi
wait
jmp 0x1007d83e
push esi
call fcn.100380f0
add esp, 4
mov byte [0x1012d409], 0
wait
jmp 0x1007d83e
inc esi
jmp 0x1007d6ff
inc edi
jmp 0x1007d6e5
mov dword [0x100ae394], 0xffffffff
mov eax, 1
cmp dword [0x1019f4a8], eax
jne 0x1007d7ff
cmp dword [0x1019f3ec], eax
jne 0x1007d7f5
push 0xaf6500
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f10
add esp, 8
test eax, eax
jle 0x1007d7f5
cmp eax, ebx
je 0x1007d7f5
push 0xb
mov ecx, dword [0x1019f4ac]
dec ecx
push ecx
call fcn.10038380
add esp, 8
mov byte [0x1012d409], 1
wait
jmp 0x1007d83e
mov byte [0x1012d409], 0
wait
jmp 0x1007d83e
cmp dword [0x1019f3ec], eax
jne 0x1007d832
push 0xaf6500
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.10006f10
add esp, 8
test eax, eax
jle 0x1007d832
cmp eax, ebx
je 0x1007d832
mov eax, dword [0x1019f4ac]
dec eax
push eax
call fcn.100380f0
add esp, 4
wait
jmp 0x1007d83e
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10086746
mov esp, ebp
pop ebp
ret