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

Disassembly:
push 0x84
push 0x100a2fd0
call fcn.10083d10
wait
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x12ad094], edi
jne 0x10078d88
call esi
sub eax, dword [0x103d9f3c]
cmp eax, 0x7d0
jb 0x10078d88
call esi
mov dword [0x103d9f3c], eax
push 1
call fcn.1003a94d
pop ecx
cmp dword [0x33ccfd8], edi
jne 0x10078d96
wait
jmp 0x100796ec
mov edi, dword [0x36208e4]
push 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
mov ebx, eax
mov dword [ebp - 0x8c], ebx
cmp dword [0x10342a50], 0
jle 0x10078dde
cmp dword [0x103b7db4], 1
jne 0x10078dde
push 0xaf3b24
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
test eax, eax
jne 0x10078d90
cmp dword [0x103b74b0], 1
jne 0x10078f2e
test ebx, ebx
je 0x10078f2e
cmp ebx, edi
je 0x10078f2e
mov eax, dword [edi + 0x4d24]
mov cx, word [0x103d9f38]
cmp cx, word [ebx + 0x14]
je 0x10078e24
call esi
mov dword [0x103d9f34], eax
mov ax, word [ebx + 0x14]
mov word [0x103d9f38], ax
jmp 0x10078f2e
test eax, eax
jle 0x10078e34
mov byte [0x103d9f30], 1
jmp 0x10078ed7
cmp byte [0x103d9f30], 1
jne 0x10078e4e
mov byte [0x103d9f30], 0
call fcn.10037d23
jmp 0x10078f2e
cmp byte [0x10342a77], 1
jne 0x10078e6a
call esi
mov dword [0x103d9f34], eax
mov byte [0x10342a77], 0
jmp 0x10078f2e
call esi
sub eax, dword [0x103d9f34]
cmp eax, 0x1b58
jb 0x10078eb5
push 0xa
lea eax, [ebp - 0x50]
push eax
movzx eax, word [0x103d9f38]
push eax
call dword [sym.imp.MSVCR100.dll__itoa]
push 8
lea eax, [ebp - 0x50]
push eax
call fcn.1003a31e
movzx eax, word [0x103d9f38]
mov byte [eax + 0x10112868], 1
push 0xffff
call fcn.1006d880
add esp, 0x18
jmp 0x10078f2e
call esi
sub eax, dword [0x103d9f34]
mov ebx, 0xfa0
cmp eax, ebx
jb 0x10078f2e
call esi
sub eax, dword [0x10162864]
cmp eax, ebx
jb 0x10078ee0
call fcn.10037d23
call esi
mov dword [0x103d9f34], eax
jmp 0x10078f2e
call esi
sub eax, dword [0x103d9f2c]
cmp eax, 0x12c
jbe 0x10078f2e
call esi
mov dword [0x103d9f2c], eax
push ecx
push ecx
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [edi + 0x1f64]
fstp dword [esp]
call fcn.10037f32
call fcn.10037d23
push 0
movzx eax, word [0x103d9f38]
push eax
mov eax, dword [0x103b748c]
dec eax
push eax
call fcn.1003804a
add esp, 0x14
xor ebx, ebx
inc ebx
cmp dword [0x103b73c8], ebx
jne 0x1007908e
push 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
test eax, eax
je 0x10078fb6
cmp eax, edi
je 0x10078fb6
sub esp, 0x10
fld dword [0x103da0c8]
fstp dword [esp + 0xc]
fld dword [0x103da0cc]
fstp dword [esp + 8]
fld dword [eax + 0x1f6c]
fstp dword [esp + 4]
fld dword [eax + 0x1f64]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
fild dword [0x103b73d0]
fcompp
fnstsw ax
test ah, 5
jp 0x10078fb6
push 8
push 0x1009cda0
call fcn.1003a31e
push 0xffff
call fcn.1006d880
add esp, 0xc
jmp 0x10078d90
sub esp, 0x10
fld dword [0x103da0c8]
fstp dword [esp + 0xc]
fld dword [0x103da0cc]
fstp dword [esp + 8]
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [edi + 0x1f64]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
fild dword [0x103b73d0]
fcompp
fnstsw ax
test ah, 5
jnp 0x1007903e
sub esp, 0x10
fld dword [0x103da0c8]
fstp dword [esp + 0xc]
fld dword [0x103da0cc]
fstp dword [esp + 8]
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [edi + 0x1f64]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
fcomp qword [0x10098cd0]
fnstsw ax
test ah, 0x41
jne 0x1007908e
cmp dword [0x103b74a8], ebx
jne 0x1007908e
push fcn.10077f2e
push 0x1f4
mov eax, dword [0x103be1bc]
add eax, 0x59
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [0x10342a91], 1
xor eax, eax
mov dword [0x101127c4], eax
push eax
push eax
push eax
push eax
call fcn.10077f2e
push 8
push 0x1009cd90
call fcn.1003a31e
pop ecx
pop ecx
mov byte [0x10342a83], 0
jmp 0x10078d90
mov eax, dword [0x36208e4]
cmp dword [eax + 0x2a58], 6
jne 0x100790d5
call esi
sub eax, dword [0x103d9f28]
cmp eax, 0x12c
jbe 0x100790d5
push 0x1008d8e0
call fcn.10044d28
mov dword [esp], 0x100992b8
call fcn.10044d28
mov dword [esp], 0x100992c4
call fcn.10044d28
pop ecx
call esi
mov dword [0x103d9f28], eax
cmp dword [0x103b73c4], ebx
jne 0x1007949c
call esi
sub eax, dword [0x103d9ec0]
mov ecx, dword [0x103b7570]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jl 0x10079111
cmp dword [0x103b756c], ebx
jne 0x10079111
push 0xffff
call fcn.1006d880
pop ecx
jmp 0x1007936a
mov ebx, dword [ebp - 0x8c]
test ebx, ebx
je 0x1007929f
cmp ebx, edi
je 0x1007929f
cmp dword [0x103b73d4], 1
jne 0x1007914b
push ebx
call fcn.1003a315
pop ecx
test al, al
jne 0x1007914b
push 0xffff
call fcn.1006d880
pop ecx
jmp 0x10078d90
movzx eax, word [ebx + 0x14]
imul eax, eax, 0x1cc
cmp byte [eax + 0xfbafad], 0
je 0x10079179
push 0xffff
call fcn.1006d880
push 8
push 0x1009cd84
call fcn.1003a31e
jmp 0x10078fae
push 1
push ebx
call fcn.10077587
pop ecx
pop ecx
test al, al
jne 0x1007919a
push 0xffff
call fcn.1006d880
push 8
push 0x1009cd68
jmp 0x1007916f
cmp dword [0x103b7484], 2
jne 0x1007920b
call esi
sub eax, dword [0x103d9f24]
cmp eax, 0x3e8
jb 0x1007920b
call esi
mov dword [0x103d9f24], eax
call fcn.100779be
mov ebx, eax
cmp ebx, dword [edi + 0x1d24]
je 0x1007920b
call fcn.10037d23
push ebx
call fcn.1006d880
mov dword [esp], 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
mov ebx, eax
mov ax, word [ebx + 0x14]
mov word [0x103d9f38], ax
fld dword [ebx + 0x1f6c]
fstp dword [esp + 4]
fld dword [ebx + 0x1f64]
fstp dword [esp]
push ecx
push ecx
jmp 0x100792f7
push 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
fld dword [eax + 0x1f64]
fstp dword [ebp - 0x94]
fld dword [eax + 0x1f6c]
fstp dword [ebp - 0x8c]
fld dword [ebp - 0x8c]
fstp dword [esp + 4]
fld dword [ebp - 0x94]
fstp dword [esp]
push ecx
push ecx
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [edi + 0x1f64]
fstp dword [esp]
call fcn.10006f13
add esp, 0x10
fcomp dword [0x1009ad44]
fnstsw ax
test ah, 0x41
jne 0x1007949c
call esi
sub eax, dword [0x103d9f20]
cmp eax, 0xfa
jb 0x1007949c
push dword [edi + 0x1d24]
call fcn.1006d880
pop ecx
call esi
mov dword [0x103d9f20], eax
jmp 0x1007949c
call fcn.100779be
mov ebx, eax
test ebx, ebx
jle 0x1007934a
call fcn.10037d23
push ebx
call fcn.1006d880
mov dword [esp], 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
mov ebx, eax
call esi
mov dword [0x103d9f34], eax
mov ax, word [ebx + 0x14]
mov word [0x103d9f38], ax
sub esp, 0x10
fld dword [ebx + 0x1f6c]
fstp dword [esp + 0xc]
fld dword [ebx + 0x1f64]
fstp dword [esp + 8]
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [edi + 0x1f64]
fstp dword [esp]
call fcn.10006f13
call fcn.10083ba0
push eax
add ebx, 0x5274
push ebx
push 0x1009cd60
push str._s:_s_L__d
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea eax, [ebp - 0x80]
push eax
call fcn.1003a31e
add esp, 0x2c
call esi
mov dword [0x103d9ec0], eax
jmp 0x10079652
cmp dword [0x103b756c], 1
jne 0x100793ef
call esi
sub eax, dword [0x103d9ec0]
cmp eax, 0x7d0
jl 0x100793ef
call esi
sub eax, 0x186a0
mov dword [0x103d9ec0], eax
mov eax, dword [0x103d27f4]
dec eax
push eax
call fcn.100780a6
pop ecx
mov dword [0x103d27f4], eax
test eax, eax
js 0x100793ef
mov byte [0x10342a95], 0
push 0x10078cc4
push 0x12c
mov eax, dword [0x103be1bc]
add eax, 0x59
push eax
push dword [0x100e04bc]
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [0x10342a91], 1
and dword [0x101127c4], 0
and dword [0x103429f8], 0
push dword [0x103d27f4]
push 0x1009cd44
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 8
lea eax, [ebp - 0x30]
push eax
call fcn.1003a31e
add esp, 0x14
jmp 0x10079082
call esi
mov dword [0x103d9f34], eax
xor eax, eax
mov word [0x103d9f38], ax
mov byte [0x10342a83], al
cmp dword [0x103b73c8], 1
jne 0x1007949c
call esi
sub eax, dword [0x103d9f1c]
cmp eax, 0x12c
jb 0x1007949c
call esi
mov dword [0x103d9f1c], eax
push ecx
push ecx
fld dword [edi + 0x1f64]
fstp dword [esp + 4]
fld dword [0x103da0cc]
fstp dword [esp]
call fcn.100548ea
pop ecx
pop ecx
fcomp dword [0x10098908]
fnstsw ax
test ah, 5
jp 0x10079478
push ecx
push ecx
fld dword [edi + 0x1f6c]
fstp dword [esp + 4]
fld dword [0x103da0c8]
fstp dword [esp]
call fcn.100548ea
pop ecx
pop ecx
fcomp dword [0x10098908]
fnstsw ax
test ah, 5
jnp 0x1007949c
sub esp, 0xc
fld dword [0x103da0c8]
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x103da0cc]
fstp dword [esp]
call fcn.1003815c
add esp, 0xc
mov eax, dword [edi + 0x1d24]
cmp eax, 0xffff
je 0x10078d90
cmp eax, dword [edi + 0xc]
je 0x10078d90
call esi
sub eax, dword [0x103d9f18]
cmp eax, 0x12c
jbe 0x10078d90
call esi
mov dword [0x103d9f18], eax
xor ebx, ebx
mov dword [ebp - 0x84], ebx
cmp dword [ebp - 0x84], 0x14
jge 0x1007954b
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x84]
call fcn.1000601d
push 0x1009ad74
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x10079543
cmp dword [ebp - 0x24], ebx
jne 0x10079543
push 0x1009ad68
call fcn.10006122
pop ecx
test eax, eax
je 0x10079543
mov eax, dword [0x36208e4]
mov esi, dword [eax + 0x1d24]
push dword [eax + 0xc]
call fcn.1006d880
push dword [ebp - 0x84]
call fcn.1005c545
mov byte [0x10342a83], bl
push esi
jmp 0x10078fa9
inc dword [ebp - 0x84]
jmp 0x100794d8
mov eax, dword [edi + 0x2a58]
cmp dword [0x103b73cc], 1
jne 0x1007964b
cmp eax, 8
jne 0x1007957d
cmp dword [0x10342910], ebx
jne 0x10079578
cmp byte [0x10342a99], 1
je 0x1007964b
cmp eax, 8
je 0x100795b6
cmp eax, 9
je 0x100795b6
cmp eax, 0xb
je 0x100795b6
cmp eax, 0xd
je 0x100795b6
cmp eax, 0xa
jne 0x1007964b
call fcn.1005ca18
cmp al, 1
jne 0x1007964b
cmp dword [0x103b7488], 1
sete al
mov byte [0x10342a83], al
jmp 0x10078d90
mov dword [ebp - 0x88], ebx
mov ecx, 0x103bb574
call fcn.100011d9
cmp dword [ebp - 0x88], eax
jge 0x1007964b
xor esi, esi
mov dword [ebp - 0x90], esi
cmp esi, 0x14
jge 0x10079640
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.1000601d
mov eax, dword [0x103bb574]
mov ecx, dword [ebp - 0x88]
push dword [eax + ecx*4]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x1007963d
cmp dword [ebp - 0x24], ebx
jne 0x1007963d
cmp dword [0x103b7488], 1
jne 0x1007962c
mov byte [0x10342a83], 1
push 0xb
push esi
call fcn.1005c5f4
pop ecx
mov dword [0x100a6388], esi
jmp 0x10079145
push esi
call fcn.1005c545
mov byte [0x10342a83], bl
jmp 0x10079145
inc esi
jmp 0x100795d0
inc dword [ebp - 0x88]
jmp 0x100795bc
or dword [0x100a6388], 0xffffffff
cmp dword [0x103b7488], 1
jne 0x100796a5
cmp dword [0x103b73cc], 1
jne 0x10079082
push 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
test eax, eax
je 0x10079082
cmp eax, edi
je 0x10079082
push 0xb
mov eax, dword [0x103b748c]
dec eax
push eax
call fcn.1005c5f4
pop ecx
mov byte [0x10342a83], 1
jmp 0x10079145
cmp dword [0x103b73cc], 1
jne 0x10078d90
push 0xaf6500
push dword [edi + 0x1d24]
call fcn.10006298
pop ecx
pop ecx
test eax, eax
je 0x10078d90
cmp eax, edi
je 0x10078d90
mov eax, dword [0x103b748c]
dec eax
push eax
call fcn.1005c545
jmp 0x10079145
mov dword [ebp - 4], 0xfffffffe
call fcn.10083d58
ret