Function at 0x1403bb1d0
Capabilities:
Terminate thread

Disassembly:
push r13
push r14
push r15
push rbp
sub rsp, 0x78
mov r15d, ecx
lea rcx, [0x141a59830]
mov r13d, edx
lea r14, [0x140000000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r15d, 0xfffffff9
lea eax, [r15 + 6]
cmovle eax, r15d
and eax, 0x7f
mov rbp, qword [r14 + rax*8 + 0x1a6d6c0]
test rbp, rbp
je 0x1403bb64f
cmp r15d, dword [rbp + 0x40]
je 0x1403bb22e
mov rbp, qword [rbp + 0x38]
test rbp, rbp
je 0x1403bb64f
cmp r15d, dword [rbp + 0x40]
jne 0x1403bb21b
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1403bb640
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r13d, r13d
je 0x1403bb496
test byte [rbp + 0x291], 0x18
jne 0x1403bb2c7
mov eax, dword [rbp + 0x40]
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovle edx, eax
and edx, 0x7f
mov r8, qword [r14 + rdx*8 + 0x1a6d6c0]
cmp eax, dword [r8 + 0x40]
jne 0x1403bb296
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovg eax, edx
and eax, 0x7f
mov r8, qword [r14 + rax*8 + 0x1a6d6c0]
mov r9, qword [r8 + 0x38]
mov qword [r14 + rax*8 + 0x1a6d6c0], r9
jmp 0x1403bb2c7
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovle edx, eax
and edx, 0x7f
mov r8, qword [r14 + rdx*8 + 0x1a6d6c0]
mov rdx, qword [r8 + 0x38]
cmp eax, dword [rdx + 0x40]
je 0x1403bb2bf
mov r8, rdx
mov rdx, qword [rdx + 0x38]
cmp eax, dword [rdx + 0x40]
jne 0x1403bb2b3
mov rax, qword [rdx + 0x38]
mov qword [r8 + 0x38], rax
cmp r13d, 2
je 0x1403bb623
lea rcx, [0x141a59830]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xd8], 0
test rax, rax
je 0x1403bb2fd
mov qword [rax + 8], 0
mov rdx, qword [rbp + 0x30]
movups xmm0, xmmword [rdx + 0x30]
movups xmm1, xmmword [rdx + 0x40]
mov rax, qword [rdx + 0x50]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
mov rax, qword [rdx + 0x60]
cmp r13d, 1
je 0x1403bb5f7
test rax, rax
je 0x1403bb36b
mov r8, qword [rax]
mov qword [rdx + 0x60], r8
cmp qword [rax + 8], 0
je 0x1403bb35e
movups xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rdx + 0x60]
test rax, rax
jne 0x1403bb32f
xor r14d, r14d
mov rax, qword [rdx + 8]
xor r13d, r13d
test rax, rax
jle 0x1403bb3b5
mov r8, qword [rdx]
test byte [r13 + r8 + 0x20], 4
je 0x1403bb3a9
mov rax, qword [r13 + r8 + 8]
mov dword [rax], 1
mov rdx, qword [rbp + 0x30]
mov r8, qword [rdx]
mov rcx, qword [r8 + r13]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rdx + 8]
inc r14
add r13, 0x28
cmp r14, rax
jl 0x1403bb37a
cmp dword [rdx + 0x18], 0
je 0x1403bb3f2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp + 0x30]
cmp eax, dword [rdx + 0x18]
je 0x1403bb3f2
cmp qword [rdx + 0x10], 0
je 0x1403bb3f2
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
call fcn.14035a530
mov rcx, qword [rbp + 0x30]
call fcn.14035a530
test byte [rbp + 0x291], 0x18
je 0x1403bb473
mov edx, dword [rbp + 0x1e0]
mov eax, 0x2a0
pxor xmm0, xmm0
movq qword [rbp + 0x2a0], xmm0
movdqu xmmword [rbp + rax - 0x10], xmm0
movdqu xmmword [rbp + rax - 0x20], xmm0
movdqu xmmword [rbp + rax - 0x30], xmm0
movdqu xmmword [rbp + rax - 0x40], xmm0
movdqu xmmword [rbp + rax - 0x50], xmm0
movdqu xmmword [rbp + rax - 0x60], xmm0
sub rax, 0x60
jne 0x1403bb427
mov al, byte [rbp + 0x291]
and al, 0xe7
add al, 8
or byte [rbp + 0x29a], 4
mov byte [rbp + 0x291], al
mov dword [rbp + 0x1e0], edx
mov dword [rbp + 0x40], edx
jmp 0x1403bb47b
mov rcx, rbp
call fcn.14035a530
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1403bb5e9
lea rcx, [0x141a59830]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xd8], 0
test rax, rax
je 0x1403bb4c2
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x18], 0
movzx r9d, byte [rbp + 0x29b]
mov r8d, r9d
btr r8d, 0
jae 0x1403bb504
mov al, byte [rbp + 0x293]
mov dl, al
shr al, 6
and dl, 0xdf
and al, 1
mov r9d, r8d
shl al, 5
or dl, al
mov byte [rbp + 0x293], dl
mov byte [rbp + 0x29b], r9b
test r9d, 2
je 0x1403bb524
mov al, byte [rbp + 0x28a]
and r9d, 0xfffffffd
mov byte [rbp + 0x289], al
mov byte [rbp + 0x29b], r9b
test r9d, 4
je 0x1403bb544
mov al, byte [rbp + 0x282]
and r9d, 0xfffffffb
mov byte [rbp + 0x281], al
mov byte [rbp + 0x29b], r9b
test r9d, 8
je 0x1403bb572
mov al, byte [rbp + 0x296]
mov dl, al
shr al, 2
and dl, 0xfd
and al, 1
and r9d, 0xfffffff7
add al, al
or dl, al
mov byte [rbp + 0x296], dl
mov byte [rbp + 0x29b], r9b
test r9d, 0x10
je 0x1403bb592
mov al, byte [rbp + 0x288]
and r9d, 0xffffffef
mov byte [rbp + 0x287], al
mov byte [rbp + 0x29b], r9b
test r9d, 0x20
je 0x1403bb5b2
mov al, byte [rbp + 0x28c]
and r9d, 0xffffffdf
mov byte [rbp + 0x28b], al
mov byte [rbp + 0x29b], r9b
mov r13, qword [rbp + 0x30]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [r13 + 0x74], 0xfe
mov rcx, qword [rbp + 0x30]
test byte [rcx + 0x74], 2
jne 0x1403bb5e9
mov rdx, qword [rcx + 0x60]
test rdx, rdx
je 0x1403bb634
mov rax, qword [rdx]
mov qword [rcx + 0x60], rax
mov rcx, qword [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
add rsp, 0x78
pop rbp
pop r15
pop r14
pop r13
ret
test rax, rax
je 0x1403bb3f2
mov r8, qword [rax]
mov qword [rdx + 0x60], r8
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rdx + 0x60]
test rax, rax
jne 0x1403bb600
jmp 0x1403bb3f2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x141a59870], eax
jmp 0x1403bb2d1
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1403bb5e9
lea rcx, [0x141a59830]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1403bb5e9
cmp dword [0x141a59870], 0
je 0x1403bb640
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x141a59870]
je 0x1403bb640
lea rcx, [0x141a59830]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]