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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x4a0870
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a0d11
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x4ac918], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4ac8cc]
test eax, eax
jl 0x4a0bef
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0x4abc88
lea eax, [ebp - 0xc]
call fcn.004048c0
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
call fcn.00404958
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0049ed0c
push 0x4ac918
push 0x2000000
push 0
mov eax, dword [ebp - 4]
call fcn.00404d70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x14], 0x101
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x131]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0x4ac8d4]
call fcn.00404d70
push eax
mov eax, dword [0x4ac918]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a0939
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x131]
mov ecx, 0x101
call fcn.00404b28
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0xc]
call fcn.00404b78
test eax, eax
je 0x4a0bd5
mov eax, dword [0x4ac8d0]
test eax, eax
jl 0x4a0bd5
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0x4ab888
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0xc]
call fcn.00408ba8
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
call fcn.00408ba8
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404cbc
jne 0x4a0bc8
mov edi, dword [0x4ac8f8]
test edi, edi
jle 0x4a0bbd
mov dword [ebp - 0x14], 0x101
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x131]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0x4ac8d8]
call fcn.00404d70
push eax
mov eax, dword [0x4ac918]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a09f9
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x131]
mov ecx, 0x101
call fcn.00404b28
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x10]
call fcn.00404b78
test eax, eax
je 0x4a0bb6
mov esi, dword [0x4ac8f8]
dec esi
test esi, esi
jl 0x4a0bb6
inc esi
mov ebx, 0x4ac488
lea eax, [ebp - 0x20]
mov edx, dword [ebx]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x140]
push eax
mov ecx, 0x4a0d2c
mov edx, 0x4a0d38
mov eax, dword [ebp - 0x20]
call fcn.0040dc08
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x20]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x144]
push eax
mov ecx, 0x4a0d44
mov edx, 0x4a0d50
mov eax, dword [ebp - 0x20]
call fcn.0040dc08
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x20]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x148]
push eax
mov ecx, 0x4a0d5c
mov edx, 0x4a0d68
mov eax, dword [ebp - 0x20]
call fcn.0040dc08
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x20]
call fcn.00404958
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
call fcn.00408ba8
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 0x20]
call fcn.00408ba8
mov edx, dword [ebp - 0x150]
pop eax
call fcn.00404cbc
jne 0x4a0bac
lea eax, [ebp - 0x1c]
mov edx, dword [ebx]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x154]
push eax
mov ecx, 0x4a0d38
mov edx, 0x4a0d2c
mov eax, dword [ebp - 0x1c]
call fcn.0040dc08
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x1c]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x158]
push eax
mov ecx, 0x4a0d50
mov edx, 0x4a0d44
mov eax, dword [ebp - 0x1c]
call fcn.0040dc08
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x1c]
call fcn.00404958
mov al, byte [0x4a0d20]
push eax
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x4a0d68
mov edx, 0x4a0d5c
mov eax, dword [ebp - 0x1c]
call fcn.0040dc08
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x1c]
call fcn.00404958
mov eax, dword [ebp - 0x1c]
call fcn.00404b78
inc eax
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404d70
push eax
push 1
push 0
mov eax, dword [0x4ac8d8]
call fcn.00404d70
push eax
mov eax, dword [0x4ac918]
push eax
call sub.advapi32.dll_RegSetValueExA
inc dword [ebp - 8]
add ebx, 4
dec esi
jne 0x4a0a25
dec edi
jne 0x4a09ad
mov eax, dword [0x4ac918]
push eax
call sub.advapi32.dll_RegCloseKey_1
add dword [ebp - 0x30], 4
dec dword [ebp - 0x28]
jne 0x4a0968
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0049ed0c
add dword [ebp - 0x2c], 4
dec dword [ebp - 0x24]
jne 0x4a08ac
cmp byte [0x4ac88c], 0
jne 0x4a0cd1
push 0x40
lea ecx, [ebp - 0x160]
mov edx, 0x4a0d74
mov eax, dword [0x4ac8fc]
call fcn.0049f194
mov eax, dword [ebp - 0x160]
call fcn.00404d70
push eax
lea ecx, [ebp - 0x168]
mov edx, 0x4a0d88
mov eax, dword [0x4ac8fc]
call fcn.0049f194
push dword [ebp - 0x168]
push 0x4a0d98
lea edx, [ebp - 0x16c]
mov eax, dword [0x4ac8d0]
call fcn.00409014
push dword [ebp - 0x16c]
push 0x4a0da4
lea ecx, [ebp - 0x170]
mov edx, 0x4a0db0
mov eax, dword [0x4ac8fc]
call fcn.0049f194
push dword [ebp - 0x170]
push 0x4a0dc0
lea ecx, [ebp - 0x174]
mov edx, 0x4a0dcc
mov eax, dword [0x4ac8fc]
call fcn.0049f194
push dword [ebp - 0x174]
push 0x4a0d98
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.00409014
push dword [ebp - 0x178]
lea eax, [ebp - 0x164]
mov edx, 9
call fcn.00404c38
mov eax, dword [ebp - 0x164]
call fcn.00404d70
push eax
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d18
lea eax, [ebp - 0x178]
mov edx, 0x11
call fcn.004048e4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004048e4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048c0
ret