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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ab218
push 0x10085f9a
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 [0x33cbdd0], 0
je 0x1007c740
mov ebx, dword [0x361f6dc]
push 0xaf54b8
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f00
add esp, 8
mov edi, eax
cmp dword [0x1019f4c0], 1
jne 0x1007c6ab
test edi, edi
je 0x1007c6ab
cmp edi, ebx
je 0x1007c6ab
mov eax, dword [ebx + 0x47e4]
mov cx, word [0x101c0498]
cmp cx, word [edi + 0x14]
je 0x1007c678
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c0494], eax
mov dx, word [edi + 0x14]
mov word [0x101c0498], dx
jmp 0x1007c6b1
test eax, eax
jle 0x1007c692
mov byte [0x101c0490], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x101c0494], eax
jmp 0x1007c6b1
cmp byte [0x101c0490], 1
jne 0x1007c746
mov byte [0x101c0490], 0
call fcn.10037680
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1019f3d8], 1
jne 0x1007c926
push 0xaf54b8
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f00
add esp, 8
test eax, eax
je 0x1007c842
cmp eax, ebx
je 0x1007c842
sub esp, 0x10
fld dword [0x101c04c0]
fstp dword [esp + 0xc]
fld dword [0x101c04c4]
fstp dword [esp + 8]
fld dword [eax + 0x1f6c]
fstp dword [esp + 4]
fld dword [eax + 0x1f64]
fstp dword [esp]
call fcn.100081f0
add esp, 0x10
fild dword [0x1019f3e0]
fcompp
fnstsw ax
test ah, 5
jp 0x1007c842
push 8
push 0x100a1f50
call fcn.1003a930
push 0xffff
call fcn.1006ddc0
add esp, 0xc
wait
jmp 0x1007cede
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x1012d3fd], 1
jne 0x1007c768
call esi
mov dword [0x101c0494], eax
mov byte [0x1012d3fd], 0
jmp 0x1007c6b1
call esi
sub eax, dword [0x101c0494]
cmp eax, 0x1b58
jb 0x1007c7b6
push 0xa
lea eax, [ebp - 0x50]
push eax
movzx ecx, word [0x101c0498]
push ecx
call dword [sym.imp.MSVCR100D.dll__itoa]
push 8
lea edx, [ebp - 0x50]
push edx
call fcn.1003a930
movzx eax, word [0x101c0498]
mov byte [eax + 0x1011d208], 1
push 0xffff
call fcn.1006ddc0
add esp, 0x18
jmp 0x1007c6b1
call esi
sub eax, dword [0x101c0494]
cmp eax, 0xfa0
jb 0x1007c6b1
call esi
sub eax, dword [0x1012d208]
cmp eax, 0xfa0
jb 0x1007c7e9
call fcn.10037680
call esi
mov dword [0x101c0494], eax
jmp 0x1007c6b1
call esi
sub eax, dword [0x101c048c]
cmp eax, 0x12c
jbe 0x1007c6b1
call esi
mov dword [0x101c048c], eax
sub esp, 8
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.10037870
call fcn.10037680
push 0
movzx ecx, word [0x101c0498]
push ecx
mov edx, dword [0x1019f49c]
dec edx
push edx
call fcn.100379b0
add esp, 0x14
jmp 0x1007c6b1
sub esp, 0x10
fld dword [0x101c04c0]
fstp dword [esp + 0xc]
fld dword [0x101c04c4]
fstp dword [esp + 8]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.100081f0
add esp, 0x10
fild dword [0x1019f3e0]
fcompp
fnstsw ax
test ah, 5
jnp 0x1007c8cb
sub esp, 0x10
fld dword [0x101c04c0]
fstp dword [esp + 0xc]
fld dword [0x101c04c4]
fstp dword [esp + 8]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
call fcn.100081f0
add esp, 0x10
fcomp qword [0x100a05f8]
fnstsw ax
test ah, 0x41
jne 0x1007c926
cmp dword [0x1019f4b8], 1
jne 0x1007c926
push fcn.1007b550
push 0x1f4
mov ecx, dword [0x101a46dc]
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.1007b550
push 8
push 0x100a1f40
call fcn.1003a930
add esp, 8
mov byte [0x1012d409], 0
wait
jmp 0x1007cede
mov eax, dword [0x361f6dc]
cmp dword [eax + 0x2a58], 6
jne 0x1007c96b
call esi
sub eax, dword [0x101c0488]
cmp eax, 0x12c
jbe 0x1007c96b
push 0x100956e0
call fcn.10045e50
push 0x1009ed94
call fcn.10045e50
push 0x1009eda0
call fcn.10045e50
add esp, 0xc
call esi
mov dword [0x101c0488], eax
cmp dword [0x1019f3d4], 1
jne 0x1007ccff
call esi
sub eax, dword [0x101c0420]
mov ecx, dword [0x1019f580]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jb 0x1007c9ab
cmp dword [0x1019f57c], 1
jne 0x1007c9ab
push 0xffff
call fcn.1006ddc0
add esp, 4
jmp 0x1007cbb9
test edi, edi
je 0x1007cb2d
cmp edi, ebx
je 0x1007cb2d
cmp dword [0x1019f3e4], 1
jne 0x1007c9e4
push edi
call fcn.1003a920
add esp, 4
test al, al
jne 0x1007c9e4
push 0xffff
call fcn.1006ddc0
add esp, 4
wait
jmp 0x1007cede
push 1
push edi
call fcn.1007ac40
add esp, 8
test al, al
jne 0x1007ca12
push 0xffff
call fcn.1006ddc0
push 8
push 0x100a1f24
call fcn.1003a930
add esp, 0xc
wait
jmp 0x1007cede
cmp dword [0x1019f494], 2
jne 0x1007ca94
call esi
sub eax, dword [0x101c0484]
cmp eax, 0x3e8
jb 0x1007ca94
call esi
mov dword [0x101c0484], eax
call fcn.1007b1b0
mov edi, eax
cmp edi, dword [ebx + 0x1d24]
je 0x1007ca94
call fcn.10037680
push edi
call fcn.1006ddc0
push 0xaf54b8
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.10006f00
mov cx, word [eax + 0x14]
mov word [0x101c0498], cx
add eax, 0x5274
push eax
push 0x100a1f18
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.1003a930
add esp, 0x24
jmp 0x1007ce48
push 0xaf54b8
mov ecx, dword [ebx + 0x1d24]
push ecx
call fcn.10006f00
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.100081f0
add esp, 0x10
fcomp dword [0x1009e8d0]
fnstsw ax
test ah, 0x41
jne 0x1007ccff
call esi
sub eax, dword [0x101c0480]
cmp eax, 0xfa
jb 0x1007ccff
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.1006ddc0
add esp, 4
call esi
mov dword [0x101c0480], eax
jmp 0x1007ccff
call fcn.1007b1b0
mov edi, eax
test edi, edi
jle 0x1007cb99
call fcn.10037680
push edi
call fcn.1006ddc0
push 0xaf54b8
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f00
add esp, 0xc
mov edi, eax
call esi
mov dword [0x101c0494], eax
mov cx, word [edi + 0x14]
mov word [0x101c0498], cx
add edi, 0x5274
push edi
push 0x100a1f18
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.1003a930
add esp, 0x18
jmp 0x1007ce48
cmp dword [0x1019f57c], 1
jne 0x1007cc48
call esi
sub eax, dword [0x101c0420]
cmp eax, 0x7d0
jb 0x1007cc48
call esi
mov dword [0x101c0420], eax
mov ecx, dword [0x101b8d54]
dec ecx
push ecx
call fcn.1007b650
add esp, 4
mov dword [0x101b8d54], eax
xor edi, edi
cmp eax, edi
jl 0x1007cc48
push 0x1007c560
push 0x64
mov edx, dword [0x101a46dc]
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 [0x101b8d54]
push ecx
call fcn.1007b5e0
mov dword [0x1012d38c], edi
mov edx, dword [0x101b8d54]
push edx
push 0x100a1f08
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea ecx, [ebp - 0x30]
push ecx
call fcn.1003a930
add esp, 0x18
mov byte [0x1012d409], 0
wait
jmp 0x1007cede
call esi
mov dword [0x101c0494], eax
xor edx, edx
mov word [0x101c0498], dx
mov byte [0x1012d409], dl
cmp dword [0x1019f3d8], 1
jne 0x1007ccff
call esi
sub eax, dword [0x101c047c]
cmp eax, 0x12c
jb 0x1007ccff
call esi
mov dword [0x101c047c], eax
sub esp, 8
fld dword [ebx + 0x1f64]
fstp dword [esp + 4]
fld dword [0x101c04c4]
fstp dword [esp]
call fcn.10055930
add esp, 8
fcomp dword [0x1009e6c4]
fnstsw ax
test ah, 5
jp 0x1007ccdb
sub esp, 8
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [0x101c04c0]
fstp dword [esp]
call fcn.10055930
add esp, 8
fcomp dword [0x1009e6c4]
fnstsw ax
test ah, 5
jnp 0x1007ccff
sub esp, 0xc
fld dword [0x101c04c0]
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x101c04c4]
fstp dword [esp]
call fcn.10037ba0
add esp, 0xc
mov eax, dword [ebx + 0x1d24]
cmp eax, 0xffff
je 0x1007c740
cmp eax, dword [ebx + 0xc]
je 0x1007c740
call esi
sub eax, dword [0x101c0478]
cmp eax, 0x12c
jbe 0x1007c740
call esi
mov dword [0x101c0478], eax
mov esi, 1
cmp dword [0x1019f3dc], esi
jne 0x1007ce3e
mov eax, dword [ebx + 0x2a58]
cmp eax, 8
je 0x1007cd83
cmp eax, 9
je 0x1007cd83
cmp eax, 0xb
je 0x1007cd83
cmp eax, 0xa
jne 0x1007ce3e
call fcn.1003c5e0
cmp al, 1
jne 0x1007ce3e
cmp dword [0x1019f498], esi
sete al
mov byte [0x1012d409], al
wait
jmp 0x1007cede
xor edi, edi
mov dword [ebp - 0x88], edi
mov ecx, 0x101a20f8
call fcn.10001240
cmp edi, eax
jge 0x1007ce3e
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, 0xa
jge 0x1007ce38
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.10006ba0
add esp, 8
mov edx, dword [0x101a20f8]
mov ecx, dword [edx + edi*4]
lea eax, [ebp - 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1007cde7
test dl, dl
je 0x1007cde3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007cde7
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007cdc7
xor eax, eax
jmp 0x1007cdec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007ce32
cmp dword [ebp - 0x24], eax
jne 0x1007ce32
cmp dword [0x1019f498], 1
jne 0x1007ce1c
mov byte [0x1012d409], 1
push 0xb
push esi
call fcn.10037da0
add esp, 8
mov dword [0x100ae394], esi
wait
jmp 0x1007cede
push esi
call fcn.10037b00
add esp, 4
mov byte [0x1012d409], 0
wait
jmp 0x1007cede
inc esi
jmp 0x1007cd9f
inc edi
jmp 0x1007cd85
mov dword [0x100ae394], 0xffffffff
mov eax, 1
cmp dword [0x1019f498], eax
jne 0x1007ce9f
cmp dword [0x1019f3dc], eax
jne 0x1007ce95
push 0xaf54b8
mov eax, dword [ebx + 0x1d24]
push eax
call fcn.10006f00
add esp, 8
test eax, eax
jle 0x1007ce95
cmp eax, ebx
je 0x1007ce95
push 0xb
mov ecx, dword [0x1019f49c]
dec ecx
push ecx
call fcn.10037da0
add esp, 8
mov byte [0x1012d409], 1
wait
jmp 0x1007cede
mov byte [0x1012d409], 0
wait
jmp 0x1007cede
cmp dword [0x1019f3dc], eax
jne 0x1007ced2
push 0xaf54b8
mov edx, dword [ebx + 0x1d24]
push edx
call fcn.10006f00
add esp, 8
test eax, eax
jle 0x1007ced2
cmp eax, ebx
je 0x1007ced2
mov eax, dword [0x1019f49c]
dec eax
push eax
call fcn.10037b00
add esp, 4
wait
jmp 0x1007cede
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.10085dc6
mov esp, ebp
pop ebp
ret