Function at 0x1400d5880
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 [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rcx
lea rax, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rax
je 0x1400d58e4
test dword [rcx + 0x44], 0x8000
je 0x1400d58e4
cmp byte [rcx + 0x41], 4
jb 0x1400d58e4
mov edx, 0x10
mov r9d, dword [rbp + 0x58]
lea r8, [0x140275ff0]
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 [0x1402f1100]
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, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov ecx, esi
mov rax, qword [0x1402f1090]
mov rbx, rax
test rax, rax
je 0x1400d5982
nop
cmp qword [rbx + 0x18], rdi
je 0x1400d59d0
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d5970
mov rcx, rsi
mov rax, qword [0x1402f10a0]
mov rbx, rax
test rax, rax
je 0x1400d59a6
cmp qword [rbx + 0x18], rdi
je 0x1400d5a0b
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d5994
mov rbx, rsi
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0x18], rbx
mov eax, dword [rbp + 0x20]
cmp eax, 1
je 0x1400d5a49
mov esi, 0x139f
jmp 0x1400d5aa3
test rcx, rcx
je 0x1400d59e4
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402f1090]
cmp rbx, rax
jne 0x1400d59f4
mov rax, qword [rbx + 0x10]
mov qword [0x1402f1090], rax
mov rax, qword [0x1402f1098]
cmp rbx, rax
cmove rax, rcx
mov qword [0x1402f1098], rax
jmp 0x1400d59a9
test rcx, rcx
je 0x1400d5a1f
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402f10a0]
cmp rbx, rax
jne 0x1400d5a2f
mov rax, qword [rbx + 0x10]
mov qword [0x1402f10a0], rax
mov rax, qword [0x1402f10a8]
cmp rbx, rax
cmove rax, rcx
mov qword [0x1402f10a8], rax
jmp 0x1400d59a9
mov dword [rbp + 0x20], 4
mov rcx, qword [0x1402f1100]
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 [0x1402f1100]
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 0x1400d5aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [rsp + 0x48], 0
jne 0x1400d5b38
mov byte [rsp + 0x48], 1
cmp byte [rsp + 0x60], 0
je 0x1400d5af8
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 0x1400d5af8
mov r8d, eax
lea rdx, str.Rollback
lea rcx, [rsp + 0x40]
call fcn.1400bfe70
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.14007fd90
mov ebx, eax
lea rcx, [0x1402f10b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x65
je 0x1400d5b38
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.140154650
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