Function at 0x105d820
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 0x105d86e
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.0105ebf0
mov dword [rsp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x78]
cmp ecx, eax
jne 0x105d8b8
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ec10
cmp dword [rax], 0xc00000fd
je 0x105d8f2
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ed50
and eax, 0x1000
test eax, eax
jne 0x105d8f2
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ed50
and eax, 0x8000
test eax, eax
je 0x105d8f4
jmp 0x105d922
mov rdx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x10]
call fcn.0105bd90
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.0105b020
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.0105b020
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ecd0
test rax, rax
je 0x105da2d
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ecd0
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.0105ecd0
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.0105b020
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ecb0
test rax, rax
je 0x105daff
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov rcx, rax
call fcn.0105ecb0
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.0105ecb0
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.0105b020
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.0105d430
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.0105b020
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x60], 0
je 0x105db52
lea rax, [0x0100f4c0]
mov qword [rsp + 0xc0], rax
jmp 0x105db61
lea rax, [0x0100f4a0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x100]
add rax, 0x18
mov qword [rsp + 0xc8], rax
call fcn.01059320
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, [0x0100f5d8]
mov edx, 0x104
call fcn.01054c50
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jl 0x105de9d
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.0105c360
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 0x105de79
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 0x105dd36
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x13b0], 0xffffffff
je 0x105dd34
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x100]
cmp eax, dword [rcx + 0x13b0]
jb 0x105dd34
jmp 0x105dd36
jmp 0x105dcdf
cmp dword [rsp + 0x68], 0x102
jne 0x105dd4d
mov dword [rsp + 0xe8], 1
jmp 0x105dd58
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 0x105dde1
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x13b4], 0x103
je 0x105dde1
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x13b8], 1
mov rax, qword [rsp + 0x100]
mov dword [rax + 0x13bc], 0
jmp 0x105de0e
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.0105b020
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 0x105de9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.01056aa0
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.0105b020
mov dword [rsp + 0x58], eax
jmp 0x105deae
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call fcn.0105b020
mov dword [rsp + 0x58], eax
jmp 0x105dedb
cmp dword [rsp + 0x54], 0x7fffffff
je 0x105def8
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.0105b020
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
add rsp, 0xf0
pop rdi
ret