Function at 0x100405130
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 r14d, r14d
mov edi, r14d
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsp + 0xb8], eax
cmp eax, 0x7fffffff
je 0x100405182
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea edx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov r15d, r14d
mov ebx, dword [rsi + 0xa4]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1004051a1
mov rax, qword [rsi + 0x30]
cmp dword [rax], 0xc00000fd
je 0x1004051ce
mov eax, dword [rsi + 0xa8]
bt eax, 0xc
jb 0x1004051b6
bt eax, 0xf
mov r8d, r14d
jae 0x1004051bc
mov r8d, 1
mov rdx, rsi
mov rcx, qword [rsi + 0x10]
call fcn.1004037e0
mov edi, eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsi]
mov r8d, 0x1670
mov rdx, rsi
mov rcx, rsi
call qword [rax + 0x50]
test edi, edi
cmovns edi, eax
mov dword [rsp + 0x50], edi
mov rdx, qword [rsi + 0x50]
or rbx, 0xffffffffffffffff
test rdx, rdx
je 0x10040521d
mov rax, qword [rsi]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x100405200
add r8, r8
mov rcx, rsi
call qword [rax + 0x50]
test edi, edi
cmovns edi, eax
mov dword [rsp + 0x50], edi
mov rdx, qword [rsi + 0x48]
test rdx, rdx
je 0x10040524d
mov rax, qword [rsi]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x100405230
lea r8, [rbx + rbx]
mov rcx, rsi
call qword [rax + 0x50]
test edi, edi
cmovns edi, eax
mov dword [rsp + 0x50], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsi + 0x78], eax
mov rcx, rsi
call fcn.100404df0
test edi, edi
cmovns edi, eax
mov dword [rsp + 0x50], edi
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
mov eax, dword [rsi + 0x78]
mov dword [rsp + 0x28], eax
lea rax, str.SQLDUMPER.EXE
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str._ls__ld_0_0:0__p
mov edx, 0x104
lea rcx, [rsi + 0x13e8]
call fcn.100402ca0
test eax, eax
js 0x100405428
lea rbx, [rsi + 0x15f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov qword [rsi + 0x15f8], r14
mov qword [rsi + 0x1608], r14
mov rcx, qword [rsi + 0x10]
add rcx, 0x17d8
lea r13, [rsi + 0x1658]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xc008010
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsi + 0x13e8]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100405416
mov ebx, r14d
mov dword [rsp + 0x54], ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xa8], eax
nop word [rax + rax]
mov edx, 0x64
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
cmp eax, 0x102
jne 0x100405369
cmp dword [rsi + 0x13c8], 0xffffffff
je 0x100405367
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xa8]
cmp eax, dword [rsi + 0x13c8]
jae 0x100405369
jmp 0x100405330
mov eax, r14d
cmp r12d, 0x102
sete al
mov dword [rsi + 0x13d4], eax
mov dword [rsi + 0x13d8], 1
lea rdx, [rsi + 0x13cc]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1004053b2
cmp dword [rsi + 0x13cc], 0x103
je 0x1004053b2
mov qword [rsi + 0x13d0], 1
jmp 0x1004053e3
test edi, edi
cmovns edi, ebx
mov dword [rsp + 0x50], edi
mov rcx, qword [rsi + 0x1660]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x1660], r14
mov rcx, qword [rsi + 0x1658]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x1658], r14
jmp 0x100405431
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100405428
movzx eax, ax
or eax, 0x80070000
test edi, edi
cmovns edi, eax
mov dword [rsp + 0x50], edi
jmp 0x100405453
mov ebx, dword [rsp + 0xb8]
cmp ebx, 0x7fffffff
je 0x100405473
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test edi, edi
cmovns edi, r15d
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret