Function at 0x435740
Capabilities:
Run powershell expression

Disassembly:
lea r12, [rsp - 0x4d8]
cmp r12, qword [r14 + 0x10]
jbe 0x435bf7
push rbp
mov rbp, rsp
sub rsp, 0x550
nop dword [rax]
cmp qword [r14 + 0x30], rax
je 0x435be5
mov rcx, rax
xor eax, eax
mov edx, 1
lock cmpxchg dword [rcx + 0x5f8], edx
sete dl
nop
test dl, dl
je 0x435b65
mov qword [rsp + 0x548], rcx
lea rax, [rcx + 0x5d0]
mov qword [rsp + 0x538], rax
nop
call sym.runtime.lock2
mov rcx, qword [rsp + 0x548]
cmp qword [rcx + 0x5d8], 0
jne 0x4357ed
nop
nop
mov rax, qword [rsp + 0x538]
call sym.runtime.unlock2
xor ecx, ecx
mov rdx, qword [rsp + 0x548]
xchg dword [rdx + 0x5f8], ecx
nop
mov ecx, 1
lock xadd dword [rdx + 0x440], ecx
add rsp, 0x550
pop rbp
ret
mov qword [rsp + 0x528], 0
mov rax, qword [sym.imp.kernel32.dll_DuplicateHandle]
mov rdx, qword [rcx + 0x5d8]
lea rbx, [rsp + 0x528]
mov qword [rsp], rax
mov qword [rsp + 8], 0xffffffffffffffff
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
movups xmmword [rsp + 0x28], xmm15
mov qword [rsp + 0x38], 2
nop
call sym.runtime.stdcall7.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x40], 0
nop dword [rax]
je 0x435b7c
nop
nop
mov rax, qword [rsp + 0x538]
call sym.runtime.unlock2
movups xmmword [rsp + 0x49], xmm15
lea rdi, [rsp + 0x58]
mov ecx, 0x9a
xor eax, eax
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x58]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x540], rcx
mov dword [rcx + 0x30], 0x100001
nop
nop
lea rax, [0x0061c120]
call sym.runtime.lock2
mov rcx, qword [rsp + 0x528]
mov rdx, qword [sym.imp.kernel32.dll_SuspendThread]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call sym.runtime.stdcall1.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x10]
cmp ecx, 0xffffffff
je 0x435b01
mov rax, qword [rsp + 0x528]
mov rcx, qword [sym.imp.kernel32.dll_GetThreadContext]
mov rdx, qword [rsp + 0x540]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rdx
call sym.runtime.stdcall2.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
nop
nop
lea rax, [0x0061c120]
call sym.runtime.unlock2
mov rax, qword [rsp + 0x548]
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x540]
mov rbx, qword [rdx + 0x98]
test rcx, rcx
je 0x435966
cmp qword [rcx], rbx
jae 0x435966
nop dword [rax + rax]
cmp qword [rcx + 8], rbx
ja 0x4359a0
mov rsi, qword [rax + 0x50]
test rsi, rsi
je 0x43597f
cmp qword [rsi], rbx
jae 0x43597f
cmp qword [rsi + 8], rbx
jbe 0x43597f
mov rcx, rsi
jmp 0x4359a0
mov rsi, qword [rax + 0x90]
test rsi, rsi
je 0x43599b
cmp qword [rsi], rbx
jae 0x43599b
cmp qword [rsi + 8], rbx
jbe 0x43599b
mov rcx, rsi
jmp 0x4359a0
xor ecx, ecx
nop dword [rax]
test rcx, rcx
je 0x4359e7
cmp byte [rcx + 0xb1], 0
jne 0x4359c9
mov rsi, qword [rcx + 0x30]
mov rsi, qword [rsi + 0xa0]
test rsi, rsi
je 0x4359e3
test byte [rsi], al
cmp byte [rsi + 0x22e8], 0
je 0x4359df
nop
mov esi, dword [rcx + 0x90]
and esi, 0xffffefff
cmp esi, 2
sete sil
jmp 0x4359e9
xor esi, esi
jmp 0x4359e9
xor esi, esi
jmp 0x4359e9
xor esi, esi
test sil, sil
je 0x435a7f
mov rbx, qword [rdx + 0xf8]
mov rsi, qword [rdx + 0x98]
mov rax, rcx
mov rcx, rsi
xor edi, edi
call sym.runtime.isAsyncSafePoint
test al, al
je 0x435a77
lea rax, [sym.runtime.asyncPreempt.abi0]
mov rcx, qword [rsp + 0x540]
mov rdx, qword [rcx + 0x98]
add rdx, 0xfffffffffffffff8
mov rsi, rdx
nop
mov qword [rdx], rbx
nop
mov qword [rcx + 0x98], rsi
nop
mov qword [rcx + 0xf8], rax
mov rax, qword [rsp + 0x528]
mov rdx, qword [sym.imp.kernel32.dll_SetThreadContext]
mov qword [rsp], rdx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rcx
nop
call sym.runtime.stdcall2.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x548]
xor ecx, ecx
xchg dword [rax + 0x5f8], ecx
nop
mov ecx, 1
lock xadd dword [rax + 0x440], ecx
mov rax, qword [rsp + 0x528]
mov rcx, qword [sym.imp.kernel32.dll_ResumeThread]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call sym.runtime.stdcall1.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x528]
mov rcx, qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
nop dword [rax]
call sym.runtime.stdcall1.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x550
pop rbp
nop
ret
nop
nop
lea rax, [0x0061c120]
call sym.runtime.unlock2
mov rcx, qword [rsp + 0x528]
mov rdx, qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call sym.runtime.stdcall1.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
xor ecx, ecx
mov rdx, qword [rsp + 0x548]
xchg dword [rdx + 0x5f8], ecx
nop
mov ecx, 1
lock xadd dword [rdx + 0x440], ecx
add rsp, 0x550
pop rbp
ret
nop
mov eax, 1
lock xadd dword [rcx + 0x440], eax
add rsp, 0x550
pop rbp
ret
nop dword [rax]
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x530], rax
call sym.runtime.printlock
lea rax, [0x004e1cc9]
mov ebx, 0x30
call sym.runtime.printstring
mov rax, qword [rsp + 0x530]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004e0a73]
mov ebx, 0x28
nop dword [rax + rax]
call sym.runtime.throw
lea rax, [0x004d98b7]
mov ebx, 0xc
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
nop dword [rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.runtime.preemptM