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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2408
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100df0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.10019c20
push 0x44
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x5c], xmm0
call fcn.1009c990
add esp, 0xc
cmp dword [0x101f3dc8], 0
je 0x100998a5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
cmp dword [0x101f3dc8], 0
jne 0x10099883
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esi + 0xdc], eax
call edi
jmp 0x10099b21
call fcn.10010680
xor eax, eax
mov dword [ebp - 0x6c], eax
cmp dword [esi + 0x40], eax
je 0x100998bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
cmp dword [esi + 0x5c], 0
je 0x100998d5
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x100998d5
sub eax, dword [esi + 0x44]
cmp eax, ecx
jb 0x10099b24
mov eax, dword [esi + 0x4c]
lea ebx, [esi + 0x4c]
mov dword [ebx + 4], 0
mov ecx, esi
mov byte [eax], 0
lea eax, [ebp - 0x5c]
push eax
push 1
call fcn.10099b50
mov ecx, esi
call fcn.10099630
cmp dword [0x101f3dd0], 0
je 0x1009990e
push dword [0x100df0b4]
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea ecx, [esi + 0xc0]
call fcn.10019ef0
cmp dword [esi + 0x38], 0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [0x101f5e68]
mov dword [ebp - 0x20], eax
mov eax, dword [0x101f5e6c]
mov dword [ebp - 0x1c], eax
je 0x10099a25
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x108]
jae 0x10099a25
lea eax, [esi + 0x34]
lea edi, [esi + 0x70]
push eax
mov ecx, edi
call fcn.10019fb0
mov ecx, dword [esi + 0x100]
push edi
call fcn.1001bd90
mov ecx, dword [esi + 0x100]
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.1001bb00
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x64]
cmp eax, dword [esi + 0x108]
jbe 0x10099a1a
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x10099a0a
mov ecx, 1
mov eax, ebx
shr eax, 3
test eax, eax
cmove eax, ecx
mov ecx, edi
sub ebx, eax
lea eax, [esi + 0x34]
push eax
call fcn.10019fb0
mov eax, dword [esi + 0x74]
lea ecx, [esi + 0x70]
sub eax, ebx
mov edi, ebx
push eax
shr edi, 1
push edi
call fcn.1001a6b0
push 0x100ba4dc
push edi
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.1001a9a0
mov ecx, dword [esi + 0x100]
push edi
call fcn.1001bd90
mov ecx, dword [esi + 0x100]
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.1001bb00
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x64]
cmp eax, dword [esi + 0x108]
jbe 0x10099a06
mov ecx, 1
test ebx, ebx
jne 0x10099997
jmp 0x10099a0a
test ebx, ebx
jne 0x10099a17
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], 0
mov byte [eax], 0
lea ebx, [esi + 0x4c]
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.1001a1f0
mov eax, dword [esi + 0x5c]
lea edx, [esi + 0x58]
cmp eax, dword [ebx + 4]
jne 0x10099a61
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10099a54
test dl, dl
je 0x10099a50
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10099a54
add eax, 2
add ecx, 2
test dl, dl
jne 0x10099a34
xor eax, eax
jmp 0x10099a59
sbb eax, eax
or eax, 1
test eax, eax
je 0x10099b0c
mov eax, dword [0x101f4068]
test eax, eax
je 0x10099a80
cmp dword [ebp - 0x64], 0
je 0x10099a80
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x68]
call eax
add esp, 0x14
mov edi, dword [0x101f4084]
test edi, edi
je 0x10099ac3
mov ecx, dword [esi + 8]
mov eax, ecx
mov edx, dword [esi + 0xc]
and eax, edx
cmp eax, 0xffffffff
je 0x10099ac3
mov eax, dword [esi]
cmp dword [esi + 4], edx
ja 0x10099ac3
jb 0x10099aa6
cmp eax, ecx
jae 0x10099ac3
push 0
push edx
push ecx
push dword [esi + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call edi
add esp, 0x34
mov edi, dword [0x101f4064]
test edi, edi
je 0x10099b03
mov ecx, dword [esi + 8]
mov eax, ecx
mov edx, dword [esi + 0xc]
and eax, edx
cmp eax, 0xffffffff
je 0x10099b03
mov eax, dword [esi]
cmp dword [esi + 4], edx
ja 0x10099b03
jb 0x10099ae9
cmp eax, ecx
jae 0x10099b03
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push 0
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
call edi
add esp, 8
push ebx
lea ecx, [esi + 0x58]
call fcn.10019ef0
push esi
lea ecx, [esi + 0x80]
call fcn.100994b0
cmp dword [esi + 0x40], 0
je 0x10099b24
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x44], eax
push dword [ebp - 0x68]
call fcn.1009cfdf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009bea4
mov esp, ebp
pop ebp
ret