Function at 0x100031468
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.10002fbf0
cmp byte [0x10003e21e], 0
mov ebp, 0xbb8
je 0x1000314ab
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10003e234], eax
je 0x1000314b0
mov ebp, 0x1770
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r14
call fcn.100033340
test eax, eax
js 0x1000317a1
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [0x10003e21d], 0
mov r15d, eax
je 0x1000314f6
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.100030ef0
test eax, eax
js 0x10003176d
mov rcx, qword [rsp + 0x30]
or esi, 0xffffffff
test rcx, rcx
je 0x100031510
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
jmp 0x100031512
xor eax, eax
cmp eax, 2
jle 0x100031549
mov eax, 0x3a
cmp ax, word [rcx + 2]
jne 0x100031549
movzx eax, word [rcx]
mov edx, 0x61
sub ax, dx
cmp ax, 0x19
jbe 0x100031544
movzx eax, word [rcx]
mov edx, 0x41
sub ax, dx
cmp ax, 0x19
ja 0x100031549
movzx esi, word [rcx]
sub esi, edx
lea rdi, [0x10003e718]
test bl, bl
je 0x10003173a
test esi, esi
js 0x100031569
movsxd rax, esi
cmp byte [rax + rdi], 0
jne 0x10003173a
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
je 0x100031597
mov rcx, rax
call fcn.10002fbf0
or dword [rdi + 0x18], 0xffffffff
mov dword [rdi + 0x10], 1
mov dword [rdi + 0x14], 2
jmp 0x100031599
xor edi, edi
test rdi, rdi
je 0x10003176d
lea rcx, [rsp + 0x30]
call fcn.100030848
mov rcx, rdi
mov rdx, rax
call fcn.100030794
lock add dword [rdi + 0x10], 1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x100031380]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
je 0x1000316ca
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 0x100031671
test esi, esi
js 0x100031613
lea rcx, [0x10003e718]
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 [0x10003daf8]
lea rax, [0x10003daf8]
cmp rcx, rax
je 0x10003171b
test byte [rcx + 0x3c], 1
je 0x10003171b
cmp byte [rcx + 0x39], 2
jb 0x10003171b
mov rax, qword [rdi]
mov r9d, dword [rdi + 0x14]
mov rcx, qword [rcx + 0x30]
lea r8, [0x100023188]
mov edx, 0xe
mov qword [rsp + 0x20], rax
call fcn.100030c00
jmp 0x10003171b
mov rcx, qword [0x10003daf8]
lea rax, [0x10003daf8]
cmp rcx, rax
je 0x1000316bd
test byte [rcx + 0x3c], 1
je 0x1000316bd
cmp byte [rcx + 0x39], 2
jb 0x1000316bd
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x10003daf8]
mov rcx, qword [rcx + 0x30]
lea r8, [0x100023188]
mov r9d, eax
mov edx, 0xf
mov qword [rsp + 0x20], rbx
call fcn.100030c00
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003171b
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
jne 0x1000316e7
mov rcx, rdi
call fcn.100030020
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [0x10003daf8]
lea rax, [0x10003daf8]
cmp rcx, rax
je 0x10003171b
test byte [rcx + 0x3c], 1
je 0x10003171b
cmp byte [rcx + 0x39], 2
jb 0x10003171b
mov rcx, qword [rcx + 0x30]
lea r8, [0x100023188]
mov edx, 0x10
call fcn.100030b94
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
jne 0x100031767
mov rcx, rdi
call fcn.100030020
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x100031767
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 0x100031767
sub eax, ebx
movsxd rcx, esi
cmp eax, ebp
setbe dl
mov byte [rcx + rdi], dl
cmp r12d, 0xffffffff
jne 0x100031786
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
jmp 0x100031789
xor r8d, r8d
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.100030f6c
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rsp + 0x30]
call fcn.100030020
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