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

Disassembly:
push 0xffffffffffffffff
push 0x1007e5f3
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x10097060]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x138]
mov dword [esp + 0x130], 0
cmp dword [ebp + 0x5911c], 0
mov eax, dword [ebp + 0x59104]
mov esi, dword [eax]
lea edi, [ebp + 0x59100]
jne 0x1002256e
cmp edi, edi
mov ebx, dword [edi + 4]
je 0x100224e4
call fcn.10067664
cmp esi, ebx
je 0x10022507
cmp esi, dword [edi + 4]
jne 0x100224f2
call fcn.10067664
mov dword [esi + 0x20], 1
cmp esi, dword [edi + 4]
jne 0x10022503
call fcn.10067664
mov esi, dword [esi]
jmp 0x100224d8
mov dword [ebp + 0x5911c], 1
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002253f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.100673c5
add esp, 0x120
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, edi
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
je 0x10022584
call fcn.10067664
cmp esi, dword [esp + 0x20]
je 0x10022511
cmp esi, dword [edi + 4]
jne 0x10022594
call fcn.10067664
cmp dword [esi + 0x20], 0
jne 0x100226c6
cmp esi, dword [edi + 4]
jne 0x100225a8
call fcn.10067664
mov dword [esi + 0x20], 1
call ebx
sub eax, dword [ebp + 0x59120]
cmp eax, 0x2710
jb 0x100226c6
push 0xfe
lea ecx, [esp + 0x2a]
push 0
push ecx
mov word [esp + 0x30], 0
call fcn.100696f0
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x100225e7
call fcn.10067664
mov edx, dword [esi + 8]
mov eax, dword [edx - 0xc]
add eax, 1
cmp eax, 0x80
jle 0x100225fe
mov edi, 0x80
jmp 0x10022611
cmp esi, dword [edi + 4]
jne 0x10022608
call fcn.10067664
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
lea edi, [eax + 1]
cmp esi, dword [ebp + 0x59104]
jne 0x1002261e
call fcn.10067664
mov eax, dword [esi + 8]
push edi
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x10099e10
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100986c0
mov dword [esp + 0x18], 0xf
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x14]
push edx
mov eax, 0x100986d8
call fcn.1003a770
push 0x100986c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.10001a30
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x140]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.10001cb0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x138], 0
call fcn.100657b0
add esp, 8
call ebx
mov dword [ebp + 0x59120], eax
cmp esi, dword [ebp + 0x59104]
lea edi, [ebp + 0x59100]
jne 0x100226d9
call fcn.10067664
mov esi, dword [esi]
jmp 0x10022574