Function at 0x14000ee40
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
push rdi
sub rsp, 0x38
cmp byte [0x140117b90], 0
mov ebp, edx
mov rdi, rcx
jne 0x14000ee5e
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 [0x140116f80], esi
je 0x14000ee85
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp word [rdi], 0
jne 0x14000ee8f
xor ebx, ebx
jmp 0x14000eee7
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, [0x140116fb0]
call fcn.1400486d0
mov rbx, rax
test rax, rax
jne 0x14000eee7
cmp byte [rsp + 0x60], bl
lea rcx, [0x140116fb0]
mov r9d, dword [rsp + 0x68]
mov rdx, rdi
setne bl
xor r8d, r8d
inc ebx
mov dword [rsp + 0x20], ebx
call fcn.140048c10
mov rbx, rax
movzx ecx, byte [rbx + 0x23]
test ebp, ebp
je 0x14000ef51
cmp cl, 4
je 0x14000f07c
mov rcx, qword [0x140113888]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000f066
cmp dword [0x140116f80], esi
mov qword [0x140113888], rax
je 0x14000ef36
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x140113888]
mov rdx, rax
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
jmp int.140001540
cmp cl, 4
je 0x14000ef74
test cl, cl
jne 0x14000ef60
mov rax, qword [rbx + 0x10]
jmp 0x14000ef63
mov rax, rbx
test byte [rax + 0x21], 0xa
jne 0x14000ef74
cmp qword [rax + 0x10], 0
je 0x14000f07c
mov rax, qword [rbx + 8]
cmp word [rax], 0
jne 0x14000f03a
mov rbp, qword [rbx + 0x18]
cmp cl, 4
jne 0x14000ef97
mov rdx, rdi
xor ecx, ecx
call rbp
mov rbp, rax
jmp 0x14000efa0
test rbp, rbp
jne 0x14000efa0
mov rbp, qword [rbx + 0x10]
mov rcx, qword [0x140113888]
lea rdx, [rbp + 0x101]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000f066
movzx ecx, byte [rbx + 0x23]
mov qword [0x140113888], rax
cmp cl, 4
jne 0x14000f009
mov r8, qword [rbx + 0x18]
lea rcx, [0x14006f930]
cmp r8, rcx
mov rdx, rdi
mov rcx, rax
jne 0x14000f001
add qword [0x1401101f0], 0x150
call r8
sub qword [0x1401101f0], 0x150
jmp 0x14000f0e6
call r8
jmp 0x14000f0e6
test cl, cl
jne 0x14000f021
mov rcx, qword [rbx + 0x10]
mov rdx, rax
mov rcx, qword [rcx]
call int.140001540
jmp 0x14000f0e6
cmp cl, 1
jne 0x14000f0e6
mov rcx, qword [rbx]
mov rdx, rax
call int.140001540
jmp 0x14000f0e6
cmp cl, 4
jne 0x14000f049
mov rdx, rdi
xor ecx, ecx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x14000f051
mov rax, qword [rbx + 0x10]
add rax, 2
mov rcx, qword [0x140113888]
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x14000f0a9
mov r8, rdi
lea rdx, str.Out_of_memory.
lea rcx, [0x140116fb0]
call fcn.140057630
cmp dword [0x140116f80], esi
je 0x14000f091
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
lea rax, [0x1400da7a4]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
ret
movzx ecx, byte [rbx + 0x23]
mov qword [0x140113888], rax
test cl, cl
jne 0x14000f0c6
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call fcn.1400bf490
jmp 0x14000f0e6
cmp cl, 1
jne 0x14000f0d8
mov rdx, rax
mov rcx, rbx
call fcn.1400bf490
jmp 0x14000f0e6
cmp cl, 4
jne 0x14000f0e6
mov rdx, rdi
mov rcx, rax
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x140116f80], esi
je 0x14000f0fb
mov rcx, qword [0x140116f88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x140113888]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbp
ret