Function at 0x1078fb0
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.0107a032
cmp byte [0x1082d91], 0
mov dword [ebp - 8], 0xbb8
je 0x1078fe6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1082d94], eax
je 0x1078fed
mov dword [ebp - 8], 0x1770
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
call fcn.01075d9e
test eax, eax
jl 0x107921e
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.01078f42
test eax, eax
jl 0x10791f0
lea ecx, [ebp - 0x1c]
call fcn.0107a0fa
cmp eax, 2
jle 0x1079062
mov eax, dword [ebp - 0x1c]
cmp word [eax + 2], 0x3a
jne 0x1079062
movzx eax, word [eax]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x1079053
movzx esi, ax
sub esi, 0x61
jmp 0x1079062
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x1079062
movzx esi, ax
sub esi, 0x41
cmp byte [ebp + 0xc], bl
je 0x10791bd
cmp esi, ebx
jl 0x107907b
cmp byte [esi + 0x10831fc], bl
jne 0x10791bd
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1079092
mov ecx, eax
call fcn.01077bf6
mov edi, eax
jmp 0x1079094
xor edi, edi
cmp edi, ebx
je 0x10791f0
lea ecx, [ebp - 0x1c]
call fcn.0107acd9
push eax
mov ecx, edi
call fcn.0107a6a0
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push edi
push 0x107891a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x1079183
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 0x1079141
test esi, esi
jl 0x10790f5
mov byte [esi + 0x10831fc], 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 [0x107fde0]
cmp eax, 0x107fde0
je 0x10791b4
test byte [eax + 0x3c], 1
je 0x10791b4
cmp byte [eax + 0x39], 2
jb 0x10791b4
push dword [edi]
push dword [edi + 0x10]
push 0x1015e00
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010779ec
jmp 0x10791b4
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x1079179
test byte [eax + 0x3c], 1
je 0x1079179
cmp byte [eax + 0x39], 2
jb 0x1079179
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x107fde0]
push 0x1015e00
push 0xf
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010779ec
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10791b4
mov ecx, edi
call fcn.010788f3
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x10791b4
test byte [eax + 0x3c], 1
je 0x10791b4
cmp byte [eax + 0x39], 2
jb 0x10791b4
push 0x1015e00
push 0x10
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01060db4
mov ecx, edi
call fcn.010788f3
jmp 0x10791e8
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 0x10791e8
sub eax, ebx
cmp dword [ebp - 8], eax
sbb al, al
inc al
mov byte [esi + 0x10831fc], al
cmp dword [ebp - 4], 0xffffffff
jne 0x1079206
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1079208
and eax, 0xffff
or eax, 0x80070000
jmp 0x1079208
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.01078b97
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0107a784
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8