Function at 0x14008e000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1120
call fcn.1400035e0
sub rsp, rax
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x1118], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xb8], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x1104], 0xd
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x1100], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0x1108], 0
mov dword [rsp + 0xa0], 0
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x27
rep stosb byte [rdi], al
mov byte [rsp + 0xf0], 0
lea rax, [rsp + 0xf1]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
xor ecx, ecx
call fcn.14008ea80
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1401b0058]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14008e2c0
mov dword [rsp + 0x60], 1
mov dword [rsp + 0xa8], 0x27
mov dword [rsp + 0x1108], 0x1000
lea rax, [rsp + 0x1108]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x14008e2c0
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
lea rdx, [0x1401b0078]
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strstr
test rax, rax
je 0x14008e2a5
lea rax, [rsp + 0x70]
test rax, rax
je 0x14008e249
lea rax, [0x1401b0088]
test rax, rax
je 0x14008e249
lea rdx, [0x1401b0098]
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcmp
test eax, eax
je 0x14008e2a5
cmp dword [rsp + 0x1138], 0
je 0x14008e267
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strlen
mov qword [rsp + 0x1110], rax
jmp 0x14008e276
mov eax, dword [rsp + 0x1108]
mov qword [rsp + 0x1110], rax
mov rax, qword [rsp + 0x1110]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xb8]
add eax, 1
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xa8], 0x27
mov dword [rsp + 0x1108], 0x1000
jmp 0x14008e1a0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
jmp 0x14008e2ef
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
cdqe
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x14008e408
lea rax, [rsp + 0x48]
mov qword [rsp + 0xe8], rax
mov edx, 0x5f
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.MSVCR110.dll_strchr
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14008e403
cmp qword [rsp + 0x58], 0
je 0x14008e403
lea rax, [0x1401b00a8]
test rax, rax
je 0x14008e403
movsxd rax, dword [rsp + 0x1104]
mov r8, rax
lea rdx, [0x1401b00b8]
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_strncmp
test eax, eax
jne 0x14008e403
mov rax, qword [rsp + 0xe8]
cmp qword [rax], 0
je 0x14008e3b6
lea rax, [0x1401b00c8]
test rax, rax
je 0x14008e3b6
mov eax, dword [rsp + 0x1104]
add eax, 2
cdqe
mov r8, rax
lea rdx, [0x1401b00d8]
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.MSVCR110.dll_strncmp
test eax, eax
je 0x14008e403
movsxd rax, dword [rsp + 0x1104]
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x3d
jne 0x14008e403
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.MSVCR110.dll_strlen
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xb8]
add eax, 1
mov dword [rsp + 0xb8], eax
jmp 0x14008e2cf
cmp dword [rsp + 0xb8], 0
jne 0x14008e419
xor eax, eax
jmp 0x14008e849
movsxd rax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x1130]
call fcn.14007bc80
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x60], 0
je 0x14008e5dd
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 0x27
mov dword [rsp + 0x1108], 0x1000
lea rax, [rsp + 0x1108]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x14008e5d2
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
lea rdx, [0x1401b00e8]
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strstr
test rax, rax
je 0x14008e5b7
lea rax, [rsp + 0x70]
test rax, rax
je 0x14008e530
lea rax, [0x1401b00f8]
test rax, rax
je 0x14008e530
lea rdx, [0x1401b0108]
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcmp
test eax, eax
je 0x14008e5b7
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0xd0], rax
jbe 0x14008e561
mov rax, qword [rsp + 0xd0]
mov byte [rax], 0x3b
mov rax, qword [rsp + 0xd0]
add rax, 1
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x1138], 0
je 0x14008e57f
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strcpy
jmp 0x14008e594
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strcpy
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strlen
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xa8], 0x27
mov dword [rsp + 0x1108], 0x1000
jmp 0x14008e483
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
jmp 0x14008e60c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
cdqe
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x14008e810
lea rax, [rsp + 0x48]
mov qword [rsp + 0xe8], rax
mov edx, 0x5f
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.MSVCR110.dll_strchr
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14008e80b
cmp qword [rsp + 0x58], 0
je 0x14008e80b
lea rax, [0x1401b0118]
test rax, rax
je 0x14008e80b
movsxd rax, dword [rsp + 0x1104]
mov r8, rax
lea rdx, str._LICENSE_FILE
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_strncmp
test eax, eax
jne 0x14008e80b
mov rax, qword [rsp + 0xe8]
cmp qword [rax], 0
je 0x14008e6d7
lea rax, [0x1401b0138]
test rax, rax
je 0x14008e6d7
mov eax, dword [rsp + 0x1104]
add eax, 2
cdqe
mov r8, rax
lea rdx, [0x1401b0148]
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call sub.MSVCR110.dll_strncmp
test eax, eax
je 0x14008e80b
movsxd rax, dword [rsp + 0x1104]
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x3d
jne 0x14008e80b
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0xd0], rax
jbe 0x14008e722
mov rax, qword [rsp + 0xd0]
mov byte [rax], 0x3b
mov rax, qword [rsp + 0xd0]
add rax, 1
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x1138], 0
jne 0x14008e782
movsxd rax, dword [rsp + 0x1104]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x3d
je 0x14008e75e
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x14008e76e
mov rax, qword [rsp + 0x58]
add rax, 1
mov qword [rsp + 0x58], rax
jmp 0x14008e744
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strcpy
jmp 0x14008e7e8
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x1104]
add rax, rcx
mov r8, rax
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strncpy
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x1104]
add rcx, qword [rsp + 0xd0]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR110.dll_strlen
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
jmp 0x14008e5ec
cmp qword [rsp + 0xe0], 0
je 0x14008e828
mov rcx, qword [rsp + 0xe0]
call fcn.14007bfb0
cmp qword [rsp + 0x98], 0
je 0x14008e841
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x1118]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x1120
pop rdi
ret