Function at 0x140006cf0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp byte [0x14014e4c0], 0
mov edi, edx
mov rsi, rcx
jne 0x140006d0e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rbp
mov ebp, dword gs:[0x48]
cmp dword [0x14014c878], ebp
je 0x140006d35
mov rcx, qword [0x14014d8c0]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp word [rsi], 0
jne 0x140006d3f
xor ebx, ebx
jmp 0x140006d97
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov dword [rsp + 0x20], 3
lea rcx, [0x14014d8e0]
call fcn.14003df30
mov rbx, rax
test rax, rax
jne 0x140006d97
cmp byte [rsp + 0x60], bl
lea rcx, [0x14014d8e0]
mov r9d, dword [rsp + 0x68]
mov rdx, rsi
setne bl
xor r8d, r8d
inc ebx
mov dword [rsp + 0x20], ebx
call fcn.14003e460
mov rbx, rax
movzx ecx, byte [rbx + 0x23]
test edi, edi
je 0x140006e7e
cmp cl, 4
je 0x140007000
mov rcx, qword [0x14014a210]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.1400e89f4
mov rdi, rax
test rax, rax
je 0x140006fea
cmp dword [0x14014c878], ebp
mov qword [0x14014a210], rax
je 0x140006dec
mov rcx, qword [0x14014d8c0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [0x14014a210]
mov rax, qword [0x140145a80]
cmp byte [rax + 0x135], 0x44
jne 0x140006e21
mov r8d, 0xa
mov rdx, rdi
mov rcx, rbx
call fcn.1400e5b38
mov rbx, qword [rsp + 0x50]
mov rdi, rax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, rdi
test rbx, rbx
jns 0x140006e38
mov eax, 0x2d
lea rsi, [rdi + 2]
mov word [rdi], ax
neg rbx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsi], 0x780030
lea rdx, [rsi + 4]
mov rcx, rbx
call fcn.1400e5b38
mov rax, qword [0x140145a80]
cmp byte [rax + 0x135], 0x48
jne 0x140006e6a
lea rcx, [rsi + 4]
call qword [sym.imp.USER32.dll_CharUpperW]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
cmp cl, 4
je 0x140006ea1
test cl, cl
jne 0x140006e8d
mov rax, qword [rbx + 0x10]
jmp 0x140006e90
mov rax, rbx
test byte [rax + 0x21], 0xa
jne 0x140006ea1
cmp qword [rax + 0x10], 0
je 0x140007000
mov rax, qword [rbx + 8]
cmp word [rax], 0
jne 0x140006fbc
mov rdi, qword [rbx + 0x18]
cmp cl, 4
jne 0x140006ec4
mov rdx, rsi
xor ecx, ecx
call rdi
mov rdi, rax
jmp 0x140006ecd
test rdi, rdi
jne 0x140006ecd
mov rdi, qword [rbx + 0x10]
mov rcx, qword [0x14014a210]
lea rdx, [rdi + 0x101]
call fcn.1400e89f4
mov rdi, rax
test rax, rax
je 0x140006fea
mov qword [0x14014a210], rax
movzx eax, byte [rbx + 0x23]
cmp al, 4
jne 0x140006f35
mov rax, qword [rbx + 0x18]
lea rcx, [0x14006d020]
cmp rax, rcx
mov rdx, rsi
mov rcx, rdi
jne 0x140006f2e
add qword [0x140145a80], 0x150
call rax
sub qword [0x140145a80], 0x150
jmp 0x14000706a
call rax
jmp 0x14000706a
test al, al
jne 0x140006f42
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
jmp 0x140006f4d
cmp al, 1
jne 0x14000706a
mov rcx, qword [rbx]
mov rax, qword [0x140145a80]
cmp byte [rax + 0x135], 0x44
jne 0x140006f70
mov r8d, 0xa
mov rdx, rdi
call fcn.1400e5b38
jmp 0x14000706a
test rcx, rcx
jns 0x140006f84
mov eax, 0x2d
mov word [rdi], ax
add rdi, 2
neg rcx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rdi], 0x780030
lea rdx, [rdi + 4]
call fcn.1400e5b38
mov rax, qword [0x140145a80]
cmp byte [rax + 0x135], 0x48
jne 0x14000706a
lea rcx, [rdi + 4]
call qword [sym.imp.USER32.dll_CharUpperW]
jmp 0x14000706a
cmp cl, 4
jne 0x140006fce
mov rax, qword [rbx + 0x18]
mov rdx, rsi
xor ecx, ecx
call rax
jmp 0x140006fd6
mov rax, qword [rbx + 0x10]
add rax, 2
mov rcx, qword [0x14014a210]
mov rdx, rax
call fcn.1400e89f4
test rax, rax
jne 0x14000702d
mov r8, rsi
lea rdx, str.Out_of_memory.
lea rcx, [0x14014d8e0]
call fcn.1400508c0
cmp dword [0x14014c878], ebp
je 0x140007015
mov rcx, qword [0x14014d8c0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
lea rax, [0x14010d28c]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
movzx ecx, byte [rbx + 0x23]
mov qword [0x14014a210], rax
test cl, cl
jne 0x14000704a
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call fcn.1400c7090
jmp 0x14000706a
cmp cl, 1
jne 0x14000705c
mov rdx, rax
mov rcx, rbx
call fcn.1400c7090
jmp 0x14000706a
cmp cl, 4
jne 0x14000706a
mov rdx, rsi
mov rcx, rax
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x14014c878], ebp
je 0x14000707f
mov rcx, qword [0x14014d8c0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [0x14014a210]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret