Function at 0x140011e80
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov r15, r8
mov r12d, edx
mov rdi, rcx
xor r14b, r14b
xor eax, eax
mov qword [r11 - 0x40], rax
xor r13d, r13d
mov dword [r11 - 0x40], r13d
mov qword [r11 - 0x38], r13
mov rbx, qword [rsp + 0xb8]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
mov rax, qword [rcx + 8]
movsxd rax, dword [rax + 4]
mov rbp, qword [rsp + 0xb0]
mov ecx, 0x65b
cmp dword [rax + rdi + 8], r13d
je 0x140011efa
movups xmm0, xmmword [rax + rdi + 8]
movups xmmword [rbx], xmm0
jmp 0x140012056
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop
mov rsi, rax
test rax, rax
jne 0x140011f29
mov dword [rbx], 8
lea rax, str.AsyncFacility::CreateWorkItem__line_268:_HeapAlloc
mov qword [rbx + 8], rax
jmp 0x140012065
xor eax, eax
mov ecx, 1
lock cmpxchg dword [rdi + 0x10], ecx
jne 0x140011f90
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x10000
mov r9, rdi
lea r8, [0x1400120c0]
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
test rax, rax
jne 0x140011f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
mov ecx, 0x65b
cmove eax, ecx
mov dword [rbx], eax
lea rax, str.AsyncFacility::CreateWorkItem__line_288:_CreateThread
mov qword [rbx + 8], rax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
je 0x140012034
mov dword [rsi + 0x10], r12d
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x20], r13
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0x28], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsi + 0x30], eax
mov qword [rsi + 0x38], rbp
mov eax, 1
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x50], 0x103
lea rax, str.AsyncFacility::CreateWorkItem__line_304
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], r13d
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp dword [rdi + 0x60], r13d
je 0x140011fee
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rbx], xmm0
jmp 0x140012017
mov rax, qword [rdi + 0x78]
mov qword [rsi], rax
mov qword [rsi + 8], r13
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x140012006
mov qword [rax + 8], rsi
mov qword [rdi + 0x78], rsi
cmp qword [rdi + 0x70], r13
jne 0x140012014
mov qword [rdi + 0x70], rsi
mov r14b, 1
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test r14b, r14b
je 0x140012034
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
jmp 0x140012049
mov r8, rsi
xor edx, edx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
test r14b, r14b
je 0x140012051
mov dword [rbx], 0x3e5
jmp 0x14001206b
mov ecx, 0x65b
mov eax, dword [rbx]
test eax, eax
je 0x140012063
cmp eax, 0x3e5
jne 0x140012065
mov dword [rbx], ecx
cmp qword [rbx + 8], r13
jne 0x140012076
lea rax, str.AsyncFacility::CreateWorkItem__line_329
mov qword [rbx + 8], rax
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test r14b, r14b
jne 0x14001209f
mov dword [rbp + 0x48], 3
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x60], r13d
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret