Function at 0x1400e1cd4
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 [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, [0x1401cb608]
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 [0x140348c00], rax
lea rdx, str.NtCreateKey
mov rcx, rsi
call rdi
mov qword [0x140349240], rax
lea rdx, str.NtDeleteKey
mov rcx, rsi
call rdi
mov qword [0x140348bf8], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rsi
call rdi
mov qword [0x140348c08], rax
lea rdx, str.NtClose
mov rcx, rsi
call rdi
mov qword [0x140348bf0], rax
lea rdx, str.NtQueryKey
mov rcx, rsi
call rdi
mov qword [0x140348c20], rax
lea rdx, str.NtEnumerateKey
mov rcx, rsi
call rdi
mov qword [0x140348c28], rax
lea rdx, str.NtQueryValueKey
mov rcx, rsi
call rdi
mov qword [0x140348c10], rax
lea rdx, str.NtSetValueKey
mov rcx, rsi
call rdi
mov qword [0x140348c18], rax
xor ebp, ebp
test rax, rax
je 0x1400e1fd0
cmp qword [0x140348c00], 0
je 0x1400e1fd0
cmp qword [0x140349240], 0
je 0x1400e1fd0
cmp qword [0x140348c08], 0
je 0x1400e1fd0
cmp qword [0x140348bf8], 0
je 0x1400e1fd0
cmp qword [0x140348bf0], 0
je 0x1400e1fd0
cmp qword [0x140348c20], 0
je 0x1400e1fd0
cmp qword [0x140348c28], 0
je 0x1400e1fd0
cmp qword [0x140348c10], 0
je 0x1400e1fd0
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rsi
call rdi
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rsi
call rdi
xor ebp, ebp
test rbx, rbx
je 0x1400e1fd0
mov rsi, rax
test rax, rax
je 0x1400e1fd0
lea rcx, [rsp + 0x20]
call rbx
test eax, eax
js 0x1400e1f67
lea r14, [rsp + 0x20]
mov rdx, qword [r14 + 8]
lea rbx, [0x140349250]
mov edi, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1401a873c
mov rcx, rbx
call fcn.1401a82e8
sub rdi, rax
lea rdx, [0x1401c919c]
mov rcx, rbx
mov r8, rdi
call fcn.1401a873c
mov rcx, qword [r14 + 8]
mov dx, 0x5c
call fcn.140186d9c
lea rdx, [rax + 2]
lea rcx, [0x140348c30]
mov r8d, 0xff
call fcn.1401a87b0
mov rcx, r14
call rsi
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.1401867a0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400e1f2c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1401a8784
test eax, eax
je 0x1400e1f6b
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 0x1400e1f63
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1401a8784
test eax, eax
je 0x1400e1f6b
xor eax, eax
jmp 0x1400e1f6d
xor ebp, ebp
jmp 0x1400e1fd0
mov al, 1
mov byte [0x140348be9], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1401cb5b6]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401d90fa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400e1fbe
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rsi
test eax, eax
je 0x1400e1fbe
cmp dword [rsp + 0x30], 0
setne al
jmp 0x1400e1fc0
xor eax, eax
mov byte [0x140348e30], al
mov byte [0x140348be8], 1
mov bpl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140183a80
mov eax, ebp
add rsp, 0x240
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret