Function at 0x450ee0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4511aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x451151
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 1
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x4511b8
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x451147
xor eax, eax
push ebp
push 0x451140
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402d80
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451122
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
test ebx, ebx
je 0x451095
lea eax, [ebp - 8]
push eax
mov esi, dword [ebp - 4]
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4511dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450fa5
cmp dword [ebp - 8], 0
ja 0x451033
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push 0x451200
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451033
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404ab0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.0040b0ec
test al, al
je 0x451010
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x450ff5
cmp eax, dword [esp]
pop edx
pop eax
ja 0x451010
jmp 0x450ff9
pop edx
pop eax
jg 0x451010
call fcn.00404318
call fcn.00404318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45118f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0x4511dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x451033
call fcn.004109ac
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040b048
lea eax, [ebp - 0x1c]
mov edx, 0x451224
call fcn.00404b9c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040bdf8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404ab0
mov eax, dword [ebp - 0x20]
call fcn.00404b94
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0x451200
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45110c
call fcn.004109ac
jmp 0x45110c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4511dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4510bb
cmp dword [ebp - 8], 0
ja 0x4510d2
call fcn.00404318
call fcn.00404318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45118f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0
push 0x451200
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4510f5
call fcn.004109ac
push 0x4511dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je 0x45110c
call fcn.004109ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451129
mov eax, dword [ebp - 4]
call fcn.00402db0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45118f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4511b1
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004048dc
ret