Function at 0x102f0f9
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.0102994e
cmp byte [0x1035009], 0
mov dword [ebp - 8], 0xbb8
je 0x102f12f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x103500c], eax
je 0x102f136
mov dword [ebp - 8], 0x1770
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
call fcn.0102ccf0
test eax, eax
jl 0x102f369
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.0102f08b
test eax, eax
jl 0x102f33b
lea ecx, [ebp - 0x1c]
call fcn.01029a19
cmp eax, 2
jle 0x102f1ad
mov eax, dword [ebp - 0x1c]
push 0x3a
pop ecx
cmp cx, word [eax + 2]
jne 0x102f1ad
movzx eax, word [eax]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x102f19e
movzx esi, ax
sub esi, 0x61
jmp 0x102f1ad
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x102f1ad
movzx esi, ax
sub esi, 0x41
cmp byte [ebp + 0xc], bl
je 0x102f308
cmp esi, ebx
jl 0x102f1c6
cmp byte [esi + 0x1035474], bl
jne 0x102f308
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x102f1dd
mov ecx, eax
call fcn.0102db4b
mov edi, eax
jmp 0x102f1df
xor edi, edi
cmp edi, ebx
je 0x102f33b
lea ecx, [ebp - 0x1c]
call fcn.0102a4a7
push eax
mov ecx, edi
call fcn.0102a00c
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push edi
push 0x102e927
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x102f2ce
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 0x102f28c
test esi, esi
jl 0x102f240
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 0x102f2ff
test byte [eax + 0x3c], 1
je 0x102f2ff
cmp byte [eax + 0x39], 2
jb 0x102f2ff
push dword [edi]
push dword [edi + 0x10]
push 0x1002558
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d941
jmp 0x102f2ff
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102f2c4
test byte [eax + 0x3c], 1
je 0x102f2c4
cmp byte [eax + 0x39], 2
jb 0x102f2c4
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.0102d941
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102f2ff
mov ecx, edi
call fcn.0102e900
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102f2ff
test byte [eax + 0x3c], 1
je 0x102f2ff
cmp byte [eax + 0x39], 2
jb 0x102f2ff
push 0x1002558
push 0x10
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ef
mov ecx, edi
call fcn.0102e900
jmp 0x102f333
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 0x102f333
sub eax, ebx
cmp dword [ebp - 8], eax
sbb al, al
inc al
mov byte [esi + 0x1035474], al
cmp dword [ebp - 4], 0xffffffff
jne 0x102f351
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102f353
and eax, 0xffff
or eax, 0x80070000
jmp 0x102f353
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0102eca9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0102a0ff
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8