Function at 0x140140900
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140221f78]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
cmp qword [rcx + 0x60], 0
jne 0x140140b10
cmp qword [rcx + 0x68], 0
je 0x140140b10
mov qword [rcx + 0x60], rdx
cmp byte [rcx + 0x80], 0
je 0x140140aa6
mov ecx, 0x20
call fcn.14015ea14
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14014099d
mov edx, dword [rbx + 0x84]
lea rax, vtable.winrt::impl::producers_base_class_ControllerRtwqAsyncCallback__class_std::tuple_struct_IRtwqAsyncCallback__.0
mov qword [rdi], rax
mov ecx, 1
lock xadd dword [0x14022b130], ecx
mov dword [rdi + 0x10], 1
mov dword [rdi + 0x18], edx
lea rax, vtable.winrt::impl::heap_implements_class_ControllerRtwqAsyncCallback_.0
mov qword [rdi], rax
lea rax, vtable.winrt::impl::heap_implements_class_ControllerRtwqAsyncCallback_.1.0
mov qword [rdi + 8], rax
jmp 0x14014099f
xor edi, edi
mov qword [rsp + 0x30], rdi
mov ecx, 0x20
call fcn.14015ea14
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140140a02
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
lea rax, vtable.winrt::impl::producers_base_class_RtwqControllerObj__class_std::tuple_struct_IUnknown__.0
mov qword [rsi], rax
mov eax, 1
lock xadd dword [0x14022b130], eax
mov dword [rsi + 0x10], 1
mov qword [rsi + 0x18], 0
lea rax, vtable.winrt::impl::heap_implements_class_RtwqControllerObj_.0
mov qword [rsi], rax
lea rax, vtable.winrt::impl::heap_implements_class_RtwqControllerObj_.1.0
mov qword [rsi + 8], rax
jmp 0x140140a04
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsi + 0x18], rbx
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x88], rax
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call sub.RTWorkQ.DLL_RtwqCreateAsyncResult
test eax, eax
jns 0x140140a4b
xor bl, bl
jmp 0x140140a75
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, dword [rbx + 0x84]
call sub.RTWorkQ.DLL_RtwqPutWorkItem
mov esi, eax
test eax, eax
js 0x140140a70
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test esi, esi
setns bl
cmp qword [rsp + 0x58], 0
je 0x140140a87
lea rcx, [rsp + 0x58]
call fcn.140141190
lea rcx, [rsp + 0x60]
call fcn.140141190
nop
test rdi, rdi
je 0x140140aa1
lea rcx, [rsp + 0x30]
call fcn.140141190
movzx eax, bl
jmp 0x140140b12
cmp dword [rcx + 0x78], 0
jne 0x140140b0c
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14015ea14
test rax, rax
je 0x140140ac9
mov qword [rax], rbx
lea rcx, [fcn.140140c60]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400429c0]
xor edx, edx
xor ecx, ecx
call fcn.14016e06c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140140b31
cmp dword [rbx + 0x78], 0
jne 0x140140b44
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x70], xmm0
mov al, 1
jmp 0x140140b12
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14015eb70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x48], 0
mov ecx, 6
call fcn.14015c480
nop
call fcn.14016e14c
int3