Function at 0x14003b050
Capabilities:
Terminate thread

Disassembly:
jmp 0x14003b050
push r13
push r14
push r15
push rbp
sub rsp, 0x78
mov r15d, ecx
lea rcx, [0x140185e68]
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 + 0x191b40]
test rbp, rbp
je 0x14003b4c6
cmp r15d, dword [rbp + 0x40]
je 0x14003b0ae
mov rbp, qword [rbp + 0x38]
test rbp, rbp
je 0x14003b4c6
cmp r15d, dword [rbp + 0x40]
jne 0x14003b09b
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14003b4b7
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r13d, r13d
je 0x14003b30d
test byte [rbp + 0x279], 0x18
jne 0x14003b147
mov eax, dword [rbp + 0x40]
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovle edx, eax
and edx, 0x7f
mov r8, qword [r14 + rdx*8 + 0x191b40]
cmp eax, dword [r8 + 0x40]
jne 0x14003b116
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovg eax, edx
and eax, 0x7f
mov r8, qword [r14 + rax*8 + 0x191b40]
mov r9, qword [r8 + 0x38]
mov qword [r14 + rax*8 + 0x191b40], r9
jmp 0x14003b147
cmp eax, 0xfffffff9
lea edx, [rax + 6]
cmovle edx, eax
and edx, 0x7f
mov r8, qword [r14 + rdx*8 + 0x191b40]
mov rdx, qword [r8 + 0x38]
cmp eax, dword [rdx + 0x40]
je 0x14003b13f
mov r8, rdx
mov rdx, qword [rdx + 0x38]
cmp eax, dword [rdx + 0x40]
jne 0x14003b133
mov rax, qword [rdx + 0x38]
mov qword [r8 + 0x38], rax
cmp r13d, 2
je 0x14003b49a
lea rcx, [0x140185e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xd0], 0
test rax, rax
je 0x14003b17d
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 0x14003b46e
test rax, rax
je 0x14003b1eb
mov r8, qword [rax]
mov qword [rdx + 0x60], r8
cmp qword [rax + 8], 0
je 0x14003b1de
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 0x14003b1af
xor r14d, r14d
mov rax, qword [rdx + 8]
xor r13d, r13d
test rax, rax
jle 0x14003b235
mov r8, qword [rdx]
test byte [r13 + r8 + 0x20], 4
je 0x14003b229
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 0x14003b1fa
cmp dword [rdx + 0x18], 0
je 0x14003b272
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp + 0x30]
cmp eax, dword [rdx + 0x18]
je 0x14003b272
cmp qword [rdx + 0x10], 0
je 0x14003b272
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.14000231f
mov rcx, qword [rbp + 0x30]
call fcn.14000231f
test byte [rbp + 0x279], 0x18
je 0x14003b2ea
mov edx, dword [rbp + 0x1d0]
mov eax, 0x280
pxor xmm0, xmm0
movups xmmword [rbp + 0x280], xmm0
movq qword [rbp + 0x290], xmm0
movups xmmword [rbp + rax - 0x10], xmm0
movups xmmword [rbp + rax - 0x20], xmm0
movups xmmword [rbp + rax - 0x30], xmm0
movups xmmword [rbp + rax - 0x40], xmm0
sub rax, 0x40
jne 0x14003b2ae
mov al, byte [rbp + 0x279]
and al, 0xe7
add al, 8
or byte [rbp + 0x282], 4
mov byte [rbp + 0x279], al
mov dword [rbp + 0x1d0], edx
mov dword [rbp + 0x40], edx
jmp 0x14003b2f2
mov rcx, rbp
call fcn.14000231f
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x14003b460
lea rcx, [0x140185e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xd0], 0
test rax, rax
je 0x14003b339
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x18], 0
movzx r9d, byte [rbp + 0x283]
mov r8d, r9d
btr r8d, 0
jae 0x14003b37b
mov al, byte [rbp + 0x27b]
mov dl, al
shr al, 6
and dl, 0xdf
and al, 1
mov r9d, r8d
shl al, 5
or dl, al
mov byte [rbp + 0x27b], dl
mov byte [rbp + 0x283], r9b
test r9d, 2
je 0x14003b39b
mov al, byte [rbp + 0x274]
and r9d, 0xfffffffd
mov byte [rbp + 0x273], al
mov byte [rbp + 0x283], r9b
test r9d, 4
je 0x14003b3bb
mov al, byte [rbp + 0x26c]
and r9d, 0xfffffffb
mov byte [rbp + 0x26b], al
mov byte [rbp + 0x283], r9b
test r9d, 8
je 0x14003b3e9
mov al, byte [rbp + 0x27e]
mov dl, al
shr al, 2
and dl, 0xfd
and al, 1
and r9d, 0xfffffff7
add al, al
or dl, al
mov byte [rbp + 0x27e], dl
mov byte [rbp + 0x283], r9b
test r9d, 0x10
je 0x14003b409
mov al, byte [rbp + 0x272]
and r9d, 0xffffffef
mov byte [rbp + 0x271], al
mov byte [rbp + 0x283], r9b
test r9d, 0x20
je 0x14003b429
mov al, byte [rbp + 0x276]
and r9d, 0xffffffdf
mov byte [rbp + 0x275], al
mov byte [rbp + 0x283], 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 0x14003b460
mov rdx, qword [rcx + 0x60]
test rdx, rdx
je 0x14003b4ab
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 0x14003b272
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 0x14003b477
jmp 0x14003b272
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x140185ea8], eax
jmp 0x14003b151
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14003b460
lea rcx, [0x140185e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14003b460
cmp dword [0x140185ea8], 0
je 0x14003b4b7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x140185ea8]
je 0x14003b4b7
lea rcx, [0x140185e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]