Function at 0x451af8
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 ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x451d93
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 3
push 0
push 0
push 0
push 0x451da4
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
je 0x451be7
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x80000002
call fcn.00450e24
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov eax, 0x451de4
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x30]
mov ecx, 1
mov al, 0x3e
call fcn.0045093c
lea eax, [ebp - 0x28]
mov edx, 0x451e24
call fcn.004036c4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, 0x451e34
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00406dd0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.0042e684
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x40]
mov ecx, 2
mov al, 0x34
call fcn.0045093c
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004036c4
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, 0x406430
call fcn.00408dbc
call fcn.00403264
mov eax, esi
call fcn.00403880
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
push ebp
push 0x451ccf
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 0x451cc5
mov eax, dword [ebp - 0x18]
dec eax
je 0x451c3f
sub eax, 2
je 0x451c65
dec eax
je 0x451c9c
jmp 0x451cc5
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0042dbd0
test al, al
je 0x451cc5
mov eax, dword [ebp - 0x20]
call fcn.00406e00
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
jmp 0x451cc5
cmp dword [ebp - 0x10], 1
jl 0x451cc5
cmp dword [ebp - 0x10], 4
jg 0x451cc5
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 0x451c93
call fcn.00408d90
mov dword [ebp - 0x1c], 3
jmp 0x451cc5
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 0x451cc5
call fcn.00408d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x451cde
cmp dword [ebp - 0x14], 0
jge 0x451ce9
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
sete al
and al, byte [ebp - 1]
je 0x451cf8
inc dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec eax
je 0x451d0b
add eax, 0xfffffffe
sub eax, 2
jb 0x451d3e
jmp 0x451d57
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00406dd0
mov eax, dword [ebp - 0x20]
call fcn.004036bc
inc eax
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403880
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 0x451d57
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 0x451d9a
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403568
lea eax, [ebp - 0x34]
call fcn.00403548
lea eax, [ebp - 0x28]
call fcn.00403548
lea eax, [ebp - 0x20]
call fcn.00403548
ret