Function at 0x100037898
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 [0x100152eb8]
lea rbx, [0x100152eb8]
cmp rcx, rbx
je 0x10003790b
test byte [rcx + 0x1c], 1
je 0x10003790b
cmp byte [rcx + 0x19], 5
jb 0x10003790b
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.100036578
mov rcx, qword [0x100152eb8]
xor esi, esi
cmp rcx, rbx
je 0x100037964
test byte [rcx + 0x1c], 2
je 0x100037938
cmp byte [rcx + 0x19], 5
jb 0x100037938
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x2c]
lea r8, [0x10001e638]
call fcn.100034764
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x100037964
test byte [rcx + 0x1c], 2
je 0x100037964
cmp byte [rcx + 0x19], 5
jb 0x100037964
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x2d
mov r9d, 0x1f4
call fcn.100036328
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10003799c
test byte [rcx + 0x1c], 2
je 0x10003799c
cmp byte [rcx + 0x19], 5
jb 0x10003799c
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x2e
call fcn.100034764
mov rdx, qword [r13]
mov r8d, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x100037a00
mov edi, 1
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000379ee
test byte [rcx + 0x1c], 2
je 0x1000379ee
cmp byte [rcx + 0x19], 5
jb 0x1000379ee
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x2e]
lea r8, [0x10001e638]
call fcn.100034764
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rbx, [0x100152eb8]
jmp 0x100037a34
xor edi, edi
mov rcx, qword [0x100152eb8]
lea rbx, [0x100152eb8]
cmp rcx, rbx
je 0x100037a34
test byte [rcx + 0x1c], 2
je 0x100037a34
cmp byte [rcx + 0x19], 5
jb 0x100037a34
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x10001e638]
call fcn.100034764
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0xea60
ja 0x100037a54
mov rcx, qword [0x100152eb8]
test edi, edi
jne 0x100037938
jmp 0x100037aa9
mov esi, 0x5b4
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x100037ae2
test byte [rcx + 0x1c], 2
je 0x100037aa9
cmp byte [rcx + 0x19], 2
jb 0x100037aa9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x100152eb8]
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.10003bc38
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x100037ae2
test byte [rcx + 0x1c], 1
je 0x100037ae2
movzx r9d, byte [rcx + 0x19]
mov eax, esi
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x100037ae2
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001e638]
mov edx, 0x32
mov r9d, esi
call fcn.100036328
mov rdx, qword [r13]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100037b02
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