Function at 0x102f109
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.0102995e
cmp byte [0x1035009], 0
mov dword [ebp - 8], 0xbb8
je 0x102f13f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x103500c], eax
je 0x102f146
mov dword [ebp - 8], 0x1770
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
call fcn.0102cd00
test eax, eax
jl 0x102f379
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.0102f09b
test eax, eax
jl 0x102f34b
lea ecx, [ebp - 0x1c]
call fcn.01029a29
cmp eax, 2
jle 0x102f1bd
mov eax, dword [ebp - 0x1c]
push 0x3a
pop ecx
cmp cx, word [eax + 2]
jne 0x102f1bd
movzx eax, word [eax]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x102f1ae
movzx esi, ax
sub esi, 0x61
jmp 0x102f1bd
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x102f1bd
movzx esi, ax
sub esi, 0x41
cmp byte [ebp + 0xc], bl
je 0x102f318
cmp esi, ebx
jl 0x102f1d6
cmp byte [esi + 0x1035474], bl
jne 0x102f318
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x102f1ed
mov ecx, eax
call fcn.0102db5b
mov edi, eax
jmp 0x102f1ef
xor edi, edi
cmp edi, ebx
je 0x102f34b
lea ecx, [ebp - 0x1c]
call fcn.0102a4b7
push eax
mov ecx, edi
call fcn.0102a01c
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push edi
push 0x102e937
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x102f2de
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 0x102f29c
test esi, esi
jl 0x102f250
mov byte [esi + 0x1035474], 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 [0x1034134]
cmp eax, 0x1034134
je 0x102f30f
test byte [eax + 0x3c], 1
je 0x102f30f
cmp byte [eax + 0x39], 2
jb 0x102f30f
push dword [edi]
push dword [edi + 0x10]
push 0x1002558
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d951
jmp 0x102f30f
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102f2d4
test byte [eax + 0x3c], 1
je 0x102f2d4
cmp byte [eax + 0x39], 2
jb 0x102f2d4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x1034134]
push 0x1002558
push 0xf
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d951
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102f30f
mov ecx, edi
call fcn.0102e910
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102f30f
test byte [eax + 0x3c], 1
je 0x102f30f
cmp byte [eax + 0x39], 2
jb 0x102f30f
push 0x1002558
push 0x10
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ff
mov ecx, edi
call fcn.0102e910
jmp 0x102f343
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 0x102f343
sub eax, ebx
cmp dword [ebp - 8], eax
sbb al, al
inc al
mov byte [esi + 0x1035474], al
cmp dword [ebp - 4], 0xffffffff
jne 0x102f361
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102f363
and eax, 0xffff
or eax, 0x80070000
jmp 0x102f363
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0102ecb9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0102a10f
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8