Function at 0x14002a320
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1400a21c8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x30], r9d
mov r13, r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], r8
xor r15d, r15d
lea rax, vtable.bnb::oep::offscreen_effect_player.0
mov qword [rcx], rax
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov rax, qword [rdx + 8]
test rax, rax
je 0x14002a387
lock inc dword [rax + 8]
mov rax, qword [rdx]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov rax, qword [r8 + 8]
test rax, rax
je 0x14002a3ab
lock inc dword [rax + 8]
mov rax, qword [r8]
mov qword [rcx + 0x18], rax
mov rax, qword [r8 + 8]
mov qword [rcx + 0x20], rax
lea rdi, [rcx + 0x28]
mov qword [rsp + 0x40], rdi
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
lea rbx, [rdi + 0x18]
mov qword [rsp + 0x38], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov ecx, 0x10
call fcn.140052d3c
mov qword [rax + 8], r15
mov qword [rbx], rax
mov qword [rax], rbx
lea rcx, [rdi + 0x40]
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rcx, [rdi + 0x90]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
mov byte [rdi + 0xd8], 0
mov rsi, r15
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdi
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x14002a499
mov ecx, 8
call fcn.140052d3c
test rax, rax
je 0x14002a453
mov qword [rax], rdi
jmp 0x14002a456
mov rax, r15
mov qword [rsp + 0x88], rax
lea r15, [rbx + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140028b60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14002a702
add qword [rdi + 8], 0x10
xor r15d, r15d
jmp 0x14002a4a9
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
call fcn.1400288b0
inc rsi
cmp rsi, 1
jb 0x14002a430
mov dword [r14 + 0x108], r15d
mov qword [r14 + 0x110], r15
mov qword [r14 + 0x118], r15
mov dword [r14 + 0x120], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x14002a4ec
lock inc dword [rax + 8]
mov rax, qword [r14 + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x98]
call fcn.140054190
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [r14 + 0x110], rcx
mov rsi, qword [r14 + 0x118]
mov qword [r14 + 0x118], rdx
mov ebx, 0xffffffff
test rsi, rsi
je 0x14002a566
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14002a566
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14002a566
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rsi, qword [rsp + 0xa0]
test rsi, rsi
je 0x14002a59c
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14002a59c
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14002a59c
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov qword [rsp + 0x50], r14
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x5c], eax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140028e60
nop
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0xa8], rdi
mov byte [rsp + 0xb0], 1
test rdi, rdi
je 0x14002a6f7
cmp byte [rdi + 0xb8], 0
jne 0x14002a6f7
mov rax, qword [rdi]
mov dl, 1
mov rcx, rdi
call qword [rax + 0x10]
nop
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002a633
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x14002a625
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x14002a633
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002a66d
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002a66d
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x14002a662
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14002a66d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x14002a6a1
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002a6a1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14002a6a1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdi, qword [r13 + 8]
test rdi, rdi
je 0x14002a6d1
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002a6d1
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14002a6d1
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov rax, r14
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400531d0
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 4
call fcn.14002c820
nop
mov dword [r15], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3