Function at 0x106b45a
Capabilities:
Check for time delay via gettickcount
Create thread
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
or esi, 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0106d6aa
cmp byte [0x1074e11], 0
mov dword [ebp - 8], 0xbb8
je 0x106b490
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1074e14], eax
je 0x106b497
mov dword [ebp - 8], 0x1770
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
call fcn.010691d0
test eax, eax
jl 0x106b6ca
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0106b3ec
test eax, eax
jl 0x106b69c
lea ecx, [ebp - 0x1c]
call fcn.0106d775
cmp eax, 2
jle 0x106b50e
mov eax, dword [ebp - 0x1c]
push 0x3a
pop ecx
cmp cx, word [eax + 2]
jne 0x106b50e
movzx eax, word [eax]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x106b4ff
movzx esi, ax
sub esi, 0x61
jmp 0x106b50e
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x106b50e
movzx esi, ax
sub esi, 0x41
cmp byte [ebp + 0xc], bl
je 0x106b669
cmp esi, ebx
jl 0x106b527
cmp byte [esi + 0x107527c], bl
jne 0x106b669
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x106b53e
mov ecx, eax
call fcn.0106a03f
mov edi, eax
jmp 0x106b540
xor edi, edi
cmp edi, ebx
je 0x106b69c
lea ecx, [ebp - 0x1c]
call fcn.0106e38a
push eax
mov ecx, edi
call fcn.0106dd37
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push edi
push 0x106ad4b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x106b62f
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x106b5ed
test esi, esi
jl 0x106b5a1
mov byte [esi + 0x107527c], 1
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b660
test byte [eax + 0x3c], 1
je 0x106b660
cmp byte [eax + 0x39], 2
jb 0x106b660
push dword [edi]
push dword [edi + 0x10]
push 0x1011500
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069e35
jmp 0x106b660
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b625
test byte [eax + 0x3c], 1
je 0x106b625
cmp byte [eax + 0x39], 2
jb 0x106b625
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x1072c98]
push 0x1011500
push 0xf
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069e35
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x106b660
mov ecx, edi
call fcn.0106ad24
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b660
test byte [eax + 0x3c], 1
je 0x106b660
cmp byte [eax + 0x39], 2
jb 0x106b660
push 0x1011500
push 0x10
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ce
mov ecx, edi
call fcn.0106ad24
jmp 0x106b694
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
call edi
test esi, esi
jl 0x106b694
sub eax, ebx
cmp dword [ebp - 8], eax
sbb al, al
inc al
mov byte [esi + 0x107527c], al
cmp dword [ebp - 4], 0xffffffff
jne 0x106b6b2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x106b6b4
and eax, 0xffff
or eax, 0x80070000
jmp 0x106b6b4
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0106b00a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0106de2a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8