Function at 0x14001e508
Capabilities:
Load windows common language runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xf8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp - 9], rax
mov r14, r9
mov r12d, r8d
mov rsi, rdx
mov r15, rcx
mov r13, qword [rbp + 0x7f]
xor ebx, ebx
mov rcx, qword [0x140068550]
test rcx, rcx
jne 0x14001e6a2
and qword [rbp - 0x59], rbx
xor edi, edi
mov rax, qword [0x140068558]
test rax, rax
jne 0x14001e5e8
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
test rax, rax
jne 0x14001e596
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001e5ed
mov word [rsp + 0x68], bx
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], 1
xor eax, eax
lock cmpxchg qword [0x140068558], rcx
jne 0x14001e5ce
mov rax, qword [0x140068558]
mov qword [0x140068570], rax
mov byte [0x140068578], 1
mov al, 1
mov byte [rbp - 0x80], al
jmp 0x14001e5d1
mov al, byte [rbp - 0x80]
test al, al
jne 0x14001e5db
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and word [rsp + 0x68], 0
mov rax, qword [0x140068558]
mov rdi, rax
xor ebx, ebx
test ebx, ebx
js 0x14001e69e
lea rdx, str.CLRCreateInstance
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14001e620
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001e636
lea r8, [rbp - 0x59]
lea rdx, [0x140052b28]
lea rcx, [0x140052b38]
call rax
mov ebx, eax
test ebx, ebx
js 0x14001e69e
and word [rsp + 0x50], 0
mov rcx, qword [rbp - 0x59]
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], 1
mov rcx, qword [rbp - 0x59]
xor eax, eax
lock cmpxchg qword [0x140068550], rcx
jne 0x14001e67c
mov rax, qword [0x140068550]
mov qword [0x140068580], rax
mov byte [0x140068588], 1
mov al, 1
mov byte [rsp + 0x51], al
jmp 0x14001e680
mov al, byte [rsp + 0x51]
test al, al
jne 0x14001e68f
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
and word [rsp + 0x50], 0
mov rcx, qword [0x140068550]
jmp 0x14001e6a2
mov rcx, qword [rbp - 0x61]
test ebx, ebx
jns 0x14001e6ad
mov eax, ebx
jmp 0x14001e8f8
and qword [rbp - 0x69], 0
mov rax, qword [rcx]
lea r8, [rbp - 0x69]
mov rdx, rsi
call qword [rax + 0x30]
mov edi, eax
xor esi, esi
test eax, eax
js 0x14001e8e7
mov qword [rsp + 0x40], rsi
mov rcx, qword [rbp - 0x69]
mov r10, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x40]
lea ebx, [rsi + 1]
mov edx, ebx
call qword [r10 + 0x18]
test eax, eax
jne 0x14001e8d6
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x140052b48]
call qword [rax]
mov edi, eax
test eax, eax
jns 0x14001e72c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001e727
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14001e821
mov dword [rbp - 0x79], 0x1e
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x49]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
js 0x14001e80b
mov edi, 0x80004005
cmp dword [rbp - 0x79], 2
jbe 0x14001e80b
movzx eax, word [rbp - 0x49]
sub ax, 0x56
mov ecx, 0xffdf
test cx, ax
jne 0x14001e80b
cmp word [rbp - 0x47], 0x34
jb 0x14001e80b
cmp word [rbp - 0x45], 0x2e
jne 0x14001e80b
mov qword [rbp - 0x71], rsi
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rbp - 0x71]
lea r8, [0x140052b18]
lea rdx, [0x140052b08]
call qword [rax + 0x48]
mov edi, eax
call fcn.140001424
test rax, rax
je 0x14001e8cb
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x61]
mov rcx, r15
call fcn.140020370
test edi, edi
jns 0x14001e84a
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e7fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14001e80b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001e821
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001e831
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, ebx
call qword [rax + 0x18]
jmp 0x14001e6e8
test r14, r14
je 0x14001e862
or rdx, 0xffffffffffffffff
inc rdx
cmp word [r14 + rdx*2], si
jne 0x14001e853
shl edx, 3
jmp 0x14001e864
mov edx, esi
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r14
mov rbx, qword [rbp - 0x61]
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8d, 0x1388
mov edx, r12d
call qword [rax + 0x18]
mov edi, eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e8a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14001e8b9
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001e8d6
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14001e8d6
mov ecx, 0x80004005
call fcn.140003cb0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001e8e7
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14001e8f6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140026390
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret