Function at 0x140001070
Capabilities:
Load windows common language runtime

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r9
mov r13, r8
mov rdi, rcx
xor ecx, ecx
mov r15d, ecx
mov qword [rsp + 0x58], rcx
mov rdx, rdi
call fcn.140002a50
test al, al
jne 0x14000182b
mov rdx, rbx
call fcn.140002a50
test al, al
jne 0x14000182b
mov qword [rsp + 0x50], rcx
mov esi, ecx
mov rdx, rdi
call fcn.140002a50
lea r9d, [rcx + 1]
test al, al
jne 0x1400011a4
mov rdx, rbx
call fcn.140002a50
test al, al
jne 0x1400011a4
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [0x14000d928]
mov qword [rsp + 0x20], rax
lea r9, [0x14000d968]
lea r8d, [r15 + 4]
lea rdx, [0x14000d988]
mov rcx, rbx
call qword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
cmp eax, 0x80131700
je 0x14000117d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000117d
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
jns 0x1400011ab
mov rcx, qword [0x140015bf0]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
xor edx, edx
lea r8d, [r15 + 5]
call qword [0x14000d338]
jmp 0x14000181a
mov rcx, qword [0x140015bf0]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 3]
mov rax, qword [rax + 8]
call qword [0x14000d338]
jmp 0x14000181a
mov esi, 0xffff0000
jmp 0x1400011b1
xor ecx, ecx
lea r9d, [rcx + 1]
cmp esi, 0xffff0000
je 0x14000181f
mov r14, qword [rbp + 0x160]
test r14, r14
je 0x14000181a
mov dword [rbp - 0x54], ecx
movsxd rbx, dword [rbp + 0x158]
mov eax, ebx
mov edi, dword [rbp + 0x150]
sub eax, edi
dec eax
mov dword [rbp - 0x58], eax
mov esi, 8
mov ecx, esi
lea r8, [rbp - 0x58]
mov edx, r9d
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov r12, rax
test rax, rax
je 0x14000181a
mov dword [rbp + 0x128], 0
cmp dword [rbp - 0x58], 0
je 0x140001278
lea ecx, [rdi + 1]
movsxd rdi, ecx
mov r15, rbx
cmp rdi, rbx
jge 0x140001273
mov rcx, qword [r14 + rdi*8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
je 0x140001815
mov r8, rax
lea rdx, [rbp + 0x128]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [rbp + 0x128]
test ebx, ebx
js 0x140001815
inc rdi
cmp rdi, r15
jl 0x140001224
mov esi, 8
mov r15, qword [rsp + 0x58]
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
mov rax, qword [rax + 0x68]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
js 0x1400017d4
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400017d4
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x14000d948]
mov rax, qword [rax]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
js 0x1400017d4
cmp qword [rsp + 0x60], r14
je 0x1400017d4
mov qword [rsp + 0x70], r14
lea ecx, [r14 + 0x18]
call fcn.140002ef0
mov rbx, rax
mov qword [rsp + 0x58], rax
lea rax, [0x14000a2d0]
test rbx, rbx
je 0x14000133b
mov qword [rbx + 8], r14
mov eax, 1
mov dword [rbx + 0x10], eax
mov rdi, qword [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140001332
test rdi, rdi
jne 0x14000185c
lea rax, [0x14000a2d0]
jmp 0x14000133e
mov rbx, r14
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x140001887
mov ecx, SafeArrayCopy
call fcn.140002ef0
mov rdi, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140001389
mov qword [rax + 8], r14
mov eax, 1
mov dword [rdi + 0x10], eax
lea rcx, str.Microsoft.PowerShell.UnmanagedPSEntry
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x1400018ab
jmp 0x14000138c
mov rdi, r14
mov qword [rbp - 0x80], rdi
test rdi, rdi
je 0x1400018d6
test rdi, rdi
je 0x1400013a3
mov r8, qword [rdi]
jmp 0x1400013a6
mov r8, r14
test rbx, rbx
je 0x1400013b0
mov rdx, qword [rbx]
jmp 0x1400013b3
mov rdx, r14
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
mov rax, qword [rax + 0x128]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
js 0x140001786
cmp qword [rsp + 0x70], 0
je 0x140001786
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov word [rbp - 0x78], r14w
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov rax, qword [rax + 0x70]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
jns 0x140001457
mov rcx, qword [0x140015c00]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
xor edx, edx
lea r8d, [rdx + 7]
call qword [0x14000d338]
mov esi, 0xffff0000
mov eax, 0xfff
cmp word [rbp - 0x78], ax
jne 0x140001447
mov eax, 8
mov word [rbp - 0x78], ax
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
jmp 0x1400017a5
mov qword [rsp + 0x78], r14
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ATL.DLL_AtlComPtrAssign]
lea rax, str.Start
mov qword [rbp - 0x48], rax
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x800
mov r9d, 1
lea r8, [rbp - 0x48]
lea rdx, [0x14000d6b0]
mov rax, qword [rax + 0x28]
call qword [0x14000d338]
mov r9d, eax
test eax, eax
jns 0x1400014fe
mov rcx, qword [0x140015c00]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
mov r8d, esi
xor edx, edx
call qword [0x14000d338]
mov esi, 0xffff0000
lea rcx, [rsp + 0x78]
call fcn.140002e88
nop
mov eax, 0xfff
cmp word [rbp - 0x78], ax
jne 0x1400014ee
mov eax, 8
mov word [rbp - 0x78], ax
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
jmp 0x1400017a5
mov eax, 0x2000
mov word [rbp + 0x78], ax
mov qword [rbp + 0x80], r12
test r13, r13
je 0x140001558
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rax, rax
jne 0x140001558
mov esi, 0xffff0000
lea rcx, [rsp + 0x78]
call fcn.140002e88
nop
mov eax, 0xfff
cmp word [rbp - 0x78], ax
jne 0x140001548
mov eax, 8
mov word [rbp - 0x78], ax
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
jmp 0x1400017a5
mov word [rbp + 0x90], si
mov qword [rbp + 0x98], r15
lea rax, [rbp + 0x78]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 2
mov eax, SafeArrayCopy
mov word [rbp - 0x28], ax
mov dword [rbp - 0x20], r14d
mov dword [rbp + 0x148], r14d
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp + 0x148]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp + 0xb0]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x28], rdx
mov edx, 1
mov word [rsp + 0x20], dx
mov r9d, 0x800
lea r8, [0x14000d6b0]
mov edx, dword [rbp - 0x60]
mov rax, qword [rax + 0x30]
call qword [0x14000d338]
mov r9d, eax
mov esi, dword [rbp - 0x20]
test eax, eax
jns 0x14000165a
mov rcx, qword [0x140015c00]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
cmp r9d, 0x80020009
jne 0x14000161a
mov r9, qword [rbp + 0xc0]
lea r8d, [rdx + 0xa]
call qword [0x14000d338]
jmp 0x140001626
mov r8d, 9
call qword [0x14000d338]
mov esi, 0xffff0000
lea rcx, [rsp + 0x78]
call fcn.140002e88
nop
mov eax, 0xfff
cmp word [rbp - 0x78], ax
jne 0x14000164a
mov eax, 8
mov word [rbp - 0x78], ax
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
jmp 0x1400017a5
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001672
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
mov eax, 0xfff
cmp word [rbp - 0x78], ax
jne 0x140001686
mov eax, 8
mov word [rbp - 0x78], ax
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
or r14d, 0xffffffff
test rdi, rdi
je 0x1400016e0
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x1400016da
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400016bd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor r12d, r12d
mov qword [rdi], r12
jmp 0x1400016c0
xor r12d, r12d
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400016d2
call sub.msvcrt.dll_free
mov qword [rdi + 8], r12
mov rcx, rdi
call sub.msvcrt.dll_free
xor edi, edi
mov qword [rbp - 0x80], rdi
test rbx, rbx
je 0x140001721
lock xadd dword [rbx + 0x10], r14d
cmp r14d, 1
jne 0x14000171c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001702
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001714
call sub.msvcrt.dll_free
mov qword [rbx + 8], rdi
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], rdi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001739
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001751
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001769
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001781
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
jmp 0x140001830
mov rcx, qword [0x140015c00]
mov rax, qword [rcx]
xor edx, edx
lea r8d, [rdx + 7]
mov rax, qword [rax + 8]
call qword [0x14000d338]
mov esi, 0xffff0000
test rdi, rdi
je 0x1400017b6
mov rcx, rdi
call fcn.140005438
mov qword [rbp - 0x80], r14
test rbx, rbx
je 0x1400017c8
mov rcx, rbx
call fcn.140005438
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x70]
call fcn.140002e88
jmp 0x1400017f3
mov rcx, qword [0x140015c00]
mov rax, qword [rcx]
xor edx, edx
lea r8d, [rdx + 6]
mov rax, qword [rax + 8]
call qword [0x14000d338]
mov esi, 0xffff0000
lea rcx, [rsp + 0x68]
call fcn.140002e88
nop
lea rcx, [rsp + 0x60]
call fcn.140002e88
nop
lea rcx, [rsp + 0x50]
call fcn.140002e88
jmp 0x140001830
mov r15, qword [rsp + 0x58]
mov esi, 0xffff0000
lea rcx, [rsp + 0x50]
call fcn.140002e88
jmp 0x140001830
mov esi, 0xffff0000
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, [0x14000a2d0]
mov qword [rbp - 8], rax
mov dword [rbp], 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
lea rdx, [0x140013ee8]
lea rcx, [rbp - 8]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
lea rdx, [0x140013ee8]
lea rcx, [rbp + 0x18]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, [0x14000a2d0]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
lea rdx, [0x140013ee8]
lea rcx, [rbp + 0x38]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, [0x14000a2d0]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
lea rdx, [0x140013ee8]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3