Function at 0x1400584f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x150
mov rax, qword [0x1406b82c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
lea rcx, str.ProgramData
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
test rax, rax
je 0x14005887e
mov qword [rsp + 0x60], rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140058550
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140018cf0
nop
lea rax, [0x1404f98d8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xa
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140018cf0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.140053cb0
nop
lea rcx, [rsp + 0x70]
call fcn.140015580
mov r8d, 3
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.140055530
movsd xmm0, qword [rax]
movsd qword [rsp + 0x20], xmm0
mov ecx, dword [rax + 8]
mov dword [rsp + 0x70], ecx
lea r14, [0x140704840]
mov qword [rsp + 0x78], r14
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x14005860b
test ecx, ecx
jne 0x1400588e1
jmp 0x140058610
cmp eax, 1
jne 0x14005863e
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r14
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140055610
cmp dword [rsp + 0x60], 0
jne 0x1400588fb
jmp 0x14005863e
lea rax, str.old.backup
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0xa
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.140018cf0
nop
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.1400541c0
nop
lea rcx, [rsp + 0xb0]
call fcn.140015580
mov r8d, 3
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.140055530
movsd xmm0, qword [rax]
movsd qword [rsp + 0x20], xmm0
mov ecx, dword [rax + 8]
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], r14
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x1400586df
test ecx, ecx
jne 0x140058915
jmp 0x1400586e8
cmp eax, 1
jne 0x140058862
lea rax, str.nvram.txt
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 9
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140018cf0
nop
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.1400541c0
nop
lea rcx, [rsp + 0x30]
call fcn.140015580
nop
mov dword [rsp + 0x64], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xd0]
call fcn.140014920
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], r14
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 7
cmova rcx, qword [rsp + 0xd0]
mov edi, 0x3e
mov r9d, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0xb0]
call fcn.14028ea9c
mov ecx, eax
test eax, eax
jne 0x1400587bd
test dword [rsp + 0xc0], 0x400
mov eax, 6
cmovne edi, eax
mov dword [rsp + 0xcc], edi
jmp 0x1400587ec
mov dword [rsp + 0xcc], esi
sub eax, 2
je 0x1400587ec
sub eax, 1
je 0x1400587ec
sub eax, 0x32
je 0x1400587ec
cmp eax, 0x46
je 0x1400587ec
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], r14
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14005881d
mov qword [rsp + 0xe0], rsi
lea rax, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 7
cmova rax, qword [rsp + 0xd0]
mov word [rax], si
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x14005883c
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.140055c40
nop
lea rcx, [rsp + 0xd0]
call fcn.140015580
cmp dword [rsp + 0x60], 0
jne 0x14005892f
lea rcx, [rsp + 0x110]
call fcn.140015580
nop
lea rcx, [rsp + 0xf0]
call fcn.140015580
nop
lea rcx, [rsp + 0x90]
call fcn.140015580
nop
mov rcx, rbx
jmp 0x1400588b2
call fcn.140015580
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14028f2f0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x70]
lea rcx, str.exists
call fcn.1400543e0
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x60]
lea rcx, str.create_directories
call fcn.1400543e0
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x70]
lea rcx, str.exists
call fcn.1400543e0
nop
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x60]
call fcn.140054440
int3