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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rcx
xor r12d, r12d
mov ebx, r12d
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r15d, eax
mov dword [rsp + 0xa8], eax
cmp eax, 0x7fffffff
je 0x1001b3555
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea edx, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov r13d, r12d
mov edi, dword [rsi + 0xa4]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x1001b3574
mov rax, qword [rsi + 0x30]
cmp dword [rax], 0xc00000fd
je 0x1001b3598
mov eax, dword [rsi + 0xa8]
bt eax, 0xc
jb 0x1001b3598
bt eax, 0xf
jb 0x1001b3598
mov rdx, rsi
mov rcx, qword [rsi + 0x10]
call fcn.1001b1bc0
mov ebx, eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsi]
mov r8d, 0x1658
mov rdx, rsi
mov rcx, rsi
call qword [rax + 0x50]
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsi + 0x50]
test rdx, rdx
je 0x1001b35e3
mov r9, qword [rsi]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, rsi
call qword [r9 + 0x50]
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsi + 0x48]
test rdx, rdx
je 0x1001b3613
mov r9, qword [rsi]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, rsi
call qword [r9 + 0x50]
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsi + 0x78], eax
mov rcx, rsi
call fcn.1001b33c0
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
lea rdi, [rsi + 0x18]
call fcn.1001267c0
mov r9, rax
mov qword [rsp + 0x30], rdi
mov eax, dword [rsi + 0x78]
mov dword [rsp + 0x28], eax
lea rax, [0x100056898]
mov qword [rsp + 0x20], rax
lea r8, [0x100057138]
mov edx, 0x104
lea rcx, [rsi + 0x13d0]
call fcn.100060cc0
test eax, eax
js 0x1001b381a
lea rdi, [rsi + 0x15d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov qword [rsi + 0x15e0], r12
mov qword [rsi + 0x15f0], r12
lea r14, [rsi + 0x1640]
mov rcx, qword [rsi + 0x10]
call fcn.1001b1770
mov rcx, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xc008010
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsi + 0x13d0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001b37fd
mov edi, r12d
mov dword [rsp + 0x54], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xb0], eax
nop
nop
nop
nop
mov edx, 0x64
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, eax
cmp eax, 0x102
jne 0x1001b373f
cmp dword [rsi + 0x13b0], 0xffffffff
je 0x1001b3736
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xb0]
cmp eax, dword [rsi + 0x13b0]
jae 0x1001b373f
lea r14, [rsi + 0x1640]
jmp 0x1001b3700
mov eax, r12d
cmp r14d, 0x102
sete al
mov dword [rsi + 0x13bc], eax
mov dword [rsi + 0x13c0], 1
lea rdx, [rsi + 0x13b4]
mov rcx, qword [rsi + 0x1640]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1001b3791
cmp dword [rsi + 0x13b4], 0x103
je 0x1001b3791
mov dword [rsi + 0x13b8], 1
mov dword [rsi + 0x13bc], r12d
jmp 0x1001b37ca
test ebx, ebx
cmovns ebx, edi
mov dword [rsp + 0x50], ebx
mov rcx, qword [rsi + 0x1648]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x1648], r12
mov rcx, qword [rsi + 0x1640]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x1640], r12
jmp 0x1001b3823
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001b380f
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
jmp 0x1001b3823
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x50], ebx
jmp 0x1001b384d
cmp r15d, 0x7fffffff
je 0x1001b3868
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test ebx, ebx
cmovns ebx, r13d
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret