Function at 0x140005de4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8c0]
sub rsp, 0x9c0
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov rax, qword [rbp + 0x920]
mov r12, rcx
xor ecx, ecx
mov qword [rbp - 0x70], rax
cmp r8b, 2
mov dword [rsp + 0x68], r9d
mov eax, ecx
mov dword [rsp + 0x48], ecx
sete al
mov dword [rsp + 0x30], ecx
or esi, 0xffffffff
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x78], eax
mov bl, r8b
mov qword [rsp + 0x40], rcx
mov r13, rdx
mov qword [rsp + 0x70], rcx
mov edi, ecx
mov qword [rsp + 0x38], rcx
mov r15d, ecx
mov qword [rsp + 0x58], rcx
cmp r8b, 1
jbe 0x140005e8d
cmp bl, 2
je 0x140005e84
cmp bl, 3
jne 0x140005e7d
lea r14, str.shell_newcommand
jmp 0x140005e94
xor eax, eax
jmp 0x14000671f
lea r14, str.shellprintcommand
jmp 0x140005e94
lea r14, [0x140011c88]
mov rcx, rdx
call fcn.140008a7c
mov rcx, rax
mov qword [rbp - 0x78], rax
call fcn.140004080
test eax, eax
lea rcx, str.SOFTWAREMicrosoftSharedMHTML
lea rdx, str.SOFTWAREMicrosoftSharedHTML
mov r8d, 0x105
cmovne rdx, rcx
lea rcx, [rbp + 0x490]
call fcn.14000b9c0
mov r8d, 0x105
lea rdx, [0x140011c84]
lea rcx, [rbp + 0x490]
call fcn.14000b97c
mov r8d, 0x105
lea rcx, [rbp + 0x490]
mov rdx, r12
call fcn.14000b97c
cmp word [r12], 0x4f
jne 0x140005f14
mov r12d, 1
mov dword [rsp + 0x48], r12d
jmp 0x140006072
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x490]
mov rcx, 0xffffffff80000001
call fcn.14000c684
xor r12d, r12d
test eax, eax
jne 0x14000606f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x50], 0x20a
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140011d00]
call fcn.14000c6f0
test eax, eax
jne 0x14000603f
cmp word [rbp + 0x1b0], r12w
je 0x14000603f
lea r14d, [r12 + 1]
mov dword [rsp + 0x30], r14d
jmp 0x14000612b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp - 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
xor ecx, ecx
test eax, eax
jne 0x140006146
cmp word [rbp - 0x60], cx
je 0x140006146
lea edx, [rcx + 1]
test r12d, r12d
mov dword [rsp + 0x34], edx
mov r12d, edx
jne 0x1400064a2
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x60]
call fcn.140003f58
test eax, eax
jne 0x1400064a2
mov ecx, dword [rsp + 0x54]
test ecx, 0xfffffffb
jne 0x1400064a2
call fcn.140009938
xor edx, edx
test eax, eax
je 0x1400064a2
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006036
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], edx
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0x20a
mov rdx, r14
call fcn.14000c684
test eax, eax
je 0x140005fa1
mov r12d, edi
mov rcx, qword [rsp + 0x40]
xor eax, eax
test rcx, rcx
je 0x140006086
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14000609d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x490]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000c684
xor r8d, r8d
test eax, eax
jne 0x140006201
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x54], 0x20a
lea rdx, [0x140011d00]
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
xor ecx, ecx
test eax, eax
jne 0x140006192
cmp word [rbp + 0x1b0], cx
je 0x140006192
lea r14d, [rcx + 1]
mov dword [rsp + 0x30], r14d
test r12d, r12d
jne 0x14000614e
xor r12d, r12d
mov r8d, 0x105
lea rdx, [rbp + 0x1b0]
lea rcx, [0x1400154b0]
call fcn.14000b9c0
jmp 0x14000616c
mov r12d, ecx
jmp 0x140006072
lea rdx, [rbp + 0x1b0]
lea rcx, [0x1400154b0]
call fcn.14000b708
xor r12d, r12d
test eax, eax
jne 0x1400066ad
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.14000b46c
lea rcx, [rbp + 0x1b0]
mov esi, eax
call fcn.14000bb8c
mov qword [rsp + 0x58], rax
jmp 0x1400063a6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 0x20a
mov rdx, r14
call fcn.14000c684
xor r12d, r12d
test eax, eax
jne 0x140006201
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp - 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
test eax, eax
jne 0x140006201
mov r14d, edi
cmp word [rbp - 0x60], r12w
je 0x140006204
lea r12d, [rax + 1]
mov dword [rsp + 0x34], r12d
jmp 0x140006209
mov r14d, edi
mov r12d, dword [rsp + 0x34]
xor edx, edx
test r15, r15
jne 0x1400064bd
xor esi, esi
test r12d, r12d
je 0x140006265
cmp dword [rsp + 0x48], esi
je 0x1400064a2
lea rdx, [rbp - 0x60]
lea rcx, [0x1400152a0]
call fcn.14000b708
test eax, eax
jne 0x1400066af
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.14000ab1c
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov esi, eax
mov r15, rcx
test rcx, rcx
jne 0x1400064bd
mov r14d, dword [rsp + 0x30]
xor r12d, r12d
test r14d, r14d
jne 0x1400066ad
cmp bl, 3
jne 0x1400066ad
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000628a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], r12
test rcx, rcx
je 0x14000629f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], r12
mov esi, 0x20019
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, [rbp + 0x490]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call fcn.14000c684
test eax, eax
je 0x1400062fb
lea rax, [rsp + 0x40]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x490]
mov rcx, 0xffffffff80000002
call fcn.14000c684
test eax, eax
jne 0x1400066ad
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x54], 0x20a
lea rdx, [0x140011c88]
call fcn.14000c684
test eax, eax
jne 0x1400066ad
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp - 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
test eax, eax
jne 0x1400066ad
cmp word [rbp - 0x60], r12w
je 0x1400066ad
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.14000ab1c
mov esi, eax
cmp eax, 9
je 0x1400066ad
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x1b0]
mov r8d, 0x105
call fcn.14000b9c0
mov r14d, 1
mov word [rbp - 0x60], r12w
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1b0]
mov rcx, 0xffffffff80000000
call fcn.14000c684
test eax, eax
jne 0x140006204
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r15d, 0x20019
mov qword [rsp + 0x60], r12
mov r9d, r15d
mov dword [rsp + 0x50], 0xca
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CurVer
call fcn.14000c684
test eax, eax
jne 0x140006483
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp + 0x3c0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
test eax, eax
jne 0x140006483
cmp word [rbp + 0x3c0], r12w
je 0x140006483
lea rax, [rbp - 0x80]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3c0]
mov rcx, 0xffffffff80000000
call fcn.14000c684
test eax, eax
jne 0x140006483
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000647a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
test rcx, rcx
je 0x140006498
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r12
jmp 0x140006204
mov r8d, 0x105
lea rdx, [rbp - 0x60]
lea rcx, [0x1400152a0]
call fcn.14000b9c0
jmp 0x14000623d
cmp dword [rsp + 0x68], edx
je 0x1400064e6
xor esi, esi
test r12d, r12d
jne 0x1400064dc
mov dl, bl
mov rcx, r15
call fcn.140004140
test eax, eax
je 0x1400066af
mov edi, 1
jmp 0x1400066af
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000651b
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x140006505
call fcn.140001aa8
mov rax, qword [rsp + 0x58]
xor edx, edx
mov rcx, r13
mov qword [r13 + 0x18], rax
mov qword [rsp + 0x58], rdx
call fcn.140008a7c
mov r14, rax
jmp 0x14000651f
mov r14, qword [rbp - 0x78]
mov r12d, dword [rsp + 0x78]
cmp esi, 9
je 0x140006599
test r12d, r12d
jne 0x140006599
cmp bl, 1
jne 0x14000653c
mov rbx, qword [str.open]
jmp 0x14000654a
movzx eax, bl
lea rcx, str.open
mov rbx, qword [rcx + rax*8]
xor r12d, r12d
mov r9, r13
mov r8d, esi
mov dword [rsp + 0x20], r12d
mov rdx, rbx
mov rcx, r15
call fcn.140002504
mov edi, eax
test eax, eax
jne 0x1400066ad
cmp rbx, qword [str.open]
jne 0x1400066ad
mov rdx, qword [str.edit]
mov r9, r13
mov r8d, esi
mov dword [rsp + 0x20], r12d
mov rcx, r15
call fcn.140002504
jmp 0x1400066ab
mov r8d, 0x104
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp - 0x60]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
dec eax
cmp eax, 0x103
ja 0x14000667e
xor esi, esi
cmp bl, 3
jne 0x14000664e
cmp word [rbp + 0x6a0], si
jne 0x14000664e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400065e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 0x20a
lea rdx, str.shell_newcommand
mov rcx, r15
call fcn.14000c684
test eax, eax
jne 0x1400066af
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp + 0x6a0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14000c6f0
test eax, eax
jne 0x1400066af
cmp word [rbp + 0x6a0], si
je 0x1400066af
mov rcx, r14
call fcn.14000b568
mov r9, qword [r13 + 0x20]
lea rcx, [rbp + 0x6a0]
mov r8d, eax
mov dword [rsp + 0x28], r12d
mov rax, qword [r13 + 0x28]
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.140005940
mov edi, eax
jmp 0x1400066af
test bl, bl
jne 0x14000668b
mov rdx, qword [str.edit]
jmp 0x140006699
movzx eax, bl
lea rcx, str.open
mov rdx, qword [rcx + rax*8]
mov r9d, r12d
mov dword [rsp + 0x20], esi
mov r8, r14
mov rcx, r15
call fcn.140005cf8
mov edi, eax
xor esi, esi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400066e3
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x1400066de
mov r8d, dword [rbp + 0x928]
test r8d, r8d
je 0x1400066de
mov rdx, rcx
mov rcx, rax
call fcn.14000b9c0
mov rcx, qword [rsp + 0x58]
call fcn.140001aa8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400066f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rsi
test rcx, rcx
je 0x140006708
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rsi
test rcx, rcx
je 0x14000671d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.14000db20
mov rbx, qword [rsp + 0xa18]
add rsp, 0x9c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret