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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018d87f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.1001bc40
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x50], ebx
call fcn.1001baf0
add esp, 8
mov byte [esp + 0x48], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], 1
call fcn.1001b9c0
add esp, 0x14
push eax
mov byte [esp + 0x4c], 2
call fcn.100232a0
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebx
je 0x1001ab49
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1001ab49
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001ab49
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
call edi
mov ecx, dword [esp + 0x24]
sub eax, dword [esp + 0x18]
cmp ecx, ebx
je 0x1001ab98
cmp byte [ecx + 0xd], bl
je 0x1001ab98
mov edx, dword [ebp + 0x10]
sub edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0xc]
push edx
add ecx, 0x14
push ecx
lea eax, [esp + 0x40]
push eax
call fcn.1001ba60
push eax
mov byte [esp + 0x5c], 3
call fcn.100232a0
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x4c]
add esp, 0x14
jmp 0x1001ac4e
push 0x38
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x48], 4
cmp esi, ebx
je 0x1001abf1
lea ecx, [esi + 0x10]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], 0xffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x101a4104
mov byte [ecx], bl
call fcn.1000c100
lea eax, [esi + 0x2c]
push ebx
mov byte [esp + 0x4c], 5
push eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.1001cff0
jmp 0x1001abf3
xor esi, esi
push esi
lea eax, [esp + 0x1c]
mov byte [esp + 0x4c], 1
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.1001c7b0
mov eax, dword [ebp + 8]
mov byte [esp + 0x48], 6
mov ecx, dword [esp + 0x18]
mov byte [ecx + 8], bl
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
mov dword [edx + 0xc], 0xfffffffd
mov ecx, dword [esp + 0x1c]
push ebx
add ecx, 0x10
push eax
call fcn.1000bd90
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x18]
push eax
call edx
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001ac7d
mov esi, eax
or ecx, 0xffffffff
add eax, 4
lock xadd dword [eax], ecx
jne 0x1001ac7d
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x1001ac7d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x48], bl
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x1001acb2
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001acb2
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001acb2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x1001aceb
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001aceb
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001aceb
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc