Function at 0x10167f90
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019cb68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov eax, 2
mov word [ebp - 0x20], ax
mov cx, word [ebp + 0xc]
mov word [ebp - 0x1e], cx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp + 0x2c]
cmp eax, 0xffff
je 0x1016810e
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x28]
push edx
lea ecx, [ebp - 0x40]
call fcn.101681a0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0x101681e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp + 0x2c]
imul ecx, ecx, 0x3e8
add eax, ecx
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x25], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x34], 0x102
mov dword [ebp - 0x48], 0x103
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x48], 0x103
je 0x101680a1
cmp dword [ebp - 0x48], 0
je 0x1016807a
mov byte [ebp - 0x25], 1
jmp 0x1016809d
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x30], 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x50]
mov dword [edx], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x28], 0xffffffff
jmp 0x101680b8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x44]
sub ecx, eax
test ecx, ecx
jg 0x10168050
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x101680f6
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.10167d10
mov byte [ebp - 0x49], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10115770
mov al, byte [ebp - 0x49]
jmp 0x10168176
mov byte [ebp - 0x4a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10115770
mov al, byte [ebp - 0x4a]
jmp 0x10168176
push 0x10
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x28]
push ecx
call dword [0x101ec798]
cmp eax, 0xffffffff
jne 0x10168151
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x30], 1
call dword [0x101ec78c]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x34], eax
mov byte [ebp - 0x4b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10115770
mov al, byte [ebp - 0x4b]
jmp 0x10168176
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x50]
add ecx, 4
call fcn.10167d10
mov byte [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10115770
mov al, byte [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret 0x28