Function at 0x140022820
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
test byte [0x1400ddd81], 8
mov rbx, r9
mov r14, r8
mov ebp, edx
mov esi, ecx
je 0x140022863
mov r8d, ecx
lea rdx, [0x1400b4ad8]
lea rcx, [0x1400db9b0]
call fcn.14002e256
mov eax, esi
sub eax, 1
je 0x140022a41
sub eax, 3
je 0x140022a37
sub eax, 1
je 0x140022a41
sub eax, 6
je 0x140022a01
sub eax, 2
je 0x1400229e9
sub eax, 1
je 0x1400228b6
sub eax, 1
je 0x140022a41
cmp eax, 0x12
je 0x1400228b6
mov rcx, qword [0x1400db9f8]
call fcn.14006db04
jmp 0x140022ad6
call fcn.14000eca4
xor ebx, ebx
test al, al
je 0x1400228de
cmp ebp, 5
jne 0x1400228cf
cmp esi, 0x21
jne 0x140022ad6
cmp ebp, 6
jne 0x1400228de
cmp esi, 0xe
je 0x1400228ea
jmp 0x140022ad6
lea eax, [rbp - 5]
cmp eax, 1
ja 0x140022ad6
lea rdx, [0x1400b35f2]
mov ecx, SafeArrayPutElement
call fcn.140025218
mov rdi, rax
test rax, rax
je 0x140022ad6
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], esi
mov dword [rdi + 4], ebp
cmp esi, 0xe
jne 0x14002295d
call fcn.14000eca4
test al, al
je 0x140022978
mov rcx, qword [0x1400db9f8]
mov rax, qword [rcx]
movabs r10, 0x8e851fd97451f170
mov edx, dword [r14 + 4]
mov rax, qword [rax + 0xb0]
call qword [case.0x140001f80.0]
mov ecx, dword [r14 + 4]
mov dword [rsp + 0x38], ecx
jmp 0x140022969
mov eax, dword [r14 + 4]
mov dword [rsp + 0x38], eax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x38]
movdqu xmmword [rdi + 8], xmm0
cmp qword [rdi + 0x10], rbx
je 0x140022ad6
call fcn.14000eca4
test al, al
je 0x14002299d
cmp ebp, 6
jne 0x14002299d
mov rcx, rdi
call fcn.1400219f0
jmp 0x140022ad6
mov qword [rsp + 0x28], rbx
lea r8, [fcn.1400219f0]
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
jne 0x1400229d5
lea edx, [rax + 0x18]
mov rcx, rdi
call fcn.1400251c8
jmp 0x140022ad6
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140022ad6
cmp ebp, 4
je 0x1400229f7
cmp ebp, 7
jne 0x140022ad6
call fcn.140022b18
jmp 0x140022ad6
mov rcx, qword [0x1400db9f8]
mov rax, qword [rcx]
movabs r10, 0xf4048ea352da1a70
mov rax, qword [rax + 0xa0]
mov r9, r14
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov edx, 0xb
call qword [case.0x140001f80.0]
jmp 0x140022ad6
call fcn.14006f23c
jmp 0x140022ad6
lea r8, str._UtilCommon__Service_Stopping_n
mov edx, 0x323
lea rcx, [0x1400b51f0]
call fcn.14005f7b4
test byte [0x1400ddd82], 8
je 0x140022a85
lea rax, [rsp + 0x38]
mov r9d, 1
lea rdx, [0x1400b4ae8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400db9b0]
call fcn.14002e1f8
xor ebx, ebx
lea rcx, [rsp + 0x30]
cmp esi, 1
setne bl
inc ebx
mov dword [rsp + 0x30], ebx
call fcn.140054e3c
mov rcx, qword [0x1400db9f8]
cmp esi, 5
je 0x140022aae
cmp esi, 0xf
jne 0x140022ab5
mov byte [rcx + 0x128], 1
mov edx, 3
call fcn.14002ee5c
mov rcx, qword [0x1400db9f8]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
test byte [0x1400ddd81], 8
je 0x140022af5
mov r8d, esi
lea rdx, [0x1400b4ac8]
lea rcx, [0x1400db9b0]
call fcn.14002e256
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret