Function at 0x1400dc480
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 [0x140162028]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, str.ntdll.dll
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 [0x14016a398], rax
lea rdx, str.NtCreateKey
mov rcx, rsi
call rdi
mov qword [0x14016a9e0], rax
lea rdx, str.NtDeleteKey
mov rcx, rsi
call rdi
mov qword [0x14016a390], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rsi
call rdi
mov qword [0x14016a3a0], rax
lea rdx, str.NtClose
mov rcx, rsi
call rdi
mov qword [0x14016a388], rax
lea rdx, str.NtQueryKey
mov rcx, rsi
call rdi
mov qword [0x14016a3b8], rax
lea rdx, str.NtEnumerateKey
mov rcx, rsi
call rdi
mov qword [0x14016a3c0], rax
lea rdx, str.NtQueryValueKey
mov rcx, rsi
call rdi
mov qword [0x14016a3a8], rax
lea rdx, str.NtSetValueKey
mov rcx, rsi
call rdi
mov qword [0x14016a3b0], rax
xor ebp, ebp
test rax, rax
je 0x1400dc778
cmp qword [0x14016a398], 0
je 0x1400dc778
cmp qword [0x14016a9e0], 0
je 0x1400dc778
cmp qword [0x14016a3a0], 0
je 0x1400dc778
cmp qword [0x14016a390], 0
je 0x1400dc778
cmp qword [0x14016a388], 0
je 0x1400dc778
cmp qword [0x14016a3b8], 0
je 0x1400dc778
cmp qword [0x14016a3c0], 0
je 0x1400dc778
cmp qword [0x14016a3a8], 0
je 0x1400dc778
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 0x1400dc778
mov rsi, rax
test rax, rax
je 0x1400dc778
lea rcx, [rsp + 0x20]
call rbx
test eax, eax
js 0x1400dc7a3
lea r14, [rsp + 0x20]
mov rdx, qword [r14 + 8]
lea rbx, [0x14016a9f0]
mov edi, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14010e774
mov rcx, rbx
call fcn.14010e320
sub rdi, rax
lea rdx, [0x1401355a4]
mov rcx, rbx
mov r8, rdi
call fcn.14010e774
mov rcx, qword [r14 + 8]
mov dx, 0x5c
call fcn.1400f2d98
lea rdx, [rax + 2]
lea rcx, [0x14016a3d0]
mov r8d, 0xff
call fcn.14010e7e8
mov rcx, r14
call rsi
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.1400f27e0
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 0x1400dc6dc
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14010e7bc
test eax, eax
je 0x1400dc798
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 0x1400dc717
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14010e7bc
test eax, eax
je 0x1400dc798
xor eax, eax
mov byte [0x14016a385], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14013a11c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400dc79f
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rsi
test eax, eax
je 0x1400dc79f
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14016a5d0], al
mov byte [0x14016a384], 1
mov bpl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400f0560
mov eax, ebp
add rsp, 0x240
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400dc719
xor eax, eax
jmp 0x1400dc768
xor ebp, ebp
jmp 0x1400dc778