Function at 0x1400227a0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp - 8], rax
test byte [0x1400ddd81], 8
mov rbx, r9
mov r13, r8
mov esi, edx
mov r14d, ecx
jne 0x14002cf22
mov eax, r14d
sub eax, 1
je 0x14002d082
sub eax, 3
je 0x14002d077
sub eax, 1
je 0x14002d082
sub eax, 6
jne 0x140022857
mov rcx, qword [0x1400db770]
mov rax, qword [rcx]
movabs r10, 0xf4048ea352da1a70
mov rax, qword [rax + 0xa0]
mov r9, r13
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov edx, 0xb
call qword [case.0x140001f80.0]
test byte [0x1400ddd81], 8
jne 0x14002d11d
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140024990
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
sub eax, 2
jne 0x14002286d
cmp esi, 4
je 0x140022866
cmp esi, 7
jne 0x14002282c
call fcn.14002298c
jmp 0x14002282c
sub eax, 1
je 0x140022884
sub eax, 1
je 0x14002d082
cmp eax, 0x12
jne 0x14002cf3e
call fcn.140022954
xor ebx, ebx
test al, al
jne 0x14002cf50
lea eax, [rsi - 5]
cmp eax, 1
ja 0x14002282c
lea rdx, [0x1400b35f2]
mov ecx, SafeArrayPutElement
call fcn.140025088
mov rdi, rax
test rax, rax
je 0x14002282c
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
or dword [rdi + 8], 0xffffffff
mov qword [rdi + 0x10], rbx
mov dword [rdi], r14d
mov dword [rdi + 4], esi
mov r15d, dword [r13 + 4]
cmp r14d, 0xe
je 0x14002cf77
mov rax, qword [r13 + 8]
mov dword [rbp - 0x18], r15d
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi + 8], xmm0
cmp qword [rdi + 0x10], rbx
je 0x14002282c
call fcn.140022954
test al, al
jne 0x14002d04d
mov qword [rsp + 0x28], rbx
lea r8, [fcn.140021970]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14002d064
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14002282c
mov r8d, r14d
lea rdx, [0x1400baf88]
lea rcx, [0x1400db600]
call fcn.14002d876
nop
jmp 0x1400227d8
mov rcx, qword [0x1400db770]
call fcn.14006ce94
nop
jmp 0x14002282c
cmp esi, 5
jne 0x14002cf5f
cmp r14d, 0x21
jne 0x14002282c
cmp esi, 6
jne 0x140022893
cmp r14d, 0xe
je 0x14002289b
jmp 0x14002282c
mov qword [rbp - 0x18], rbx
cmp esi, 5
jne 0x14002d023
xor edx, edx
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x20]
call fcn.14001bec0
lea rdx, [rbp - 0x20]
mov ecx, r15d
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSQueryUserToken]
nop dword [rax + rax]
test eax, eax
je 0x14002cfeb
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp - 0x18]
call qword [sym.imp.ext_ms_win_session_usermgr_l1_1_0.dll_UMgrQueryUserContext]
nop dword [rax + rax]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14002d000
cmp eax, 0x80070520
je 0x14002d000
mov rcx, qword [rbp + 0x38]
lea r8, [0x1400b4fa8]
mov r9d, eax
mov edx, 0x37f
call fcn.1400205dc
jmp 0x14002d000
mov rcx, qword [rbp + 0x38]
lea r8, [0x1400b4fa8]
mov edx, 0x383
call fcn.14005ac7c
mov rcx, qword [rbp - 0x20]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d01a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rbp - 0x18]
jmp 0x1400228e4
mov rcx, qword [0x1400db770]
mov rax, qword [rcx]
movabs r10, 0x8e851fd97451f170
mov rax, qword [rax + 0xb0]
mov edx, r15d
call qword [case.0x140001f80.0]
nop
jmp 0x1400228e4
cmp esi, 6
jne 0x14002290c
mov rcx, rdi
call fcn.140021970
nop
jmp 0x14002282c
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.140025038
nop
jmp 0x14002282c
call fcn.14006e60c
nop
jmp 0x14002282c
lea r8, str._UtilCommon__Service_Stopping_n
mov edx, 0x32d
lea rcx, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
call fcn.14005eba4
test byte [0x1400ddd82], 8
je 0x14002d0c5
lea rax, [rbp - 0x18]
mov r9d, 1
lea rdx, [0x1400bafa8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400db600]
call fcn.14002d818
xor ebx, ebx
lea rcx, [rbp - 0x20]
cmp r14d, 1
setne bl
inc ebx
mov dword [rbp - 0x20], ebx
call fcn.14005427c
mov rcx, qword [0x1400db770]
cmp r14d, 5
je 0x14002d0ef
cmp r14d, 0xf
jne 0x14002d0f6
mov byte [rcx + 0x128], 1
mov edx, 3
call fcn.14002e2c4
mov rcx, qword [0x1400db770]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
nop
jmp 0x14002282c
mov r8d, r14d
lea rdx, [0x1400baf78]
lea rcx, [0x1400db600]
call fcn.14002d876
nop
jmp 0x140022839