Function at 0x180009ac0
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rbx, rcx
mov edx, 4
call fcn.180009da0
nop
xor esi, esi
cmp qword [rbx + 0x60], rsi
je 0x180009b1b
mov edx, 0x1388
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor edx, edx
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x60], rsi
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x70], rsi
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x68], rsi
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbx + 0x58], rsi
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeEndPeriod]
nop
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x180009baa
mov rdx, qword [rbx + 0xe0]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180009b8f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009d7a
mov rcx, r8
call fcn.18003e434
nop
mov qword [rbx + 0xd0], rsi
mov qword [rbx + 0xd8], rsi
mov qword [rbx + 0xe0], rsi
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x180009c00
mov rdx, qword [rbx + 0xc8]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180009be5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009d80
mov rcx, r8
call fcn.18003e434
nop
mov qword [rbx + 0xb8], rsi
mov qword [rbx + 0xc0], rsi
mov qword [rbx + 0xc8], rsi
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x180009c56
mov rdx, qword [rbx + 0xb0]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180009c3b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009d86
mov rcx, r8
call fcn.18003e434
nop
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0xb0], rsi
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x180009c7b
sub rax, 1
mov qword [rbx + 0x98], rax
jne 0x180009c76
mov qword [rbx + 0x90], rsi
test rax, rax
jne 0x180009c62
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x180009cb3
nop word [rax + rax]
dec rdi
mov rax, qword [rbx + 0x80]
mov rcx, qword [rax + rdi*8]
test rcx, rcx
je 0x180009cae
mov edx, 0x10
call fcn.18003e434
nop
test rdi, rdi
jne 0x180009c90
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x180009cf5
mov rdx, qword [rbx + 0x88]
shl rdx, 3
cmp rdx, 0x1000
jb 0x180009cef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009d6e
mov rcx, r8
call fcn.18003e434
nop
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x80], rsi
mov edx, 0x10
mov rcx, qword [rbx + 0x78]
call fcn.18003e434
nop
mov qword [rbx + 0x78], rsi
mov rdx, qword [rbx + 0x48]
cmp rdx, 0x10
jb 0x180009d4e
inc rdx
mov rcx, qword [rbx + 0x30]
cmp rdx, 0x1000
jb 0x180009d48
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180009d74
mov rcx, r8
call fcn.18003e434
nop
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], 0xf
mov byte [rbx + 0x30], sil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.18004a448
nop
call fcn.18004a448
nop
call fcn.18004a448
nop
call fcn.18004a448
nop
call fcn.18004a448
nop
int3