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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0042c3f7
lea ecx, [ebp - 8]
call fcn.0042c3f7
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp word [eax], bx
mov edi, 0x80000001
mov dword [ebp - 0x20], ebx
jne 0x454e1c
mov dword [ebp + 0xc], ebx
mov esi, dword [ebp + 8]
cmp word [esi], bx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x454e9b
push 5
push esi
push str.HKCU_
call fcn.00427f14
add esp, 0xc
test al, al
je 0x454e44
add esi, 0xa
jmp 0x454e92
push 0x13
push esi
push str.HKEY_CURRENT_USER_
call fcn.00427f14
add esp, 0xc
test al, al
je 0x454e5d
add esi, 0x24
jmp 0x454e92
push 5
push esi
push str.HKLM_
call fcn.00427f14
add esp, 0xc
test al, al
je 0x454e76
add esi, 0xa
jmp 0x454e8d
push 0x13
push esi
push str.HKEY_LOCAL_MACHINE_
call fcn.00427f14
add esp, 0xc
test al, al
je 0x454e92
add esi, 0x26
mov edi, 0x80000002
mov dword [ebp - 0x20], 2
jmp 0x454eb6
mov eax, dword [ebp - 0x20]
cmp eax, 3
jae 0x4550bc
shl eax, 2
mov edi, dword [eax + 0x4881c4]
mov esi, dword [eax + 0x4881b8]
lea eax, [ebp - 4]
push eax
movzx eax, word [0x496b68]
or eax, 0xf003f
push eax
push ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
je 0x45509f
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebx
jne 0x4550a7
mov eax, dword [ebp - 0x24]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042c415
mov eax, dword [ebp - 0x28]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c415
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
jle 0x455081
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
shl eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x18]
mov word [edi], bx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x455072
cmp word [edi], bx
je 0x455072
cmp dword [ebp + 0xc], ebx
je 0x454f99
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x455072
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x30]
shr eax, 1
push str.PATH
mov word [esi + eax*2], bx
call fcn.00427f44
test al, al
pop ecx
pop ecx
je 0x454fe5
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
je 0x454fdd
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x454fd2
push 0x4881ac
lea ecx, [ebp - 0xc]
call fcn.0042c465
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xc]
call fcn.0042c465
mov esi, dword [ebp - 0xc]
mov edi, 0x4881a0
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push esi
mov ecx, 0x496eb8
call fcn.0043c12f
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp byte [ebp + 0xb], bl
je 0x455072
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp - 0x14]
lea esi, [esi + 0x4815e4]
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x455068
push 0x488198
lea ecx, [ebp - 0x10]
call fcn.004361de
push dword [esi]
lea ecx, [ebp - 0x10]
call fcn.0042c465
push 0x48811c
lea ecx, [ebp - 0x10]
call fcn.0042c465
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0042c465
push 1
push ebx
push ebx
push dword [ebp - 0x10]
mov ecx, 0x496eb8
call fcn.00442e08
lea ecx, [ebp - 0x10]
call fcn.0042704a
add dword [ebp - 0x14], 8
cmp dword [ebp - 0x14], 0x40
jb 0x455009
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x454f3e
lea ecx, [ebp - 0x1c]
call fcn.0042704a
lea ecx, [ebp - 0x30]
call fcn.0042704a
cmp dword [ebp - 4], ebx
je 0x45509f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x20]
jmp 0x454e9b
cmp dword [ebp - 4], ebx
je 0x4550b5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
mov ebx, esi
jmp 0x4550f6
cmp dword [ebp + 0xc], ebx
je 0x45510a
push dword [ebp + 0xc]
push str.PATH
call fcn.00427f44
test al, al
pop ecx
pop ecx
je 0x45510a
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov ecx, 0x496eb8
call fcn.0043c12f
push dword [ebp - 8]
push 0x4881a0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 8]
call fcn.0042704a
lea ecx, [ebp - 0xc]
call fcn.0042704a
mov eax, ebx
jmp 0x45511c
lea ecx, [ebp - 8]
call fcn.0042704a
lea ecx, [ebp - 0xc]
call fcn.0042704a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret