Function at 0x140045454
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rbx, rcx
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x138]
xor esi, esi
test rcx, rcx
je 0x14004549b
call qword [sym.imp.api_ms_win_oobe_notification_l1_1_0.dll_UnregisterWaitUntilOOBECompleted]
nop dword [rax + rax]
mov qword [rbx + 0x138], rsi
lea rcx, [rbx + 0x10]
mov byte [rbx + 0x140], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea rax, [rbp + 0x78]
mov qword [rbp + 0x78], rsi
lea rdx, str._windir__system32UsoClient.exe_startscan
mov qword [rbp - 0x58], rax
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x70], rsi
call fcn.1400a35bc
mov rbx, qword [rbp + 0x70]
mov edi, eax
test eax, eax
jns 0x14004551a
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x140045797
test byte [rcx + 0x1c], 1
je 0x140045797
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9b20]
mov edx, 0x8b
mov r9d, edi
call fcn.14000a9b0
jmp 0x140045797
lea rax, [rbp - 0x68]
mov qword [rbp - 0x68], rsi
lea rcx, [rbp + 0x60]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x60], rsi
call fcn.1400a72a4
mov edi, eax
test eax, eax
jns 0x140045577
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x140045782
test byte [rcx + 0x1c], 1
je 0x140045782
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9b20]
mov edx, 0x8c
mov r9d, edi
call fcn.14000a9b0
jmp 0x140045782
mov rdx, qword [rbp + 0x60]
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rbp - 0x48], rax
lea rcx, [rbp + 0x68]
mov qword [rbp - 0x60], rsi
mov qword [rbp + 0x68], rsi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
nop dword [rax + rax]
test eax, eax
jne 0x1400455fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400455fe
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14004576d
test byte [rcx + 0x1c], 1
je 0x14004576d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9b20]
mov edx, 0x8d
mov r9d, edi
call fcn.14000a9b0
jmp 0x14004576d
lea rax, [0x1400b9b08]
mov dword [rbp - 0x74], esi
mov qword [rsp + 0x60], rax
lea r12, vtable.WSD::HealthAdvisor::CAutoProcessInformation.0
xor eax, eax
mov dword [rsp + 0x68], esi
xorps xmm0, xmm0
mov qword [rbp - 0x70], r12
xor edx, edx
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x40]
lea r8d, [rax + 0x68]
movups xmmword [rsp + 0x70], xmm0
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rbp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
mov r8, rbx
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x428
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
jne 0x1400456c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400456c5
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x140045701
test byte [rcx + 0x1c], 1
je 0x140045701
mov edx, 0x8e
jmp 0x1400456ee
call fcn.1400452d4
mov edi, eax
test eax, eax
jns 0x140045701
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x140045701
test byte [rcx + 0x1c], 1
je 0x140045701
mov edx, 0x8f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9b20]
mov r9d, edi
call fcn.14000a9b0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x30]
mov dword [rsp + rcx + 0x5c], edx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14004572e
call fcn.1400a2560
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14004573d
call fcn.1400a2560
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CRefCountedBaseX.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.IRefCounted.0
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140045782
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140045797
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x1400457a4
mov rcx, rbx
call fcn.1400ac0d0
mov eax, edi
add rsp, 0x130
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret