Function at 0x140008e28
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r13
sub rsp, 0x20
cmp dword [rcx + 0x128], 0
mov rbx, rcx
je 0x14000910d
and dword [rcx + 0x128], 0
and dword [rcx + 0x130], 0
and dword [rcx + 0x134], 0
mov rcx, qword [rcx + 0x198]
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
mov edx, 0x8005
mov rcx, qword [rcx + 8]
mov r8d, 3
call qword [sym.imp.USER32.dll_EnableMenuItem]
lea rcx, [rbx + 0x4f8]
call fcn.1400159e0
mov rcx, qword [rbx + 0x1a0]
xor edx, edx
call fcn.14000a500
lea r8, [0x1401c4d70]
mov edx, 0x3e9
mov rcx, rbx
call fcn.14000a290
mov rcx, qword [rbx + 0x1a8]
xor r9d, r9d
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
mov edx, 0x184
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rbx + 0x138], 0
je 0x140008ef6
mov rcx, qword [rbx + 0x180]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [rbx + 0x180]
xor r9d, r9d
xor r8d, r8d
mov ecx, dword [rax + 0x60]
mov edx, 0x5f5
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, [rbx + 0x2f8]
call fcn.1400159e0
mov r11, qword [rbx + 0x188]
xor r9d, r9d
mov ecx, dword [r11 + 0x60]
xor r8d, r8d
mov edx, 0x659
call qword [sym.imp.USER32.dll_PostThreadMessageW]
cmp dword [rbx + 0x120], 0
je 0x140008fa3
cmp dword [rbx + 0x12c], 0
je 0x140008fa3
mov rdi, qword [rbx + 0x118]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140008f75
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x444
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140008f98
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x445
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbx + 0x3f8]
call fcn.1400159e0
mov edx, 0x3ed
mov rcx, rbx
call fcn.14000a1f0
mov r13d, 1
xor edx, edx
mov rcx, qword [rax + 0x40]
mov r8d, r13d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, 0x3ee
mov rcx, rbx
call fcn.14000a1f0
mov r8d, r13d
xor edx, edx
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x180]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbx + 0x198]
mov dword [rbx + 0x138], r13d
mov rcx, qword [rcx + 8]
lea edi, [r13 + 7]
mov edx, 0x800b
mov r8d, edi
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x198]
mov dword [rbx + 0x13c], r13d
mov rcx, qword [rcx + 8]
mov r8d, edi
mov edx, 0x800d
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x198]
mov dword [rbx + 0x140], r13d
mov rcx, qword [rcx + 8]
mov r8d, edi
mov edx, 0x800e
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x198]
mov dword [rbx + 0x144], r13d
mov rcx, qword [rcx + 8]
mov r8d, edi
mov edi, 0x800f
mov edx, edi
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x198]
lea edx, [rdi - 4]
mov rcx, qword [rcx + 8]
mov r8d, r13d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
lea edx, [rdi - 2]
mov rcx, qword [rcx + 8]
mov r8d, r13d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
lea edx, [rdi - 1]
mov rcx, qword [rcx + 8]
mov r8d, r13d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
mov r8d, r13d
mov rcx, qword [rcx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
lea edx, [rdi - 8]
mov rcx, qword [rcx + 8]
mov r8d, r13d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rbx + 0x198]
lea edx, [rdi - 7]
mov rcx, qword [rcx + 8]
mov r8d, r13d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop r13
ret