Function at 0x140019b4c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov esi, 1
mov r14, rdx
mov rdi, rcx
mov r13d, esi
lock xadd dword [0x140042270], r13d
xor r15d, r15d
lea rax, [0x140012614]
add r13d, esi
cmp qword [rsp + 0xa8], r15
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xa0]
mov qword [rcx], r15
mov qword [rcx + 0x98], r15
mov qword [rcx + 0xa0], r15
mov qword [rcx + 0xa8], r15
mov dword [rcx + 0xc0], eax
mov qword [rcx + 0xb0], r15
mov qword [rcx + 0xb8], r15
mov qword [rcx + 0xc8], r15
mov qword [rcx + 0xd0], r15
mov dword [rcx + 0xd8], 7
mov qword [rcx + 0xe0], r15
mov qword [rcx + 0xe8], r15
mov qword [rcx + 0xf0], r15
mov qword [rcx + 0xf8], r15
mov qword [rcx + 0x130], r15
mov qword [rcx + 0x138], r15
mov byte [rcx + 0x100], r15b
mov dword [rcx + 0x140], r15d
mov qword [rcx + 0x148], r15
mov qword [rcx + 0x150], r15
mov byte [rcx + 0x158], r15b
mov byte [rcx + 0x159], r15b
je 0x140019d55
mov ecx, 0x378
mov rbp, r15
mov qword [r11 + 0x20], r15
call fcn.14001c250
cmp rax, r15
mov rsi, rax
je 0x140019cdf
mov ebx, dword [rdi + 0xc0]
mov rdx, qword [rsp + 0xa8]
mov qword [rax + 0x20], 7
mov qword [rax + 0x18], r15
mov rcx, rax
mov word [rax + 8], r15w
call fcn.140003f14
xor eax, eax
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rax
lea rcx, [rsi + 0x70]
xor edx, edx
mov r8d, 0x308
mov dword [rsi + 0x40], ebx
mov qword [rsi + 0x48], r15
mov qword [rsi + 0x50], r15
mov qword [rsi + 0x58], r15
mov dword [rsi + 0x60], r15d
mov dword [rsi + 0x64], r15d
mov qword [rsi + 0x68], r15
call fcn.14001c940
mov r11, qword [rsp + 0xb8]
cmp r11, r15
je 0x140019ce2
movdqu xmm0, xmmword [r11]
movdqu xmmword [rsi + 0x30], xmm0
jmp 0x140019ce2
mov rsi, r15
cmp rsi, r15
je 0x140019cff
lea rcx, [rsp + 0x88]
mov rdx, rsi
call fcn.14001b030
mov rbp, qword [rsp + 0x88]
mov rcx, rbp
call fcn.14001b454
cmp rax, r15
mov rsi, rax
je 0x140019d43
mov rdx, rax
mov rcx, rbp
call fcn.14001b52c
mov rcx, rsi
mov bl, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, r15b
je 0x140019d43
lea rcx, [rdi + 0x18]
mov qword [rsp + 0x88], r15
cmp qword [rcx], rbp
je 0x140019d43
mov rdx, rbp
call fcn.14001b030
lea rcx, [rsp + 0x88]
call fcn.14001afc4
mov esi, 1
cmp qword [rdi + 0x18], r15
jne 0x140019e6e
lea rcx, [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov r8d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor r9d, r9d
mov r8d, esi
xor edx, edx
xor ecx, ecx
mov qword [rdi + 0x130], rax
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
cmp rax, r15
mov qword [rdi + 0x138], rax
je 0x140019dd8
cmp qword [rdi + 0x130], r15
je 0x140019dd8
lea rax, [rsp + 0x98]
lea r8, [0x14001a33c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0xf8], rax
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, r15
mov qword [rdi + 0xb0], rax
je 0x140019e08
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xb8], rax
lea rcx, str.rpcrt4.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, r15
mov qword [rdi + 0xc8], rax
je 0x140019e38
lea rdx, str.UuidCreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xd0], rax
lea rbx, [rdi + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
mov rdx, r14
call fcn.140003e34
cmp qword [rbx + 0x20], 8
jb 0x140019e5b
mov rbx, qword [rbx + 8]
jmp 0x140019e5f
add rbx, 8
mov rcx, rdi
mov qword [rdi + 0x98], rbx
call fcn.14001aeb8
lea rcx, [rdi + 0x160]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r15d
call fcn.14001b0b8
cmp r13d, esi
lea rbx, [0x140041fa0]
jne 0x140019e9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140042268]
cmp rax, r15
jne 0x140019eda
mov ecx, 0x20
call fcn.14001c250
cmp rax, r15
je 0x140019ed0
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
jmp 0x140019ed3
mov rax, r15
mov qword [0x140042268], rax
lea rdx, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x80], rdi
call fcn.14001b248
lea rcx, [0x14001a4f4]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001a5fc]
mov qword [rdi + 0xe0], rax
call fcn.14001bf90
lea rcx, [0x14001a7e8]
mov qword [rdi + 0xe8], rax
call fcn.14001bd90
mov rcx, rbx
mov qword [rdi + 0xf0], rax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]