Function at 0x140081790
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
call fcn.140082670
mov ecx, 8
call fcn.1401d946c
mov rbx, rax
mov qword [rsp + 0x58], rax
mov qword [rax], r14
xor r12d, r12d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14007e3b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
lea r15, [0x14032b848]
lea r13, str.MbamBgNativeMsg
test rax, rax
je 0x140081848
mov ebx, r12d
mov qword [rsp + 0x58], rbx
lea rcx, [r14 + 0x150]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14008183c
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x1400818b4
lea r8, [rsp + 0x50]
call fcn.1400796b0
jmp 0x1400818b4
mov qword [rsp + 0x50], r15
mov rcx, r15
call fcn.1400132b0
nop
mov rax, qword [0x14032b840]
test rax, rax
je 0x1400818aa
mov rax, qword [rax]
mov rdi, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Could_not_establsh_the_service_client_connection._Error_u.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 1
mov r9d, 0x22f
lea r8, str.c:jenkinsworkspacembam_windows_n_mb4_mbambgnativemsg_srcmbambgnativemsgmessagingservice.cpp
lea rdx, str.MessagingService::ServiceWorkerThread
mov rcx, qword [0x14032b840]
call rdi
nop
lea rcx, [rsp + 0x50]
call fcn.1400126a0
mov rdx, qword [r14 + 0x150]
mov rcx, qword [r14 + 0x158]
sub rcx, rdx
sar rcx, 3
mov r9d, 0xffffffff
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rdi, qword [r14 + 0x150]
mov rax, qword [r14 + 0x158]
mov rsi, r12
mov rbp, rax
sub rbp, rdi
add rbp, 7
shr rbp, 3
cmp rdi, rax
cmova rbp, r12
test rbp, rbp
je 0x14008191b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rdi + 8]
inc rsi
cmp rsi, rbp
jne 0x140081906
mov rax, qword [r14 + 0x150]
mov qword [r14 + 0x158], rax
mov qword [rsp + 0x40], r15
mov rcx, r15
call fcn.1400132b0
nop
mov qword [rsp + 0x50], r15
mov rcx, r15
call fcn.1400132b0
nop
mov rcx, qword [0x14032b840]
test rcx, rcx
je 0x140081985
mov rax, qword [rcx]
lea rdx, str.Exited_the_BG_Native_Host_App.
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 3
mov r9d, 0x23b
lea r8, str.c:jenkinsworkspacembam_windows_n_mb4_mbambgnativemsg_srcmbambgnativemsgmessagingservice.cpp
lea rdx, str.MessagingService::ServiceWorkerThread
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x50]
call fcn.1400126a0
mov rcx, qword [0x14032b840]
test rcx, rcx
je 0x1400819a6
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x38]
mov qword [0x14032b840], r12
lea rcx, [rsp + 0x40]
call fcn.1400126a0
nop
test rbx, rbx
je 0x1400819ca
mov edx, 8
mov rcx, rbx
call fcn.1401d94a8
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401d9c30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret