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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rcx
lea rcx, [rsp + 0x30]
mov bl, dl
or r12d, 0xffffffff
call fcn.10007d40c
cmp byte [0x10008895d], 0
mov ebp, 0xbb8
je 0x10007a4af
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000889b8], eax
je 0x10007a4b4
mov ebp, 0x1770
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r14
call fcn.100075298
test eax, eax
js 0x10007a7a5
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [0x10008895c], 0
mov r15d, eax
je 0x10007a4fa
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.100079ef4
test eax, eax
js 0x10007a771
mov rcx, qword [rsp + 0x30]
or esi, 0xffffffff
test rcx, rcx
je 0x10007a514
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
jmp 0x10007a516
xor eax, eax
cmp eax, 2
jle 0x10007a54d
mov eax, 0x3a
cmp ax, word [rcx + 2]
jne 0x10007a54d
movzx eax, word [rcx]
mov edx, 0x61
sub ax, dx
cmp ax, 0x19
jbe 0x10007a548
movzx eax, word [rcx]
mov edx, 0x41
sub ax, dx
cmp ax, 0x19
ja 0x10007a54d
movzx esi, word [rcx]
sub esi, edx
lea rdi, [0x100089140]
test bl, bl
je 0x10007a73e
test esi, esi
js 0x10007a56d
movsxd rax, esi
cmp byte [rax + rdi], 0
jne 0x10007a73e
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
je 0x10007a59b
mov rcx, rax
call fcn.10007d40c
or dword [rdi + 0x18], 0xffffffff
mov dword [rdi + 0x10], 1
mov dword [rdi + 0x14], 2
jmp 0x10007a59d
xor edi, edi
test rdi, rdi
je 0x10007a771
lea rcx, [rsp + 0x30]
call fcn.10007e338
mov rcx, rdi
mov rdx, rax
call fcn.10007e284
lock add dword [rdi + 0x10], 1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x10007a384]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
je 0x10007a6ce
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r13
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10007a675
test esi, esi
js 0x10007a617
lea rcx, [0x100089140]
movsxd rax, esi
mov byte [rax + rcx], 1
mov ecx, dword [rdi + 0x14]
mov r12d, dword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x100087a50]
lea rax, [0x100087a50]
cmp rcx, rax
je 0x10007a71f
test byte [rcx + 0x3c], 1
je 0x10007a71f
cmp byte [rcx + 0x39], 2
jb 0x10007a71f
mov rax, qword [rdi]
mov r9d, dword [rdi + 0x14]
mov rcx, qword [rcx + 0x30]
lea r8, [0x100022090]
mov edx, 0xe
mov qword [rsp + 0x20], rax
call fcn.100079c04
jmp 0x10007a71f
mov rcx, qword [0x100087a50]
lea rax, [0x100087a50]
cmp rcx, rax
je 0x10007a6c1
test byte [rcx + 0x3c], 1
je 0x10007a6c1
cmp byte [rcx + 0x39], 2
jb 0x10007a6c1
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x100087a50]
mov rcx, qword [rcx + 0x30]
lea r8, [0x100022090]
mov r9d, eax
mov edx, 0xf
mov qword [rsp + 0x20], rbx
call fcn.100079c04
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10007a71f
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
jne 0x10007a6eb
mov rcx, rdi
call fcn.10007d970
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [0x100087a50]
lea rax, [0x100087a50]
cmp rcx, rax
je 0x10007a71f
test byte [rcx + 0x3c], 1
je 0x10007a71f
cmp byte [rcx + 0x39], 2
jb 0x10007a71f
mov rcx, qword [rcx + 0x30]
lea r8, [0x100022090]
mov edx, 0x10
call fcn.100070d94
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
jne 0x10007a76b
mov rcx, rdi
call fcn.10007d970
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10007a76b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
js 0x10007a76b
sub eax, ebx
movsxd rcx, esi
cmp eax, ebp
setbe dl
mov byte [rcx + rdi], dl
cmp r12d, 0xffffffff
jne 0x10007a78a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
jmp 0x10007a78d
xor r8d, r8d
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.100079f70
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rsp + 0x30]
call fcn.10007d970
mov rbx, qword [rsp + 0x80]
mov eax, r12d
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret