Function at 0x1800112c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180054040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x1e0]
test rcx, rcx
je 0x180011560
xor edx, edx
call fcn.180007790
mov rcx, rbx
call fcn.180012940
mov r9, qword [rbx + 0xf0]
movabs rax, 0x6666666666666667
mov rcx, qword [rbx + 0xf8]
sub rcx, r9
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x180011560
lea r8, [rdi + rdi*4]
mov qword [rsp + 0x78], rbp
shl r8, 4
add r8, r9
mov qword [rsp + 0x80], rsi
xor esi, esi
mov edx, dword [r8 + 0x24]
test edx, edx
jne 0x18001135b
mov eax, 0xffffffff
jmp 0x180011397
mov ecx, dword [r8 + 0x20]
sub ecx, 1
je 0x18001138c
sub ecx, 1
je 0x180011382
cmp ecx, 1
je 0x180011375
mov eax, 0xffffffff
jmp 0x180011397
lea eax, [rdx - 1]
cdq
sub eax, edx
sar eax, 1
add eax, 0xc
jmp 0x180011397
lea eax, [rdx - 1]
cdq
sub eax, edx
sar eax, 1
jmp 0x180011397
lea eax, [rdx - 0x71]
cmp edx, 0x71
jge 0x180011397
lea eax, [rdx + 0x26]
mov rdi, qword [rbx + 0x1e0]
xor ebp, ebp
mov dword [rsp + 0x38], eax
movzx eax, word [r8 + 0x2a]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rdi + 0xb0]
movzx eax, word [r8 + 0x28]
mov dword [rsp + 0x34], 7
mov dword [rsp + 0x40], eax
test rcx, rcx
je 0x180011539
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180011539
cmp byte [rdi + 0xa8], sil
jne 0x180011476
mov eax, dword [rdi + 0xac]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov r8d, 0x7530
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
je 0x180011476
mov eax, dword [rdi + 0xac]
mov edx, 0x7530
mov rcx, qword [rdi + 0xb8]
dec eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], esi
test rcx, rcx
je 0x180011438
call fcn.1800078b0
jmp 0x180011441
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
test eax, eax
je 0x180011476
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, 0x7530
mov rcx, rdi
call qword [rax + 0x28]
test eax, eax
je 0x180011476
mov eax, dword [rdi + 0xac]
cmp dword [rsp + 0x30], eax
jne 0x180011476
inc eax
mov ebp, 1
mov dword [rdi + 0xac], eax
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x180011539
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x180011539
test ebp, ebp
je 0x180011539
cmp dword [rsp + 0x34], esi
je 0x180011539
mov esi, dword [rsp + 0x38]
test esi, esi
je 0x180011539
mov rcx, qword [rbx + 0x1e0]
mov edx, 1
call fcn.180007790
test eax, eax
je 0x180011539
cmp qword [rbx + 0x1a0], 0
je 0x180011539
cmp qword [rbx + 0x1e0], 0
je 0x180011539
cmp qword [rbx + 0x1a8], 0xffffffffffffffff
jne 0x180011539
mov qword [rsp + 0x28], 0
lea r8, [0x180012920]
mov r9, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call fcn.180021a98
mov qword [rbx + 0x1a8], rax
cmp rax, 0xffffffffffffffff
je 0x180011539
mov edx, dword [rbx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [rbx + 0x1b0], 0
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [rbx + 0x44]
mov rbp, qword [rsp + 0x78]
test ecx, ecx
je 0x18001154b
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x80]
jmp 0x180011562
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180016000
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret