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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, str.ntdll.dll
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 [0x1400e8850], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x1400e8e90], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x1400e8848], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x1400e8858], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x1400e8840], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x1400e8870], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x1400e8878], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x1400e8860], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x1400e8868], rax
xor ebp, ebp
test rax, rax
je 0x1400555db
cmp qword [0x1400e8850], 0
je 0x1400555db
cmp qword [0x1400e8e90], 0
je 0x1400555db
cmp qword [0x1400e8858], 0
je 0x1400555db
cmp qword [0x1400e8848], 0
je 0x1400555db
cmp qword [0x1400e8840], 0
je 0x1400555db
cmp qword [0x1400e8870], 0
je 0x1400555db
cmp qword [0x1400e8878], 0
je 0x1400555db
cmp qword [0x1400e8860], 0
je 0x1400555db
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rdi
call rsi
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rdi
call rsi
xor ebp, ebp
test rbx, rbx
je 0x1400555db
mov rdi, rax
test rax, rax
je 0x1400555db
lea rcx, [rsp + 0x20]
call rbx
test eax, eax
setns bpl
js 0x1400555db
lea r14, [rsp + 0x20]
mov rdx, qword [r14 + 8]
lea r15, [0x1400e8ea0]
mov ebx, 0xff
mov r8d, 0xff
mov rcx, r15
call fcn.1400a67c4
mov rcx, r15
call fcn.1400a6370
sub rbx, rax
lea rdx, [0x1400be7f8]
mov rcx, r15
mov r8, rbx
call fcn.1400a67c4
mov rcx, qword [r14 + 8]
mov dx, 0x5c
call fcn.140091508
lea rdx, [rax + 2]
lea rcx, [0x1400e8880]
mov r8d, 0xff
call fcn.1400a6838
mov rcx, r14
call rdi
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140090f50
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005553e
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a680c
test eax, eax
je 0x140055579
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 0x140055575
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a680c
test eax, eax
je 0x140055579
xor eax, eax
jmp 0x14005557b
mov al, 1
mov byte [0x1400e8839], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1400bebc0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400c09f6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400555cc
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rdi
test eax, eax
je 0x1400555cc
cmp dword [rsp + 0x30], 0
setne al
jmp 0x1400555ce
xor eax, eax
mov byte [0x1400e8a80], al
mov byte [0x1400e8838], 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008db90
mov eax, ebp
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret