Function at 0x408b20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x425c70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x432a20]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 0x40c]
mov dword [ebp - 0x2c], ebx
mov edi, dword [ebp + 0x410]
xor edx, edx
cmp ebx, edx
je 0x408d3e
cmp edi, edx
je 0x408d3e
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408b85
sub eax, esi
je 0x408d3e
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], 0x400
mov byte [ebp - 0x11], dl
mov esi, 0xf003f
mov dword [ebp - 4], edx
call fcn.00409930
test eax, eax
je 0x408bbc
mov esi, 0xf013f
lea eax, [ebp - 0x1c]
push eax
push esi
xor esi, esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408ca0
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, esi
je 0x408c18
push edi
push str.RegQueryInfoKey__s__fail__
mov edx, dword [ebp - 0x18]
add edx, 4
mov ecx, eax
call fcn.00406dd0
add esp, 8
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408cb6
cmp dword [ebp - 0x20], esi
je 0x408c81
mov dword [ebp - 0x28], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp esi, dword [ebp - 0x20]
jae 0x408c91
push 0x400
push 0
lea eax, [ebp]
push eax
call fcn.00416c00
add esp, 0xc
mov dword [ebp - 0x24], 0x400
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
test eax, eax
jne 0x408c79
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00408b20
mov byte [ebp - 0x11], al
test al, al
je 0x408c91
add esi, 1
mov dword [ebp - 0x28], esi
jmp 0x408c26
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408cb6
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408cb6
push edi
push str.OpenKey__s__fail__
mov edx, dword [ebp - 0x18]
add edx, 4
mov ecx, eax
call fcn.00406dd0
add esp, 8
xor esi, esi
call fcn.00409930
test eax, eax
je 0x408cc6
mov esi, 0x100
cmp byte [ebp - 0x11], 0
je 0x408d19
push ebx
push 0x438b04
mov ecx, esi
mov edx, edi
call fcn.004013c0
test eax, eax
je 0x408d19
mov esi, dword [ebp - 0x18]
add esi, 4
push edi
push str.Delete__s_registry_key_fail__
mov ecx, eax
mov edx, esi
call fcn.00406dd0
add esp, 8
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408d19
push edi
push str.Delete__s_registry_key_fail__
mov ecx, eax
mov edx, esi
call fcn.00406dd0
add esp, 8
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
jmp 0x408d40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00412333
add ebp, 0x404
mov esp, ebp
pop ebp
ret 8