Function at 0x101c860
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x7fffffff
je 0x101c8ae
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dc10
mov dword [rsp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x78]
cmp ecx, eax
jne 0x101c8f8
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dc30
cmp dword [rax], 0xc00000fd
je 0x101c932
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dd70
and eax, 0x1000
test eax, eax
jne 0x101c932
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dd70
and eax, 0x8000
test eax, eax
je 0x101c934
jmp 0x101c962
mov rdx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.0101acd0
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
mov r8d, 0x1658
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x100]
call qword [rax + 0x50]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dcf0
test rax, rax
je 0x101ca6d
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dcf0
mov qword [rsp + 0x80], rax
xor ecx, ecx
mov qword [rsp + 0x88], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x88]
mov rax, rdx
mov rdx, qword [rsp + 0x80]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x100]
add rcx, 0x18
call fcn.0101dcf0
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx]
mov qword [rsp + 0x98], rcx
mov rdx, qword [rsp + 0x90]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x98]
call qword [rax + 0x50]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dcd0
test rax, rax
je 0x101cb3f
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0101dcd0
mov qword [rsp + 0xa0], rax
xor ecx, ecx
mov qword [rsp + 0xa8], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0xa8]
mov rax, rdx
mov rdx, qword [rsp + 0xa0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
shl rax, 1
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x100]
add rcx, 0x18
call fcn.0101dcd0
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx]
mov qword [rsp + 0xb8], rcx
mov rdx, qword [rsp + 0xb0]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0xb8]
call qword [rax + 0x50]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x100]
mov dword [rcx + 0x78], eax
mov rcx, qword [rsp + 0x100]
call fcn.0101c470
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x60], 0
je 0x101cb92
lea rax, [0x010055f8]
mov qword [rsp + 0xc0], rax
jmp 0x101cba1
lea rax, [0x010055d8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov qword [rsp + 0xc8], rax
call fcn.0100e3f0
mov rcx, qword [rsp + 0x100]
add rcx, 0x13d0
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rsp + 0x100]
mov edx, dword [rdx + 0x78]
mov dword [rsp + 0x28], edx
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [0x01005718]
mov edx, 0x104
call fcn.0101b6a0
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jl 0x101cedd
mov rax, qword [rsp + 0x100]
add rax, 0x15d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x15e0], 0
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x15f0], 0
mov rax, qword [rsp + 0x100]
add rax, 0x1640
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x100]
add rcx, 0x15d8
mov qword [rsp + 0xd8], rcx
mov rdx, qword [rsp + 0x100]
add rdx, 0x13d0
mov qword [rsp + 0xe0], rdx
mov rdi, qword [rsp + 0x100]
mov rcx, qword [rdi + 0x10]
call fcn.0101b2c0
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc008010
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0xe0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x101ceb9
mov dword [rsp + 0x64], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x68], 0
mov edx, 0x64
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1640]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x102
jne 0x101cd76
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x13b0], 0xffffffff
je 0x101cd74
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x100]
cmp eax, dword [rcx + 0x13b0]
jb 0x101cd74
jmp 0x101cd76
jmp 0x101cd1f
cmp dword [rsp + 0x68], 0x102
jne 0x101cd8d
mov dword [rsp + 0xe8], 1
jmp 0x101cd98
mov dword [rsp + 0xe8], 0
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0xe8]
mov dword [rax + 0x13bc], ecx
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x13c0], 1
mov rax, qword [rsp + 0x100]
add rax, 0x13b4
mov rdx, rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1640]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x101ce21
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x13b4], 0x103
je 0x101ce21
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x13b8], 1
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x13bc], 0
jmp 0x101ce4e
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1648]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x1648], 0
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x1640]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x100]
mov qword [rax + 0x1640], 0
jmp 0x101cedb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.01007060
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
jmp 0x101ceee
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
jmp 0x101cf1b
cmp dword [rsp + 0x54], 0x7fffffff
je 0x101cf38
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, dword [rsp + 0x54]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.01019f10
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
add rsp, 0xf0
pop rdi
ret