Function at 0x1400588f0
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 [0x1406b92c0]
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 0x140058c7e
mov qword [rsp + 0x60], rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140058950
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.1400190f0
nop
lea rax, [0x1404fa8b8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xa
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400190f0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.1400540b0
nop
lea rcx, [rsp + 0x70]
call fcn.140015930
mov r8d, 3
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.140055930
movsd xmm0, qword [rax]
movsd qword [rsp + 0x20], xmm0
mov ecx, dword [rax + 8]
mov dword [rsp + 0x70], ecx
lea r14, [0x140705840]
mov qword [rsp + 0x78], r14
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x140058a0b
test ecx, ecx
jne 0x140058ce1
jmp 0x140058a10
cmp eax, 1
jne 0x140058a3e
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r14
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140055a10
cmp dword [rsp + 0x60], 0
jne 0x140058cfb
jmp 0x140058a3e
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.1400190f0
nop
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.1400545c0
nop
lea rcx, [rsp + 0xb0]
call fcn.140015930
mov r8d, 3
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.140055930
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 0x140058adf
test ecx, ecx
jne 0x140058d15
jmp 0x140058ae8
cmp eax, 1
jne 0x140058c62
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.1400190f0
nop
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.1400545c0
nop
lea rcx, [rsp + 0x30]
call fcn.140015930
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.140014cd0
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.14028eefc
mov ecx, eax
test eax, eax
jne 0x140058bbd
test dword [rsp + 0xc0], 0x400
mov eax, 6
cmovne edi, eax
mov dword [rsp + 0xcc], edi
jmp 0x140058bec
mov dword [rsp + 0xcc], esi
sub eax, 2
je 0x140058bec
sub eax, 1
je 0x140058bec
sub eax, 0x32
je 0x140058bec
cmp eax, 0x46
je 0x140058bec
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 0x140058c1d
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 0x140058c3c
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.140056040
nop
lea rcx, [rsp + 0xd0]
call fcn.140015930
cmp dword [rsp + 0x60], 0
jne 0x140058d2f
lea rcx, [rsp + 0x110]
call fcn.140015930
nop
lea rcx, [rsp + 0xf0]
call fcn.140015930
nop
lea rcx, [rsp + 0x90]
call fcn.140015930
nop
mov rcx, rbx
jmp 0x140058cb2
call fcn.140015930
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14028f750
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.1400547e0
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x60]
lea rcx, str.create_directories
call fcn.1400547e0
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x70]
lea rcx, str.exists
call fcn.1400547e0
nop
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x60]
call fcn.140054840
int3