Function at 0x454c90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 1], cl
mov esi, edx
xor edx, edx
push ebp
push 0x454f2b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 3
push 0
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, 0x454f3c
mov edx, 0x80000002
call fcn.0042e234
mov ebx, eax
test ebx, ebx
je 0x454d7f
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x80000002
call fcn.00453d18
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov eax, 0x454f7c
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x30]
mov ecx, 1
mov al, 0x44
call fcn.00451b6c
lea eax, [ebp - 0x28]
mov edx, 0x454fbc
call fcn.0040357c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, 0x454fcc
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.004071b8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.0042ed18
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x40]
mov ecx, 2
mov al, 0x3b
call fcn.00451b6c
mov edx, dword [ebp - 0x34]
pop eax
call fcn.0040357c
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, 0x406850
call fcn.0040905c
call fcn.0040311c
mov eax, esi
call fcn.00403738
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
push ebp
push 0x454e67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x454e5d
mov eax, dword [ebp - 0x18]
dec eax
je 0x454dd7
sub eax, 2
je 0x454dfd
dec eax
je 0x454e34
jmp 0x454e5d
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0042e19c
test al, al
je 0x454e5d
mov eax, dword [ebp - 0x20]
call fcn.004071e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
jmp 0x454e5d
cmp dword [ebp - 0x10], 1
jl 0x454e5d
cmp dword [ebp - 0x10], 4
jg 0x454e5d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x454e2b
call fcn.00409030
mov dword [ebp - 0x1c], 3
jmp 0x454e5d
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x454e5d
call fcn.00409030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x454e76
cmp dword [ebp - 0x14], 0
jge 0x454e81
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
sete al
and al, byte [ebp - 1]
je 0x454e90
inc dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec eax
je 0x454ea3
add eax, 0xfffffffe
sub eax, 2
jb 0x454ed6
jmp 0x454eef
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004071b8
mov eax, dword [ebp - 0x20]
call fcn.00403574
inc eax
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403738
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp 0x454eef
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f32
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403420
lea eax, [ebp - 0x34]
call fcn.00403400
lea eax, [ebp - 0x28]
call fcn.00403400
lea eax, [ebp - 0x20]
call fcn.00403400
ret