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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0042460b
lea ecx, [ebp - 8]
call fcn.0042460b
xor esi, esi
mov dword [ebp - 0x20], esi
mov ebx, 0x48aec0
lea eax, [ebp - 4]
push eax
movzx eax, word [0x48ab68]
or eax, 0xf003f
push eax
mov eax, dword [ebp - 0x20]
push esi
push dword [eax + 0x47c9d4]
mov dword [ebp - 4], esi
push dword [eax + 0x47c9cc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
je 0x451c97
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, esi
jne 0x451cdb
mov eax, dword [ebp - 0x24]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042465d
mov eax, dword [ebp - 0x28]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042465d
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x18], esi
jle 0x451c79
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
shl eax, 2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
push esi
push esi
push eax
push edi
push dword [ebp - 0x18]
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x451c6a
cmp word [edi], si
je 0x451c6a
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
push edi
push 0x47c9c4
mov word [eax + ecx*2], si
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edi
call fcn.004257d3
test al, al
pop ecx
pop ecx
je 0x451be1
mov edi, dword [ebp - 0x1c]
cmp word [edi], si
je 0x451bd5
mov eax, dword [ebp - 0xc]
cmp word [eax], si
je 0x451bcc
push 0x47c9c0
lea ecx, [ebp - 0xc]
call fcn.004246c0
push edi
lea ecx, [ebp - 0xc]
call fcn.004246c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], 0x47c9b4
jmp 0x451be4
mov eax, dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, ebx
call fcn.0043cace
push dword [ebp - 8]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea edi, [edi + 0x4764bc]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x451c60
push 0x47c9ac
lea ecx, [ebp - 0x10]
call fcn.0042a183
push dword [edi]
lea ecx, [ebp - 0x10]
call fcn.004246c0
push 0x47c9a8
lea ecx, [ebp - 0x10]
call fcn.004246c0
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.004246c0
push 1
push esi
push esi
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00446f56
lea ecx, [ebp - 0x10]
call fcn.00424686
add dword [ebp - 0x14], 8
cmp dword [ebp - 0x14], 0x40
jb 0x451c02
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jl 0x451b49
lea ecx, [ebp - 0x1c]
call fcn.00424686
lea ecx, [ebp - 0x38]
call fcn.00424686
cmp dword [ebp - 4], esi
je 0x451c97
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x20], 4
cmp dword [ebp - 0x20], 8
jl 0x451ab4
push esi
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0043cace
push dword [ebp - 8]
push 0x47c9b4
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
lea ecx, [ebp - 8]
call fcn.00424686
lea ecx, [ebp - 0xc]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], esi
je 0x451ce9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x451cc4