Function at 0x140010d50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [str.NvcServiceHost..]
lea rax, str.Service_host:
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 8]
lea rdx, [rbp - 0x28]
mov r9d, 4
mov dword [rbp - 0x18], 0x707063
mov r8d, 0x1f9
movdqu xmmword [rbp - 0x28], xmm0
call fcn.140022460
lea rax, [rdi + 0x608]
cmp qword [rax + 0x18], 8
jb 0x140010db8
mov rax, qword [rax]
cmp word [rax], 0
mov qword [rsp + 0x78], rbx
jne 0x140010e10
movdqa xmm0, xmmword [str.NvcServiceHost..]
lea rbx, str.Service_host:_service_registration_failed
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x28]
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x1ff
mov dword [rbp - 0x18], 0x707063
movdqu xmmword [rbp - 0x28], xmm0
call fcn.140022460
mov rdx, rbx
mov ecx, 0x14
call fcn.1400080b0
xor al, al
jmp 0x14001102f
xor ebx, ebx
mov qword [rsp + 0x80], rsi
mov rcx, rdi
mov dword [rdi + 0x5e4], 4
mov dword [rdi + 0x5f8], ebx
mov dword [rdi + 0x5e8], 5
lea edx, [rbx + 3]
call fcn.140010c50
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [0x1400d7670]
test al, al
je 0x140010f04
mov qword [rsp + 0x28], rbx
lea r8, [0x140011260]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movdqa xmm0, xmmword [str.NvcServiceHost..]
mov qword [rdi + 0x630], rax
mov dword [rbp - 0x18], 0x707063
movdqu xmmword [rbp - 0x28], xmm0
test rax, rax
jne 0x140010edf
mov rbx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rsi, str.Service_host:_failed_to_create_ServiceConfigThread._Error__u
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov r8d, 0x214
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.140022460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
mov ecx, 0x11
mov r8d, eax
call fcn.1400080b0
jmp 0x140010f04
mov rcx, qword [rdi + 8]
lea rax, str.Service_host:_Created_ServiceConfigThread
mov r9d, 3
mov qword [rsp + 0x20], rax
mov r8d, 0x218
lea rdx, [rbp - 0x28]
call fcn.140022460
cmp qword [rdi + 0x148], 0
je 0x140010f1e
call fcn.14001e1f0
mov rcx, qword [rdi + 0x148]
mov qword [rcx + 0x18], rax
mov rcx, rdi
call fcn.140008320
movzx esi, al
test al, al
je 0x140011023
cmp qword [rdi + 0x148], 0
je 0x140010f5f
mov rbx, qword [rdi + 0x148]
call fcn.14001e1f0
sub eax, dword [rbx + 0x18]
lea rcx, [rbp - 0x30]
add rbx, 8
mov dword [rbp - 0x30], eax
cmp dword [rbx], eax
cmovae rcx, rbx
mov eax, dword [rcx]
mov dword [rbx], eax
mov rcx, rdi
call fcn.140007b90
mov rcx, rdi
call fcn.1400067b0
mov edx, 3
mov dword [rdi + 0x5e4], 3
mov rcx, rdi
mov dword [rdi + 0x5f8], 0x7530
movzx esi, al
mov dword [rdi + 0x5e8], 5
call fcn.140010c50
test sil, sil
je 0x140010fe6
mov rax, qword [rdi + 0x148]
test rax, rax
je 0x140010fe6
call fcn.14001e1f0
mov rcx, qword [rdi + 0x148]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x148]
test rax, rax
je 0x140010fe6
call fcn.14001e1f0
mov rcx, qword [rdi + 0x148]
xor edx, edx
mov qword [rcx + 0x20], rax
mov rcx, rdi
call fcn.140008530
jmp 0x140010ff5
xor edx, edx
mov rcx, rdi
call fcn.140008530
test sil, sil
je 0x140011023
cmp qword [rdi + 0x148], 0
je 0x140011023
mov rbx, qword [rdi + 0x148]
call fcn.14001e1f0
sub eax, dword [rbx + 0x18]
lea rcx, [rbp - 0x30]
add rbx, 0xc
mov dword [rbp - 0x30], eax
cmp dword [rbx], eax
cmovae rcx, rbx
mov eax, dword [rcx]
mov dword [rbx], eax
movzx eax, sil
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006b950
mov rdi, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret