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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ab320
push 0x100869ba
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 [0x34d2968], 0
je 0x1007d0e0
mov ebx, dword [0x2fb7ac4]
push 0xd740a0
mov eax, dword [ebx + 0x1d20]
push eax
call fcn.10006fa0
add esp, 8
mov edi, eax
cmp dword [0x1019f4d0], 1
jne 0x1007d04b
test edi, edi
je 0x1007d04b
cmp edi, ebx
je 0x1007d04b
mov eax, dword [ebx + 0x47e4]
mov cx, word [0x101c04a0]
cmp cx, word [edi + 0x14]
je 0x1007d018
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c049c], eax
mov dx, word [edi + 0x14]
mov word [0x101c04a0], dx
jmp 0x1007d051
test eax, eax
jle 0x1007d032
mov byte [0x101c0498], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c049c], eax
jmp 0x1007d051
cmp byte [0x101c0498], 1
jne 0x1007d0e6
mov byte [0x101c0498], 0
call fcn.10037cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1019f3e8], 1
jne 0x1007d2c6
push 0xd740a0
mov eax, dword [ebx + 0x1d20]
push eax
call fcn.10006fa0
add esp, 8
test eax, eax
je 0x1007d1e2
cmp eax, ebx
je 0x1007d1e2
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [eax + 0x1f68]
fstp dword [esp + 4]
fld dword [eax + 0x1f60]
fstp dword [esp]
call fcn.10008290
add esp, 0x10
fild dword [0x1019f3f0]
fcompp
fnstsw ax
test ah, 5
jp 0x1007d1e2
push 8
push 0x100a2008
call fcn.1003af20
push 0xffff
call fcn.1006e730
add esp, 0xc
wait
jmp 0x1007d87e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x1012d3fd], 1
jne 0x1007d108
call esi
mov dword [0x101c049c], eax
mov byte [0x1012d3fd], 0
jmp 0x1007d051
call esi
sub eax, dword [0x101c049c]
cmp eax, 0x1b58
jb 0x1007d156
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.1003af20
movzx eax, word [0x101c04a0]
mov byte [eax + 0x1011d208], 1
push 0xffff
call fcn.1006e730
add esp, 0x18
jmp 0x1007d051
call esi
sub eax, dword [0x101c049c]
cmp eax, 0xfa0
jb 0x1007d051
call esi
sub eax, dword [0x1012d208]
cmp eax, 0xfa0
jb 0x1007d189
call fcn.10037cf0
call esi
mov dword [0x101c049c], eax
jmp 0x1007d051
call esi
sub eax, dword [0x101c0494]
cmp eax, 0x12c
jbe 0x1007d051
call esi
mov dword [0x101c0494], eax
sub esp, 8
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10037ef0
call fcn.10037cf0
push 0
movzx ecx, word [0x101c04a0]
push ecx
mov edx, dword [0x1019f4ac]
dec edx
push edx
call fcn.10038030
add esp, 0x14
jmp 0x1007d051
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10008290
add esp, 0x10
fild dword [0x1019f3f0]
fcompp
fnstsw ax
test ah, 5
jnp 0x1007d26b
sub esp, 0x10
fld dword [0x101c04c8]
fstp dword [esp + 0xc]
fld dword [0x101c04cc]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10008290
add esp, 0x10
fcomp qword [0x100a0660]
fnstsw ax
test ah, 0x41
jne 0x1007d2c6
cmp dword [0x1019f4c8], 1
jne 0x1007d2c6
push fcn.1007bee0
push 0x1f4
mov ecx, dword [0x101a46e8]
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.1007bee0
push 8
push 0x100a1ff8
call fcn.1003af20
add esp, 8
mov byte [0x1012d409], 0
wait
jmp 0x1007d87e
mov eax, dword [0x2fb7ac4]
cmp dword [eax + 0x2a50], 6
jne 0x1007d30b
call esi
sub eax, dword [0x101c0490]
cmp eax, 0x12c
jbe 0x1007d30b
push 0x10095708
call fcn.10046580
push 0x1009edf4
call fcn.10046580
push 0x1009ee00
call fcn.10046580
add esp, 0xc
call esi
mov dword [0x101c0490], eax
cmp dword [0x1019f3e4], 1
jne 0x1007d69f
call esi
sub eax, dword [0x101c0428]
mov ecx, dword [0x1019f590]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jb 0x1007d34b
cmp dword [0x1019f58c], 1
jne 0x1007d34b
push 0xffff
call fcn.1006e730
add esp, 4
jmp 0x1007d559
test edi, edi
je 0x1007d4cd
cmp edi, ebx
je 0x1007d4cd
cmp dword [0x1019f3f4], 1
jne 0x1007d384
push edi
call fcn.1003af10
add esp, 4
test al, al
jne 0x1007d384
push 0xffff
call fcn.1006e730
add esp, 4
wait
jmp 0x1007d87e
push 1
push edi
call fcn.1007b5d0
add esp, 8
test al, al
jne 0x1007d3b2
push 0xffff
call fcn.1006e730
push 8
push 0x100a1fdc
call fcn.1003af20
add esp, 0xc
wait
jmp 0x1007d87e
cmp dword [0x1019f4a4], 2
jne 0x1007d434
call esi
sub eax, dword [0x101c048c]
cmp eax, 0x3e8
jb 0x1007d434
call esi
mov dword [0x101c048c], eax
call fcn.1007bb40
mov edi, eax
cmp edi, dword [ebx + 0x1d20]
je 0x1007d434
call fcn.10037cf0
push edi
call fcn.1006e730
push 0xd740a0
mov edx, dword [ebx + 0x1d20]
push edx
call fcn.10006fa0
mov cx, word [eax + 0x14]
mov word [0x101c04a0], cx
add eax, 0x5258
push eax
push 0x100a1fd0
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.1003af20
add esp, 0x24
jmp 0x1007d7e8
push 0xd740a0
mov ecx, dword [ebx + 0x1d20]
push ecx
call fcn.10006fa0
fld dword [eax + 0x1f60]
fstp dword [ebp - 0x90]
fld dword [eax + 0x1f68]
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 + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.10008290
add esp, 0x10
fcomp dword [0x1009e930]
fnstsw ax
test ah, 0x41
jne 0x1007d69f
call esi
sub eax, dword [0x101c0488]
cmp eax, 0xfa
jb 0x1007d69f
mov edx, dword [ebx + 0x1d20]
push edx
call fcn.1006e730
add esp, 4
call esi
mov dword [0x101c0488], eax
jmp 0x1007d69f
call fcn.1007bb40
mov edi, eax
test edi, edi
jle 0x1007d539
call fcn.10037cf0
push edi
call fcn.1006e730
push 0xd740a0
mov eax, dword [ebx + 0x1d20]
push eax
call fcn.10006fa0
add esp, 0xc
mov edi, eax
call esi
mov dword [0x101c049c], eax
mov cx, word [edi + 0x14]
mov word [0x101c04a0], cx
add edi, 0x5258
push edi
push 0x100a1fd0
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.1003af20
add esp, 0x18
jmp 0x1007d7e8
cmp dword [0x1019f58c], 1
jne 0x1007d5e8
call esi
sub eax, dword [0x101c0428]
cmp eax, 0x7d0
jb 0x1007d5e8
call esi
mov dword [0x101c0428], eax
mov ecx, dword [0x101b8d5c]
dec ecx
push ecx
call fcn.1007bfe0
add esp, 4
mov dword [0x101b8d5c], eax
xor edi, edi
cmp eax, edi
jl 0x1007d5e8
push 0x1007cf00
push 0x64
mov edx, dword [0x101a46e8]
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.1007bf70
mov dword [0x1012d38c], edi
mov edx, dword [0x101b8d5c]
push edx
push 0x100a1fc0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea ecx, [ebp - 0x30]
push ecx
call fcn.1003af20
add esp, 0x18
mov byte [0x1012d409], 0
wait
jmp 0x1007d87e
call esi
mov dword [0x101c049c], eax
xor edx, edx
mov word [0x101c04a0], dx
mov byte [0x1012d409], dl
cmp dword [0x1019f3e8], 1
jne 0x1007d69f
call esi
sub eax, dword [0x101c0484]
cmp eax, 0x12c
jb 0x1007d69f
call esi
mov dword [0x101c0484], eax
sub esp, 8
fld dword [ebx + 0x1f60]
fstp dword [esp + 4]
fld dword [0x101c04cc]
fstp dword [esp]
call fcn.100560c0
add esp, 8
fcomp dword [0x1009e724]
fnstsw ax
test ah, 5
jp 0x1007d67b
sub esp, 8
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [0x101c04c8]
fstp dword [esp]
call fcn.100560c0
add esp, 8
fcomp dword [0x1009e724]
fnstsw ax
test ah, 5
jnp 0x1007d69f
sub esp, 0xc
fld dword [0x101c04c8]
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x101c04cc]
fstp dword [esp]
call fcn.10038220
add esp, 0xc
mov eax, dword [ebx + 0x1d20]
cmp eax, 0xffff
je 0x1007d0e0
cmp eax, dword [ebx + 0xc]
je 0x1007d0e0
call esi
sub eax, dword [0x101c0480]
cmp eax, 0x12c
jbe 0x1007d0e0
call esi
mov dword [0x101c0480], eax
mov esi, 1
cmp dword [0x1019f3ec], esi
jne 0x1007d7de
mov eax, dword [ebx + 0x2a50]
cmp eax, 8
je 0x1007d723
cmp eax, 9
je 0x1007d723
cmp eax, 0xb
je 0x1007d723
cmp eax, 0xa
jne 0x1007d7de
call fcn.1003cbd0
cmp al, 1
jne 0x1007d7de
cmp dword [0x1019f4a8], esi
sete al
mov byte [0x1012d409], al
wait
jmp 0x1007d87e
xor edi, edi
mov dword [ebp - 0x88], edi
mov ecx, 0x101a20fc
call fcn.10001240
cmp edi, eax
jge 0x1007d7de
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, 0x14
jge 0x1007d7d8
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.10006c40
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 0x1007d787
test dl, dl
je 0x1007d783
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007d787
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007d767
xor eax, eax
jmp 0x1007d78c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007d7d2
cmp dword [ebp - 0x24], eax
jne 0x1007d7d2
cmp dword [0x1019f4a8], 1
jne 0x1007d7bc
mov byte [0x1012d409], 1
push 0xb
push esi
call fcn.10038420
add esp, 8
mov dword [0x100ae394], esi
wait
jmp 0x1007d87e
push esi
call fcn.10038180
add esp, 4
mov byte [0x1012d409], 0
wait
jmp 0x1007d87e
inc esi
jmp 0x1007d73f
inc edi
jmp 0x1007d725
mov dword [0x100ae394], 0xffffffff
mov eax, 1
cmp dword [0x1019f4a8], eax
jne 0x1007d83f
cmp dword [0x1019f3ec], eax
jne 0x1007d835
push 0xd740a0
mov eax, dword [ebx + 0x1d20]
push eax
call fcn.10006fa0
add esp, 8
test eax, eax
jle 0x1007d835
cmp eax, ebx
je 0x1007d835
push 0xb
mov ecx, dword [0x1019f4ac]
dec ecx
push ecx
call fcn.10038420
add esp, 8
mov byte [0x1012d409], 1
wait
jmp 0x1007d87e
mov byte [0x1012d409], 0
wait
jmp 0x1007d87e
cmp dword [0x1019f3ec], eax
jne 0x1007d872
push 0xd740a0
mov edx, dword [ebx + 0x1d20]
push edx
call fcn.10006fa0
add esp, 8
test eax, eax
jle 0x1007d872
cmp eax, ebx
je 0x1007d872
mov eax, dword [0x1019f4ac]
dec eax
push eax
call fcn.10038180
add esp, 4
wait
jmp 0x1007d87e
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.100867e6
mov esp, ebp
pop ebp
ret