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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rcx, [0x140276b70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
lea rdx, str.RtlInitUnicodeString
mov r14, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call r14
mov qword [0x1402a47c0], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call r14
mov qword [0x1402a4e00], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call r14
mov qword [0x1402a47b8], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call r14
mov qword [0x1402a47c8], rax
lea rdx, str.NtClose
mov rcx, rdi
call r14
mov qword [0x1402a47b0], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call r14
mov qword [0x1402a47e0], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call r14
mov qword [0x1402a47e8], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call r14
mov qword [0x1402a47d0], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call r14
mov qword [0x1402a47d8], rax
xor esi, esi
cmp qword [0x1402a47c0], 0
je 0x140059b85
cmp qword [0x1402a4e00], 0
je 0x140059b85
cmp qword [0x1402a47c8], 0
je 0x140059b85
cmp qword [0x1402a47b8], 0
je 0x140059b85
cmp qword [0x1402a47b0], 0
je 0x140059b85
cmp qword [0x1402a47e0], 0
je 0x140059b85
cmp qword [0x1402a47e8], 0
je 0x140059b85
cmp qword [0x1402a47d0], 0
je 0x140059b85
test rax, rax
je 0x140059b85
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rdi
call r14
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rdi
call r14
xor esi, esi
test rbx, rbx
je 0x140059b85
mov rdi, rax
test rax, rax
je 0x140059b85
movaps xmm0, xmmword [0x140270690]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov rax, rbx
call qword [case.0x1401e7f70.0]
test eax, eax
setns sil
js 0x140059b85
lea rbx, [rsp + 0x20]
mov rdx, qword [rbx + 8]
lea r14, [0x1402a4e10]
mov r15d, 0xff
mov r8d, 0xff
mov rcx, r14
call fcn.14017cd3c
mov rcx, r14
call fcn.14017bd98
sub r15, rax
lea rdx, [0x140271d5c]
mov rcx, r14
mov r8, r15
call fcn.14017cd3c
mov rcx, qword [rbx + 8]
mov dx, 0x5c
call fcn.14017cdcc
lea rdx, [rax + 2]
lea rcx, [0x1402a47f0]
mov r8d, 0xff
call fcn.14017cd84
mov rcx, rbx
mov rax, rdi
call qword [case.0x1401e7f70.0]
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1401808d0
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 0x140059ae5
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14017cd10
test eax, eax
je 0x140059ba6
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 0x140059b20
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14017cd10
test eax, eax
je 0x140059ba6
xor eax, eax
mov byte [0x1402a47a9], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1402726da]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140280282]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140059bad
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x1401e7f70.0]
test eax, eax
je 0x140059bad
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1402a49f0], al
mov byte [0x1402a47a8], 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x240
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov al, 1
jmp 0x140059b22
xor eax, eax
jmp 0x140059b78