Function at 0x489138
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c60
mov eax, dword [ebp - 0xc]
call fcn.00404c60
xor eax, eax
push ebp
push 0x4893ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x20]
mov edx, 0xff
call fcn.00404dfc
mov eax, dword [ebp - 0x20]
call fcn.00404a78
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00404c70
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x489253
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
call fcn.00404cc8
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c70
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x489253
mov eax, dword [ebp - 0x18]
sub eax, 1
je 0x4891f9
sub eax, 3
jne 0x489253
cmp dword [ebp - 0x18], 4
jne 0x489210
lea eax, [ebp - 0x20]
call fcn.00404cc8
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x489260
xor eax, eax
push ebp
push 0x489247
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.00404c70
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.004049b0
mov eax, dword [ebp - 0x24]
call fcn.00408df8
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489260
cmp byte [ebp + 8], 0
je 0x489260
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x489281
cmp byte [ebp + 0x18], 0
jne 0x489281
cmp byte [ebp + 0x14], 0
je 0x4893d7
cmp byte [ebp + 0x18], 0
je 0x48928c
mov eax, dword [ebp + 0xc]
inc dword [eax]
cmp byte [ebp + 0x14], 0
je 0x48929f
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jbe 0x48929f
mov eax, dword [ebp + 0xc]
dec dword [eax]
cmp byte [ebp + 0x14], 0
jne 0x4892b6
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
ja 0x4892b6
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jbe 0x48930b
cmp dword [ebp - 0x18], 1
jne 0x4892ef
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00408d88
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ca78
mov byte [ebp - 0xd], al
jmp 0x4893d7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048cb74
mov byte [ebp - 0xd], al
jmp 0x4893d7
mov bl, 1
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
jne 0x489367
push 0
push 0x48941c
push dword [ebp - 0xc]
push 0x489434
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404b38
mov eax, dword [ebp - 0x2c]
mov cx, word [0x489460]
mov dl, 3
call fcn.0043bbfc
sub eax, 6
je 0x489351
sub eax, 3
je 0x48935d
dec eax
je 0x489355
jmp 0x489365
mov bl, 1
jmp 0x489367
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x489367
mov eax, dword [ebp + 0x10]
mov byte [eax], 2
jmp 0x489367
xor ebx, ebx
mov eax, dword [ebp + 0x10]
cmp byte [eax], 1
je 0x48937b
test bl, bl
je 0x4893ce
mov eax, dword [ebp + 0x10]
cmp byte [eax], 2
je 0x4893ce
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00404c70
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4893b4
mov eax, dword [ebp - 0xc]
call fcn.00404c70
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je 0x4893b8
xor eax, eax
jmp 0x4893ba
mov al, 1
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x1c], 0
je 0x4893d7
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4893d7
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489406
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004047e4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047e4
ret