Function at 0x14012a280
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 [0x140362028]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, [0x140240ed0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
lea rdx, str.RtlInitUnicodeString
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rsi
mov qword [0x140396aa0], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x1403970e0], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x140396a98], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x140396aa8], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x140396a90], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x140396ac0], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x140396ac8], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x140396ab0], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x140396ab8], rax
xor r14d, r14d
cmp qword [0x140396aa0], 0
je 0x14012a59a
cmp qword [0x1403970e0], 0
je 0x14012a59a
cmp qword [0x140396aa8], 0
je 0x14012a59a
cmp qword [0x140396a98], 0
je 0x14012a59a
cmp qword [0x140396a90], 0
je 0x14012a59a
cmp qword [0x140396ac0], 0
je 0x14012a59a
cmp qword [0x140396ac8], 0
je 0x14012a59a
cmp qword [0x140396ab0], 0
je 0x14012a59a
test rax, rax
je 0x14012a59a
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rdi
call rsi
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rdi
call rsi
xor r14d, r14d
test rbx, rbx
je 0x14012a59a
mov rdi, rax
test rax, rax
je 0x14012a59a
movaps xmm0, xmmword [0x140232ef0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov rax, rbx
call qword [case.0x1401f58d0.0]
test eax, eax
setns r14b
js 0x14012a59a
lea rbx, [rsp + 0x20]
mov rdx, qword [rbx + 8]
lea rsi, [0x1403970f0]
mov ebp, 0xff
mov r8d, 0xff
mov rcx, rsi
call fcn.1401d0acc
mov rcx, rsi
call fcn.1401d0678
sub rbp, rax
lea rdx, [0x140236140]
mov rcx, rsi
mov r8, rbp
call fcn.1401d0acc
mov rcx, qword [rbx + 8]
mov dx, 0x5c
call fcn.1401a6a58
lea rdx, [rax + 2]
lea rcx, [0x140396ad0]
mov r8d, 0xff
call fcn.1401d0b40
mov rcx, rbx
mov rax, rdi
call qword [case.0x1401f58d0.0]
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.1401a64a0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14012a4fa
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401d0b14
test eax, eax
je 0x14012a5bb
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 0x14012a535
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401d0b14
test eax, eax
je 0x14012a5bb
xor eax, eax
mov byte [0x140396a89], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140240d26]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14024cfe3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14012a5c2
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x1401f58d0.0]
test eax, eax
je 0x14012a5c2
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140396cd0], al
mov byte [0x140396a88], 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401a4270
mov eax, r14d
add rsp, 0x240
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x14012a537
xor eax, eax
jmp 0x14012a58d