Function at 0x1400b4908
Capabilities:
Query environment variable
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, qword [0x14015e020]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r12d, r12d
mov dword [rsp + 0x54], 1
lea rax, str.AFPL_Ghostscript
mov dword [rsp + 0x78], r12d
mov qword [rbp + 0xa0], rax
lea rcx, [rbp - 0x58]
lea rax, str.Aladdin_Ghostscript
mov qword [rsp + 0x40], r12
mov qword [rbp + 0xa8], rax
lea r8d, [r12 + 0x40]
lea rax, str.GPL_Ghostscript
mov dword [rsp + 0x50], r12d
mov qword [rbp + 0xb0], rax
xor edx, edx
lea rax, str.GNU_Ghostscript
mov byte [rsp + 0x58], r12b
mov qword [rbp + 0xb8], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 0xf
call fcn.1400eced0
or rbx, 0xffffffffffffffff
lea r15d, [r12 + 0x20]
mov esi, 0x20219
lea rdi, [rbp + 0xa0]
mov rdx, qword [rdi]
lea rcx, str.Software_
xor r8d, r8d
call fcn.140080720
mov r14, rax
test rax, rax
jne 0x1400b4a00
mov rax, r12
jmp 0x1400b4a13
call fcn.1400804a4
mov r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.140088f60
lea rcx, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b4a91
mov r14d, r12d
xor edx, edx
jmp 0x1400b4a6d
call fcn.1400804a4
mov r9, rax
lea rdx, [rbp + 0xc0]
mov r8, rbx
mov ecx, 0xfde9
call fcn.14008902c
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14007eaec
inc r14d
mov edx, r14d
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0xc0]
mov r9d, r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400b4a3e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rdi, 8
lea rax, [rbp + 0xc0]
cmp rdi, rax
jne 0x1400b49e1
bt esi, 9
jae 0x1400b4ab5
mov esi, 0x20119
jmp 0x1400b49da
lea rdx, [0x14007eff0]
lea rcx, [rsp + 0x40]
call fcn.14007f004
mov rsi, qword [rbp - 0x78]
test rsi, rsi
je 0x1400b4bd0
lea r14, [rbp + 0xa0]
lea edx, [rsi - 1]
lea rcx, [rsp + 0x40]
call fcn.14007ecc8
mov rdx, qword [r14]
lea rcx, str.Software_s_s
mov r8, rax
call fcn.14007c8d8
lea r8, str.GS_DLL
mov rdx, rax
mov rcx, 0xffffffff80000002
mov r15, rax
call fcn.140082f90
test rax, rax
je 0x1400b4b67
mov rcx, rax
call fcn.140080c10
xor r8d, r8d
lea rdx, str.gswin32c.exe
mov rcx, rax
mov r12, rax
call fcn.1400809f4
mov rcx, rax
mov rdi, rax
call fcn.1400817f0
test al, al
jne 0x1400b4ba4
xor r8d, r8d
lea rdx, str.gswin64c.exe
mov rcx, r12
call fcn.1400809f4
mov rcx, rax
mov rdi, rax
call fcn.1400817f0
xor r12d, r12d
test al, al
jne 0x1400b4b8c
mov rcx, r15
call fcn.1400feb88
lea rax, [rbp + 0xc0]
add r14, 8
cmp r14, rax
jne 0x1400b4ada
sub rsi, 1
jmp 0x1400b4acd
test rdi, rdi
jne 0x1400b4b99
mov rbx, r12
jmp 0x1400b4d54
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x1400b4b99
jmp 0x1400b4bb5
xor r12d, r12d
test rdi, rdi
je 0x1400b4b91
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x1400b4bac
mov r9d, 1
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call fcn.140080004
mov rbx, rax
jmp 0x1400b4d54
xor r8d, r8d
lea rcx, str.PATH
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, 2
mov edi, eax
lea ecx, [rax + 1]
call fcn.140100dac
mov r15, rax
test edi, edi
je 0x1400b4b91
mov r8d, edi
lea rcx, str.PATH
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
mov dword [rbp + 0x28], r12d
lea rax, [rbp + 8]
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], rax
lea rcx, [rbp + 0x58]
lea rax, [rbp + 0x58]
mov dword [rbp], r12d
lea r8d, [rdx + 0x40]
mov byte [rbp + 8], r12b
mov dword [rbp + 4], 1
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x50], rax
call fcn.1400eced0
test r15, r15
jne 0x1400b4c5f
mov rax, r12
jmp 0x1400b4c77
call fcn.1400804a4
mov r9, rax
mov r8, rbx
mov rdx, r15
mov ecx, 0xfde9
call fcn.14008902c
mov r9b, 1
lea r8, [0x140138600]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14007f04c
mov r14d, dword [rbp + 0x38]
mov esi, r12d
test r14d, r14d
je 0x1400b4cf3
mov edx, esi
lea rcx, [rbp - 0x10]
call fcn.14007ecc8
xor r8d, r8d
lea rdx, str.gswin32c.exe
mov rcx, rax
mov r12, rax
call fcn.1400809f4
mov rcx, rax
mov rdi, rax
call fcn.1400817f0
test al, al
jne 0x1400b4cdd
xor r8d, r8d
lea rdx, str.gswin64c.exe
mov rcx, r12
call fcn.1400809f4
mov rdi, rax
mov rcx, rdi
call fcn.1400817f0
xor r12d, r12d
test al, al
jne 0x1400b4d1b
inc esi
cmp esi, r14d
jne 0x1400b4c99
mov rbx, r12
mov rdx, qword [rbp + 0x50]
lea rax, [rbp + 0x58]
cmp rdx, rax
je 0x1400b4d4b
test rdx, rdx
je 0x1400b4d47
mov rcx, qword [rbp + 0x30]
test rcx, rcx
jne 0x1400b4d41
mov rcx, rdx
call fcn.1400feb88
jmp 0x1400b4d47
test rdi, rdi
je 0x1400b4cf3
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x1400b4d20
mov r9d, 1
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call fcn.140080004
mov rbx, rax
jmp 0x1400b4cf6
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rbp + 0x50], r12
lea rcx, [rbp - 0x10]
call fcn.14007d640
mov rcx, r15
call fcn.1400feb88
mov rdx, qword [rbp - 0x60]
lea rax, [rbp - 0x58]
cmp rdx, rax
je 0x1400b4d8c
test rdx, rdx
je 0x1400b4d88
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x1400b4d81
mov rcx, rdx
call fcn.1400feb88
jmp 0x1400b4d88
mov r8, qword [rcx]
call qword [r8 + 0x18]
mov qword [rbp - 0x60], r12
lea rcx, [rsp + 0x40]
call fcn.14007d640
mov rax, rbx
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400eb9c0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret