Function at 0x140024140
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400b1010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
mov qword [rbp - 0x21], rcx
xor esi, esi
mov dword [rbp - 0x29], esi
lea rax, [0x14009f9c0]
mov qword [rcx], rax
lea rax, [0x14009f9b8]
mov qword [rcx + 0xb8], rax
lea rbx, [rcx + 0xc0]
lea rax, [0x14009f9a8]
mov qword [rbx], rax
lea rax, vtable.IAddReleaseRef.0
mov qword [rcx + 0x90], rax
mov dword [rbp - 0x29], 1
lea rax, vtable.IWeakRefCtrlBlockProvider.0
mov qword [rcx + 0xa0], rax
mov dword [rbp - 0x29], 3
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
mov dword [rbp - 0x29], 7
mov qword [rbp - 0x19], rbx
mov rcx, rbx
call fcn.1400221c0
nop
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CAsyncActionDispatcher.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CAsyncActionDispatcher.2.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.CAsyncActionDispatcher.1.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x70]
mov dword [rcx + rbx - 4], edx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 8]
lea edx, [rcx - 0x80]
mov dword [rcx + rbx - 4], edx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0x90]
mov dword [rcx + rbx - 4], edx
lea rax, [rbx + 0x20]
mov qword [rbp - 0x11], rax
mov qword [rax + 0x38], rsi
mov dword [rbx + 0x60], 1
mov dword [rbp - 0x29], 0xf
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.CAsyncActionDispatcherThread.2.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.CAsyncActionDispatcherThread.1.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
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 [rbp - 9], 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.14002bcc8
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 0x140024464
lea rax, [rdi + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140024920]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140024464
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rbp + 0x3f], 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 [rbp + 7], rax
mov qword [rbp + 0xf], rdi
lea rax, [rbp + 7]
mov qword [rbp + 0x3f], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0x10]
lea rbx, [rdi + 0x20]
add rbx, rcx
lea rax, [rbp + 7]
cmp rbx, rax
je 0x140024443
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140024401
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rsi
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140024443
lea rax, [rbp + 7]
cmp rcx, rax
jne 0x14002443b
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140024443
mov rax, qword [rcx]
lea rdx, [rbp + 7]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14002443f
mov qword [rbx + 0x38], rcx
mov qword [rbp + 0x3f], rsi
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140024464
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp + 7]
cmp rcx, rax
setne dl
call r8
mov qword [rbp + 0x3f], rsi
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002bca0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret