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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor r14d, r14d
mov rsi, r8
mov rbp, rdx
mov r12, rcx
mov ebx, 0x80004005
mov qword [rsp + 0x40], r14
mov edi, r14d
mov r13d, r14d
cmp rdx, r14
je 0x10003d24a
cmp r8, r14
je 0x10003d24a
lea rax, [rsp + 0x40]
lea rdx, [0x100026190]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 0x104
cmp eax, r14d
jne 0x10003d1b1
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
jne 0x10003d19d
mov rcx, qword [rsp + 0x38]
lea eax, [r14 + 1]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2e0]
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x10003d192
cmp dword [rsp + 0x30], 2
jne 0x10003d016
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x2e0]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, r14d
je 0x10003d016
lea rcx, [rsp + 0xd0]
mov rdx, r15
call fcn.10004b188
cmp eax, r14d
mov ebx, eax
jl 0x10003d016
lea r8, [rsp + 0xd0]
mov rdx, r15
mov rcx, rbp
call fcn.100039df8
cmp eax, r14d
mov ebx, eax
lea eax, [r14 + 1]
cmovge edi, eax
jmp 0x10003d01b
mov eax, 1
cmp dword [rsp + 0x30], eax
jne 0x10003d057
lea rcx, [rsp + 0x2e0]
mov rdx, r15
call fcn.10004b188
cmp eax, r14d
mov ebx, eax
jl 0x10003d057
lea r8, [rsp + 0x2e0]
mov rdx, r15
mov rcx, rbp
call fcn.100039df8
mov edi, r14d
cmp eax, r14d
mov ebx, eax
setge dil
cmp edi, r14d
je 0x10003d192
lea r8, [0x1000062c0]
mov rdx, r15
mov rcx, rsi
mov edi, 1
call fcn.100039df8
cmp eax, r14d
jl 0x10003d192
lea r8, [0x1000261e8]
lea rcx, [rsp + 0xd0]
mov r9d, edi
mov edx, 0x208
call fcn.10003a0f0
cmp eax, r14d
jl 0x10003d192
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xd0]
xor r8d, r8d
mov dword [rsp + 0x34], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
jne 0x10003d192
mov eax, 1
mov dword [rsp + 0x34], 0x80
cmp edi, eax
jbe 0x10003d10d
lea r8, [0x1000261f8]
mov rdx, r15
mov rcx, rsi
call fcn.100039fb0
cmp eax, r14d
jl 0x10003d18a
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rsi
call fcn.100039fb0
cmp eax, r14d
jl 0x10003d18a
mov eax, 1
add edi, eax
mov r13d, eax
cmp edi, 0x40
ja 0x10003d18f
lea r8, [0x1000261e8]
lea rcx, [rsp + 0xd0]
mov r9d, edi
mov edx, 0x208
call fcn.10003a0f0
cmp eax, r14d
jl 0x10003d18f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xd0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r14d
je 0x10003d0e5
cmp r13d, r14d
je 0x10003d192
mov ebx, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, r14d
jge 0x10003d24a
lea rdx, [0x100006270]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x10003d1ff
mov rcx, qword [0x100088070]
mov r9d, r15d
mov r8, rbp
mov edx, 0x470
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, r14d
je 0x10003d24a
lea r8, [0x100026200]
mov rdx, r15
mov rcx, rsi
call fcn.100039df8
cmp eax, r14d
jl 0x10003d24a
mov ebx, r14d
jmp 0x10003d24a
lea rdx, [0x100026250]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x10003d24a
mov rcx, qword [0x100088070]
mov r9d, r15d
mov r8, rbp
mov edx, 0x46f
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, r14d
je 0x10003d24a
lea r8, [0x100026200]
mov rdx, r15
mov rcx, rsi
call fcn.100039df8
cmp eax, r14d
cmovge ebx, r14d
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret