Function at 0x14003e720
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 [0x1400f6398]
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 [0x1400fb850], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x1400fbe90], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x1400fb848], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x1400fb858], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x1400fb840], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x1400fb870], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x1400fb878], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x1400fb860], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x1400fb868], rax
xor ebp, ebp
test rax, rax
je 0x14003ea25
cmp qword [0x1400fb850], 0
je 0x14003ea25
cmp qword [0x1400fbe90], 0
je 0x14003ea25
cmp qword [0x1400fb858], 0
je 0x14003ea25
cmp qword [0x1400fb848], 0
je 0x14003ea25
cmp qword [0x1400fb840], 0
je 0x14003ea25
cmp qword [0x1400fb870], 0
je 0x14003ea25
cmp qword [0x1400fb878], 0
je 0x14003ea25
cmp qword [0x1400fb860], 0
je 0x14003ea25
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 0x14003ea25
mov rdi, rax
test rax, rax
je 0x14003ea25
movaps xmm0, xmmword [section..rdata]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call rbx
test eax, eax
setns bpl
js 0x14003ea25
lea r14, [rsp + 0x20]
mov rdx, qword [r14 + 8]
lea r15, [0x1400fbea0]
mov ebx, 0xff
mov r8d, 0xff
mov rcx, r15
call fcn.1400a8828
mov rcx, r15
call fcn.140089a28
sub rbx, rax
lea rdx, [0x1400bfd80]
mov rcx, r15
mov r8, rbx
call fcn.1400a8828
mov rcx, qword [r14 + 8]
mov dx, 0x5c
call fcn.14008ebd0
lea rdx, [rax + 2]
lea rcx, [0x1400fb880]
mov r8d, 0xff
call fcn.1400a889c
mov rcx, r14
call rdi
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14008ea40
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 0x14003e988
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a8870
test eax, eax
je 0x14003e9c3
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 0x14003e9bf
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a8870
test eax, eax
je 0x14003e9c3
xor eax, eax
jmp 0x14003e9c5
mov al, 1
mov byte [0x1400fb839], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400c263a]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003ea16
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rdi
test eax, eax
je 0x14003ea16
cmp dword [rsp + 0x30], 0
setne al
jmp 0x14003ea18
xor eax, eax
mov byte [0x1400fba80], al
mov byte [0x1400fb838], 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008b870
mov eax, ebp
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret