Function at 0x14000ed50
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
push rdi
sub rsp, 0x38
cmp byte [0x1401468b0], 0
mov ebp, edx
mov rdi, rcx
jne 0x14000ed6e
xor eax, eax
add rsp, 0x38
pop rdi
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rsi
mov esi, dword gs:[0x48]
cmp dword [0x140145ca0], esi
je 0x14000ed95
mov rcx, qword [0x140145ca8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp word [rdi], 0
jne 0x14000ed9f
xor ebx, ebx
jmp 0x14000edf7
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rdi
mov dword [rsp + 0x20], 3
lea rcx, [0x140145cd0]
call fcn.140048200
mov rbx, rax
test rax, rax
jne 0x14000edf7
cmp byte [rsp + 0x60], bl
lea rcx, [0x140145cd0]
mov r9d, dword [rsp + 0x68]
mov rdx, rdi
setne bl
xor r8d, r8d
inc ebx
mov dword [rsp + 0x20], ebx
call fcn.140048730
mov rbx, rax
movzx ecx, byte [rbx + 0x23]
test ebp, ebp
je 0x14000ee60
cmp cl, 4
je 0x14000ef89
mov rcx, qword [0x1401425a8]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.1400dc230
test rax, rax
je 0x14000ef73
cmp dword [0x140145ca0], esi
mov qword [0x1401425a8], rax
je 0x14000ee45
mov rcx, qword [0x140145ca8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x1401425a8]
mov rdx, rax
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
jmp fcn.140001540
cmp cl, 4
je 0x14000ee83
test cl, cl
jne 0x14000ee6f
mov rax, qword [rbx + 0x10]
jmp 0x14000ee72
mov rax, rbx
test byte [rax + 0x21], 0xa
jne 0x14000ee83
cmp qword [rax + 0x10], 0
je 0x14000ef89
mov rax, qword [rbx + 8]
cmp word [rax], 0
jne 0x14000ef48
mov rbp, qword [rbx + 0x18]
cmp cl, 4
jne 0x14000eea6
mov rdx, rdi
xor ecx, ecx
call rbp
mov rbp, rax
jmp 0x14000eeaf
test rbp, rbp
jne 0x14000eeaf
mov rbp, qword [rbx + 0x10]
mov rcx, qword [0x1401425a8]
lea rdx, [rbp + 0x101]
call fcn.1400dc230
test rax, rax
je 0x14000ef73
movzx ecx, byte [rbx + 0x23]
mov qword [0x1401425a8], rax
cmp cl, 4
jne 0x14000ef17
mov r8, qword [rbx + 0x18]
lea rcx, [0x14006f2b0]
cmp r8, rcx
mov rdx, rdi
mov rcx, rax
jne 0x14000ef0f
add qword [0x14013dbf0], 0x150
call r8
sub qword [0x14013dbf0], 0x150
jmp 0x14000eff3
call r8
jmp 0x14000eff3
test cl, cl
jne 0x14000ef2f
mov rcx, qword [rbx + 0x10]
mov rdx, rax
mov rcx, qword [rcx]
call fcn.140001540
jmp 0x14000eff3
cmp cl, 1
jne 0x14000eff3
mov rcx, qword [rbx]
mov rdx, rax
call fcn.140001540
jmp 0x14000eff3
cmp cl, 4
jne 0x14000ef57
mov rdx, rdi
xor ecx, ecx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x14000ef5f
mov rax, qword [rbx + 0x10]
add rax, 2
mov rcx, qword [0x1401425a8]
mov rdx, rax
call fcn.1400dc230
test rax, rax
jne 0x14000efb6
mov r8, rdi
lea rdx, str.Out_of_memory.
lea rcx, [0x140145cd0]
call fcn.1400570c0
cmp dword [0x140145ca0], esi
je 0x14000ef9e
mov rcx, qword [0x140145ca8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
lea rax, [0x140103574]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
ret
movzx ecx, byte [rbx + 0x23]
mov qword [0x1401425a8], rax
test cl, cl
jne 0x14000efd3
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call fcn.1400beb20
jmp 0x14000eff3
cmp cl, 1
jne 0x14000efe5
mov rdx, rax
mov rcx, rbx
call fcn.1400beb20
jmp 0x14000eff3
cmp cl, 4
jne 0x14000eff3
mov rdx, rdi
mov rcx, rax
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x140145ca0], esi
je 0x14000f008
mov rcx, qword [0x140145ca8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x1401425a8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
ret