Function at 0x14012c3b0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, rdx
mov rsi, rcx
mov r12, qword [rsp + 0xd8]
mov ebx, dword [rsp + 0xc0]
mov r13d, dword [rsp + 0xb8]
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, 1
lock xadd dword [0x140397328], ebp
mov rax, qword [rsp + 0xb0]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x68], xmm0
movups xmmword [rcx + 0x78], xmm0
mov qword [rcx + 0x88], 0
mov dword [rcx + 0x90], ebx
movups xmmword [rcx + 0x98], xmm0
mov dword [rcx + 0xa8], r13d
movups xmmword [rcx + 0xb0], xmm0
movups xmmword [rcx + 0xc0], xmm0
mov byte [rcx + 0xd0], 0
xor eax, eax
mov dword [rcx + 0x110], eax
movups xmmword [rcx + 0x100], xmm0
movups xmmword [rcx + 0x118], xmm0
mov dword [rcx + 0x127], eax
test r12, r12
jne 0x14012c4d1
mov r15, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xc8]
test rdi, rdi
je 0x14012c4a1
mov ecx, 0x368
call fcn.1401a2e6c
mov r12, rax
mov rcx, rax
mov rdx, rdi
mov r8d, ebx
mov r9, r15
call fcn.14015eac0
jmp 0x14012c4cc
mov rdi, qword [rsp + 0xd0]
test rdi, rdi
je 0x14012c4ff
mov ecx, 0x368
call fcn.1401a2e6c
mov r12, rax
mov rcx, rax
mov rdx, rdi
mov r8d, ebx
mov r9, r15
call fcn.14015eba0
test r12, r12
je 0x14012c4ff
mov rcx, r12
call fcn.14015ec40
test al, al
je 0x14012c502
mov rdi, qword [rsi + 0x18]
cmp rdi, r12
je 0x14012c4ff
test rdi, rdi
je 0x14012c4fb
mov rcx, rdi
call fcn.14015ebf0
mov rcx, rdi
call fcn.1401a2ea8
mov qword [rsi + 0x18], r12
xor r12d, r12d
cmp qword [rsi + 0x18], 0
jne 0x14012c65f
lea rcx, [rsi + 0xd8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rdi, qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor ecx, ecx
xor edx, edx
mov r8d, 1
xor r9d, r9d
call rdi
mov qword [rsi + 0x100], rax
xor ecx, ecx
xor edx, edx
mov r8d, 1
xor r9d, r9d
call rdi
mov qword [rsi + 0x108], rax
test rax, rax
je 0x14012c595
lea rax, [rsi + 0x100]
cmp qword [rax], 0
je 0x14012c595
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x14012c880]
mov edx, 0x10000
xor ecx, ecx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0xc8], rax
lea rdi, [rsi + 0x98]
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi + 0x80], rax
test rax, rax
je 0x14012c5cc
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x88], rax
lea rcx, str.rpcrt4.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi], rax
test rax, rax
je 0x14012c5f8
lea rdx, str.UuidCreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0xa0], rax
lea rbx, [rsi + 0x20]
cmp rbx, r14
je 0x14012c64a
cmp byte [rbx + 0x17], 0
movzx r8d, byte [r14 + 0x17]
js 0x14012c622
test r8b, r8b
js 0x14012c63b
mov rax, qword [r14 + 0x10]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
jmp 0x14012c64a
test r8b, r8b
jns 0x14012c62e
mov r8, qword [r14 + 8]
mov r14, qword [r14]
mov rcx, rbx
mov rdx, r14
call fcn.1400b9eb0
jmp 0x14012c64a
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
mov rcx, rbx
call fcn.1400b9f30
cmp byte [rbx + 0x17], 0
jns 0x14012c653
mov rbx, qword [rbx]
mov qword [rsi + 0x68], rbx
mov rcx, rsi
call fcn.14012d3f0
lea rdi, [rsi + 0x130]
mov ecx, 0x20
call fcn.1401a2e6c
mov qword [rax + 0x10], 0
movabs rcx, 0xaaaaaaaa00000000
mov qword [rax + 0x18], rcx
mov qword [rax + 8], rdi
mov rcx, qword [rsi + 0x130]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov qword [rsi + 0x130], rax
inc qword [rsi + 0x140]
test ebp, ebp
jne 0x14012c6b7
lea rcx, [0x140397300]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test r13d, r13d
je 0x14012c82f
lea rcx, [0x140397300]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15, qword [0x1403972f0]
test r15, r15
je 0x14012c6fa
lea r14, [r15 + 8]
mov rbp, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
cmp rbp, rax
jae 0x14012c727
mov qword [rbp], rsi
add rbp, 8
mov qword [r14], rbp
jmp 0x14012c7d3
mov ecx, 0x18
call fcn.1401a2e6c
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1403972f0], rax
mov r14, rax
add r14, 8
xor ebp, ebp
xor eax, eax
mov rdx, qword [r15]
sub rbp, rdx
sar rbp, 3
lea rdi, [rbp + 1]
mov rcx, rdi
shr rcx, 0x3d
jne 0x14012c863
movabs rcx, 0x1fffffffffffffff
sub rax, rdx
mov rbx, rax
sar rbx, 2
cmp rbx, rdi
cmovbe rbx, rdi
movabs rdx, 0x7ffffffffffffff8
cmp rax, rdx
cmovae rbx, rcx
test rbx, rbx
je 0x14012c78b
cmp rbx, rcx
ja 0x14012c86b
lea rcx, [rbx*8]
call fcn.1401a2e6c
jmp 0x14012c78d
xor eax, eax
lea rdi, [rax + rbp*8]
lea rbx, [rax + rbx*8]
mov qword [rdi], rsi
lea rbp, [rax + rbp*8]
add rbp, 8
mov r8, qword [r14]
mov rdx, qword [r15]
sub r8, rdx
sub rdi, r8
test r8, r8
jle 0x14012c7bc
mov rcx, rdi
call fcn.1401a6090
mov rdx, qword [r15]
mov qword [r15], rdi
mov qword [r14], rbp
mov qword [r15 + 0x10], rbx
test rdx, rdx
je 0x14012c7d3
mov rcx, rdx
call fcn.1401a2ea8
test r13b, 1
je 0x14012c7f0
lea rdi, [rsi + 0xb0]
lea rcx, [0x14012c990]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov qword [rdi], rax
test r13b, 2
je 0x14012c809
lea rcx, [0x14012cc00]
call fcn.1401bd560
mov qword [rsi + 0xb8], rax
test r13b, 4
je 0x14012c822
lea rcx, [0x14012cf20]
call fcn.1401a5eec
mov qword [rsi + 0xc0], rax
lea rcx, [0x140397300]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
je 0x14012c844
mov rcx, r12
call fcn.14015ebf0
mov rcx, r12
call fcn.1401a2ea8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.14003c400
call fcn.1401bfdb0
int3