Function at 0x140087e00
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 [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
lea rdx, [0x1401fa140]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rsi
mov qword [0x140225c70], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x1402262b0], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x140225c68], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x140225c78], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x140225c60], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x140225c90], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x140225c98], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x140225c80], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x140225c88], rax
xor r14d, r14d
cmp qword [0x140225c70], 0
je 0x140088101
cmp qword [0x1402262b0], 0
je 0x140088101
cmp qword [0x140225c78], 0
je 0x140088101
cmp qword [0x140225c68], 0
je 0x140088101
cmp qword [0x140225c60], 0
je 0x140088101
cmp qword [0x140225c90], 0
je 0x140088101
cmp qword [0x140225c98], 0
je 0x140088101
cmp qword [0x140225c80], 0
je 0x140088101
test rax, rax
je 0x140088101
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 0x140088101
mov rdi, rax
test rax, rax
je 0x140088101
movaps xmm0, xmmword [0x1401e90c0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call rbx
test eax, eax
setns r14b
js 0x140088101
lea rbx, [rsp + 0x20]
mov rdx, qword [rbx + 8]
lea rsi, [0x1402262c0]
mov ebp, 0xff
mov r8d, 0xff
mov rcx, rsi
call fcn.14012cd14
mov rcx, rsi
call fcn.14012c3a4
sub rbp, rax
lea rdx, [0x1401e9db0]
mov rcx, rsi
mov r8, rbp
call fcn.14012cd14
mov rcx, qword [rbx + 8]
mov dx, 0x5c
call fcn.1401147b8
lea rdx, [rax + 2]
lea rcx, [0x140225ca0]
mov r8d, 0xff
call fcn.14012cd88
mov rcx, rbx
call rdi
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.140114200
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 0x14008806c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14012cd5c
test eax, eax
je 0x140088122
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 0x1400880a3
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14012cd5c
test eax, eax
je 0x140088122
xor eax, eax
mov byte [0x140225c59], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1401ef616]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401fa220]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140088129
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rdi
test eax, eax
je 0x140088129
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140225ea0], al
mov byte [0x140225c58], 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140111870
mov eax, r14d
add rsp, 0x240
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400880a5
xor eax, eax
jmp 0x1400880f4