Function at 0x140023380
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rax, [0x140069498]
mov qword [rcx], rax
lea rax, [0x140069490]
mov qword [rcx + 0xb8], rax
lea rax, [0x140069480]
mov qword [rcx + 0xc8], rax
lea rax, vtable.IAddReleaseRef.0
mov qword [rcx + 0x90], rax
lea rax, vtable.IWeakRefCtrlBlockProvider.0
mov qword [rcx + 0xa0], rax
lea rax, vtable.IAsyncActionDispatcher.0
mov qword [rcx + 0xb0], rax
mov rax, qword [rcx + 0xb8]
movsxd rcx, dword [rax + 4]
lea rax, vtable.IAsyncActionDispatcher.1.0
mov qword [rcx + rdi + 0xb8], rax
lea rbx, [rdi + 0xc0]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call fcn.140021600
nop
lea rax, vtable.CAsyncActionDispatcher.0
mov qword [rbx], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CAsyncActionDispatcher.3.0
mov qword [rcx + rbx + 8], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CAsyncActionDispatcher.2.0
mov qword [rcx + rbx + 8], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.CAsyncActionDispatcher.1.0
mov qword [rcx + rbx + 8], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x70]
mov dword [rcx + rbx + 4], edx
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 8]
lea edx, [rcx - 0x80]
mov dword [rcx + rbx + 4], edx
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0x90]
mov dword [rcx + rbx + 4], edx
lea rax, [rbx + 0x28]
mov qword [rsp + 0x48], rax
mov qword [rax + 0x38], rsi
mov dword [rbx + 0x68], 1
mov dword [rsp + 0x30], 1
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CAsyncActionDispatcherThread.3.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CAsyncActionDispatcherThread.2.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.CAsyncActionDispatcherThread.1.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0x10]
lea rax, vtable.CAsyncActionDispatcherThread.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea edx, [rcx - 0xa0]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0xb0]
mov dword [rcx + rdi - 4], edx
mov dword [rdi + 8], esi
mov qword [rdi + 0x10], rsi
lea rcx, [rdi + 0x30]
mov dword [rcx + 0x28], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rbx, [rdi + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
lea ecx, [rsi + 0x10]
call fcn.14002ab0c
mov qword [rax + 8], rsi
mov qword [rbx], rax
mov qword [rax], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x28], rax
cmp qword [rdi + 0x18], rsi
je 0x1400236db
lea rax, [rdi + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140023b90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400236db
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x98], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void___cdecl_CAsyncActionDispatcherThread::constructor_void____ptr64::_8::_lambda_1___bool__class_std::function_void____cdecl___void___const____ptr64_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x98], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0x10]
lea rbx, [rdi + 0x28]
add rbx, rcx
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1400236b1
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140023661
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rsi
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400236b1
lea rax, [rsp + 0x60]
cmp rcx, rax
jne 0x1400236a5
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400236b1
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x1400236a9
mov qword [rbx + 0x38], rcx
mov qword [rsp + 0x98], rsi
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400236db
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rsp + 0x60]
cmp rcx, rax
setne dl
call r8
mov qword [rsp + 0x98], rsi
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14002aab0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret