Function at 0x14006d3c0
Capabilities:
Accept command line arguments
Link many functions at runtime
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x240
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
lea rdx, str.RtlInitUnicodeString
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rdi
mov qword [0x14017ece8], rax
lea rdx, str.NtCreateKey
mov rcx, rsi
call rdi
mov qword [0x14017f330], rax
lea rdx, str.NtDeleteKey
mov rcx, rsi
call rdi
mov qword [0x14017ece0], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rsi
call rdi
mov qword [0x14017ecf0], rax
lea rdx, str.NtClose
mov rcx, rsi
call rdi
mov qword [0x14017ecd8], rax
lea rdx, str.NtQueryKey
mov rcx, rsi
call rdi
mov qword [0x14017ed08], rax
lea rdx, str.NtEnumerateKey
mov rcx, rsi
call rdi
mov qword [0x14017ed10], rax
lea rdx, str.NtQueryValueKey
mov rcx, rsi
call rdi
mov qword [0x14017ecf8], rax
lea rdx, str.NtSetValueKey
mov rcx, rsi
call rdi
mov qword [0x14017ed00], rax
xor ebp, ebp
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ece8]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017f330]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ecf0]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ece0]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ecd8]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ed08]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ed10]
test rax, rax
je 0x14006d6cc
mov rax, qword [0x14017ecf8]
test rax, rax
je 0x14006d6cc
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rsi
call rdi
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rsi
call rdi
mov rsi, rax
xor ebp, ebp
test rbx, rbx
je 0x14006d6cc
test rsi, rsi
je 0x14006d6cc
lea rcx, [rsp + 0x20]
call rbx
test eax, eax
js 0x14006d663
lea r14, [rsp + 0x20]
mov rdx, qword [r14 + 8]
lea rbx, [0x14017f340]
mov edi, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140133d7c
mov rcx, rbx
call fcn.140133524
sub rdi, rax
lea rdx, [0x1401450c0]
mov rcx, rbx
mov r8, rdi
call fcn.140133d7c
mov rcx, qword [r14 + 8]
mov dx, 0x5c
call fcn.14011f4ec
lea rdx, [rax + 2]
lea rcx, [0x14017ed20]
mov r8d, 0xff
call fcn.140133df0
mov rcx, r14
call rsi
lea rdi, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
mov rcx, rdi
call fcn.14011eed0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
lea rcx, str.PROGRAMFILES
mov r8d, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006d628
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140133dc4
test eax, eax
je 0x14006d667
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006d65f
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140133dc4
test eax, eax
je 0x14006d667
xor eax, eax
jmp 0x14006d669
xor ebp, ebp
jmp 0x14006d6cc
mov al, 1
mov byte [0x14017ecd1], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140148686]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140151dcc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006d6ba
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rsi
test eax, eax
je 0x14006d6ba
cmp dword [rsp + 0x30], 0
setne al
jmp 0x14006d6bc
xor eax, eax
mov byte [0x14017ef20], al
mov byte [0x14017ecd0], 1
mov bpl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14011a890
mov eax, ebp
add rsp, 0x240
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret