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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101940c0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
movlpd qword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x4000
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x21], 0
call fcn.10177fb4
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0
cmp dword [edi + 0x1c], 0
jb 0x100d9bf9
ja 0x100d99ef
cmp dword [edi + 0x18], 0
jbe 0x100d9bf9
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
nop dword [eax + eax]
cmp byte [ebx + 0x9c], 0
jne 0x100d9bbf
mov ecx, dword [ebp - 0x38]
xor eax, eax
cmp dword [ecx + 4], eax
jne 0x100d9a1f
or esi, 0xffffffff
jmp 0x100d9aa9
lea esi, [ecx + 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push eax
push ecx
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 4]
call fcn.100e4150
add esp, 8
test al, al
jne 0x100d9a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
or esi, 0xffffffff
jmp 0x100d9aa6
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
adc dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
mov esi, dword [ebp - 0x1c]
cmovne ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
cmp byte [ebx + 0x9c], 0
mov dword [ebx + 0xb0], eax
jne 0x100d9bbc
cmp esi, 0xffffffff
je 0x100d9bbc
test esi, esi
je 0x100d9af7
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x18]
push edx
push esi
push dword [ebp - 0x34]
mov eax, dword [ecx]
mov dword [ebp - 0x18], 0
mov eax, dword [eax]
call eax
test al, al
je 0x100d9bac
cmp dword [ebp - 0x18], esi
jne 0x100d9bac
mov ecx, dword [ebp - 0x30]
jmp 0x100d9b2b
cmp byte [edi + 0x28], 0
jne 0x100d9bbc
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x100d9b17
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x9c], 0
jne 0x100d9bbc
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, 0xf
ja 0x100d9bbc
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x100d9b91
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov edx, dword [edi + 0x1c]
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0x18], edx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1c], eax
je 0x100d9b69
mov edx, dword [edi + 0x24]
add ecx, eax
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x18]
adc edx, dword [edi + 0x24]
mov dword [ebp - 0x18], edx
jmp 0x100d9b6f
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x28]
xor eax, eax
add edx, dword [ebp - 0x1c]
mov esi, dword [esi]
adc eax, dword [ebp - 0x40]
push eax
push edx
push dword [ebp - 0x18]
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [ebx + 0x98]
call eax
test al, al
je 0x100d9bf3
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
cmp eax, dword [edi + 0x1c]
ja 0x100d9bbf
jb 0x100d9a00
cmp esi, dword [edi + 0x18]
jae 0x100d9bbf
jmp 0x100d9a00
mov byte [ebp - 0x21], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xb0], eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x100d9bd6
push eax
call fcn.10178437
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0xb8], esi
mov dword [ebx + 0xbc], eax
cmp esi, dword [edi + 0x18]
jne 0x100d9c04
cmp eax, dword [edi + 0x1c]
jne 0x100d9c04
mov al, 1
jmp 0x100d9c06
mov byte [ebp - 0x21], 1
jmp 0x100d9bbc
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
jmp 0x100d9bbf
xor al, al
cmp byte [ebp - 0x21], 0
je 0x100d9c16
xor al, al
cmp byte [ebx + 0x9c], al
jne 0x100d9c25
cmp byte [edi + 0x28], 0
mov ecx, 1
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10177d47
mov esp, ebp
pop ebp
ret 0xc