Function at 0x1400d5890
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rcx
lea rax, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, rax
je 0x1400d58f4
test dword [rcx + 0x44], 0x8000
je 0x1400d58f4
cmp byte [rcx + 0x41], 4
jb 0x1400d58f4
mov edx, 0x10
mov r9d, dword [rbp + 0x58]
lea r8, [0x140267d30]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140047d56.0]
mov rdx, rax
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 0
mov r9d, 0x89
lea r8, str.ServiceThread::suspend
lea rcx, [rsp + 0x40]
call fcn.140085860
nop
mov rdi, qword [rbp + 0x10]
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov ecx, esi
mov rax, qword [0x1402e0700]
mov rbx, rax
test rax, rax
je 0x1400d5992
nop
cmp qword [rbx + 0x18], rdi
je 0x1400d59e0
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d5980
mov rcx, rsi
mov rax, qword [0x1402e0710]
mov rbx, rax
test rax, rax
je 0x1400d59b6
cmp qword [rbx + 0x18], rdi
je 0x1400d5a1b
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d59a4
mov rbx, rsi
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0x18], rbx
mov eax, dword [rbp + 0x20]
cmp eax, 1
je 0x1400d5a59
mov esi, 0x139f
jmp 0x1400d5ab3
test rcx, rcx
je 0x1400d59f4
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402e0700]
cmp rbx, rax
jne 0x1400d5a04
mov rax, qword [rbx + 0x10]
mov qword [0x1402e0700], rax
mov rax, qword [0x1402e0708]
cmp rbx, rax
cmove rax, rcx
mov qword [0x1402e0708], rax
jmp 0x1400d59b9
test rcx, rcx
je 0x1400d5a2f
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402e0710]
cmp rbx, rax
jne 0x1400d5a3f
mov rax, qword [rbx + 0x10]
mov qword [0x1402e0710], rax
mov rax, qword [0x1402e0718]
cmp rbx, rax
cmove rax, rcx
mov qword [0x1402e0718], rax
jmp 0x1400d59b9
mov dword [rbp + 0x20], 4
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140047d56.0]
lea rcx, [rax + 0x10]
call fcn.1400327a0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, eax
mov rcx, qword [0x1402e0770]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x28]
call qword [case.0x140047d56.0]
lea rcx, [rax + 0x10]
call fcn.1400327c0
cmp ebx, 0xffffffff
jne 0x1400d5ab3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [rsp + 0x48], 0
jne 0x1400d5b48
mov byte [rsp + 0x48], 1
cmp byte [rsp + 0x60], 0
je 0x1400d5b08
lea r9, str.ROLLBACK
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400bfee0
mov rcx, qword [rsp + 0x40]
call fcn.1400bfca0
cmp eax, 0x65
je 0x1400d5b08
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rsp + 0x40]
call fcn.1400bfe70
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.14007fd90
mov ebx, eax
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x65
je 0x1400d5b48
mov r8d, ebx
lea rdx, str.Begin
lea rcx, [rsp + 0x40]
call fcn.1400bfe70
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140154660
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret