Function at 0x140005ed0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx + 0xa8]
call fcn.1400fb1b0
lea rcx, [0x14034dd08]
call fcn.1400fe3d0
lea rax, [rsi + 0x148]
mov qword [rbp + 0x7f], rax
lea r15, [rax + 8]
xor r12d, r12d
lea r13d, [r12 + 1]
mov qword [rbp + 0x67], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp + 0x67]
mov rdx, qword [rsi + 0x178]
mov rcx, rsi
call fcn.140006250
mov r14, qword [rbp + 0x67]
test al, al
je 0x14000611a
mov ecx, 0x10
call fcn.1402b6dbc
mov rdi, rax
mov qword [rbp + 0x67], rax
test rax, rax
je 0x140005f77
mov qword [rax], r12
mov qword [rax + 8], r12
call fcn.14000a3c0
mov qword [rdi], rax
jmp 0x140005f7a
mov rdi, r12
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400060cf
nop dword [rax]
xor r10b, r10b
mov r8d, dword [rbx + 0x20]
mov dword [rbp + 0x67], r8d
mov r9, qword [rsi + 0x178]
mov rax, qword [r9]
mov rcx, qword [rax + 8]
mov rdx, rax
cmp byte [rcx + 0x19], r10b
jne 0x140005fca
cmp dword [rcx + 0x20], r8d
jae 0x140005fbe
mov rcx, qword [rcx + 0x10]
jmp 0x140005fc4
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140005fb2
cmp rdx, rax
je 0x140005fdf
cmp r8d, dword [rdx + 0x20]
jb 0x140005fdf
mov qword [rbp + 0x6f], rdx
lea rax, [rbp + 0x6f]
jmp 0x140005fe7
mov qword [rbp + 0x77], rax
lea rax, [rbp + 0x77]
mov rax, qword [rax]
cmp rax, qword [r9]
jne 0x140005ff3
mov dl, 1
jmp 0x140006003
movzx edx, r10b
movzx ecx, word [rax + 0x28]
cmp word [rbx + 0x28], cx
cmovne edx, r13d
test dl, dl
je 0x140006078
lea r8, [rbx + 0x28]
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x49]
call fcn.14000a480
nop
mov rdx, rax
mov rcx, rdi
call fcn.14000a7b0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.14000a810
nop
mov r8, qword [rbp - 0x11]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140009350
mov rcx, qword [rbp - 0x11]
call fcn.1402150f0
cmp dword [rbp - 0x19], 0
jle 0x140006069
mov rcx, qword [rbp - 0x21]
call fcn.1402b7350
cmp dword [rbp - 0x29], 0
jle 0x140006078
mov rcx, qword [rbp - 0x31]
call fcn.1402b7350
cmp byte [rbx + 0x19], 0
jne 0x1400060c6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400060a2
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400060c6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006094
jmp 0x1400060c6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400060c3
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400060c3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400060b0
mov rbx, rax
cmp rbx, qword [r14]
jne 0x140005f90
cmp qword [rdi + 8], 0
jbe 0x1400060f5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
mov r9, rdi
xor r8d, r8d
mov edx, dword [rsi + 0xd0]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14000611a
mov r8, qword [rdi]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140009c30
mov rcx, qword [rdi]
call fcn.1402150f0
mov rcx, rdi
call fcn.1402150f0
mov rbx, qword [rsi + 0x178]
test rbx, rbx
je 0x14000614b
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.140009c30
mov rcx, qword [rbx]
call fcn.1402150f0
mov rcx, rbx
call fcn.1402150f0
mov qword [rsi + 0x178], r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsi + 0xc0]
mov rcx, qword [rsi + 0xc8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140005f23
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret