Function at 0x1000378dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r12, rcx
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x10003794f
test byte [rcx + 0x1c], 1
je 0x10003794f
cmp byte [rcx + 0x19], 5
jb 0x10003794f
mov rcx, qword [rcx + 0x10]
mov dword [rax - 0x28], 0xea60
mov dword [rax - 0x30], r8d
mov rax, qword [r13]
lea r8, [0x10001e638]
mov edx, 0x2b
mov r9, r12
mov qword [rsp + 0x20], rax
call fcn.1000365bc
mov rcx, qword [0x100153eb8]
xor esi, esi
cmp rcx, rbx
je 0x1000379a8
test byte [rcx + 0x1c], 2
je 0x10003797c
cmp byte [rcx + 0x19], 5
jb 0x10003797c
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x2c]
lea r8, [0x10001e638]
call fcn.100034784
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000379a8
test byte [rcx + 0x1c], 2
je 0x1000379a8
cmp byte [rcx + 0x19], 5
jb 0x1000379a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x2d
mov r9d, 0x1f4
call fcn.100036510
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x1000379e0
test byte [rcx + 0x1c], 2
je 0x1000379e0
cmp byte [rcx + 0x19], 5
jb 0x1000379e0
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x2e
call fcn.100034784
mov rdx, qword [r13]
mov r8d, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x100037a44
mov edi, 1
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100037a32
test byte [rcx + 0x1c], 2
je 0x100037a32
cmp byte [rcx + 0x19], 5
jb 0x100037a32
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x2e]
lea r8, [0x10001e638]
call fcn.100034784
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rbx, [0x100153eb8]
jmp 0x100037a78
xor edi, edi
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x100037a78
test byte [rcx + 0x1c], 2
je 0x100037a78
cmp byte [rcx + 0x19], 5
jb 0x100037a78
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x10001e638]
call fcn.100034784
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0xea60
ja 0x100037a98
mov rcx, qword [0x100153eb8]
test edi, edi
jne 0x10003797c
jmp 0x100037aed
mov esi, 0x5b4
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x100037b26
test byte [rcx + 0x1c], 2
je 0x100037aed
cmp byte [rcx + 0x19], 2
jb 0x100037aed
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x100153eb8]
lea r8, [0x10001e638]
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9d, ebp
mov dword [rsp + 0x28], 0xea60
mov dword [rsp + 0x20], eax
call fcn.100036318
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x100037b26
test byte [rcx + 0x1c], 1
je 0x100037b26
movzx r9d, byte [rcx + 0x19]
mov eax, esi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x100037b26
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x32
mov r9d, esi
call fcn.100036510
mov rdx, qword [r13]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100037b46
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret