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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004e0050
pop ecx
mov ebx, eax
mov byte [ebp - 0x2d], 1
lea eax, [ebp - 4]
push eax
push edi
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
je 0x404b9e
jmp 0x404dd4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404964
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp + 0x14]
push eax
push edi
mov edx, dword [ebp + 8]
push edx
call fcn.004049b4
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
je 0x404bda
jmp 0x404dd4
push 0x400
call fcn.004e0050
pop ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
push esi
push edi
mov edi, esi
mov esi, 0x50fe5e
mov eax, edi
movsb byte es:[edi], byte [esi]
pop edi
pop esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x2d], 0
jne 0x404c2b
cmp dword [ebp - 0x28], 0xffffffff
jne 0x404c11
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp - 8]
push edx
call sub.ADVAPI32.DLL_RegSetValueExA
jmp 0x404c2f
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x20], 0x400
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
push eax
push ebx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x20]
push 0
push ecx
mov eax, dword [ebp - 0x1c]
mov edx, esi
push eax
push edx
mov ecx, dword [ebp - 4]
inc esi
push ecx
call sub.ADVAPI32.DLL_RegEnumValueA
cmp eax, 0xea
jne 0x404cad
mov dword [ebp - 0x20], 0x400
add dword [ebp - 0x24], 0x400
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push ebx
call fcn.004e0070
add esp, 8
lea ecx, [ebp - 0x24]
mov ebx, eax
lea eax, [ebp - 0x28]
push ecx
push ebx
push eax
lea edx, [ebp - 0x20]
push 0
push edx
mov ecx, dword [ebp - 0x1c]
lea eax, [esi - 1]
push ecx
push eax
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegEnumValueA
cmp eax, 0xea
je 0x404c63
test eax, eax
je 0x404c00
push edi
call fcn.004e0ef8
pop ecx
mov ebx, eax
add ebx, edi
mov byte [ebx], 0x5c
inc ebx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e0ef8
pop ecx
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x5c
inc dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x34], 0x400
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x34]
push eax
push 0
push 0
push 0
push edx
push ebx
push esi
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
cmp eax, 0x103
je 0x404d8d
test eax, eax
jne 0x404d8d
mov eax, dword [ebp - 0x10]
mov esi, ebx
mov dword [ebp - 0x38], eax
xor eax, eax
mov edx, dword [ebp - 0x38]
push esi
push edi
mov edi, esi
or ecx, 0xffffffff
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
push edi
mov edx, dword [ebp + 8]
push edx
call fcn.00404b64
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov byte [ebx - 1], 0
lea eax, [ebp - 4]
push eax
push edi
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
je 0x404d74
jmp 0x404d8d
lea esi, [ebx - 1]
push esi
push edi
mov edi, esi
mov esi, 0x50fe5f
mov eax, edi
movsw word es:[edi], word [esi]
pop edi
pop esi
xor esi, esi
jmp 0x404cdf
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0
call fcn.004049b4
add esp, 0x10
mov byte [ebx], 0
push edi
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.DLL_RegDeleteKeyA
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 8]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e0060
pop ecx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e0060
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret