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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
neg esi
lea eax, [ebp - 0x104]
sbb esi, esi
push str.SOFTWAREPublic_DomainBlat
push eax
mov dword [ebp - 4], edi
add esi, 0x80000002
call sub.MSVCRT.dll_strcpy
mov ebx, dword [ebp + 8]
push str._default_
push ebx
call sub.MSVCRT.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x408b7b
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x408b0d
cmp byte [0x421278], 0
jne 0x408cb7
push str.Error_in_finding_blat_default_profile_in_the_registry_n
call dword [sym.imp.MSVCRT.dll_printf]
jmp 0x408cb6
xor ebx, ebx
mov esi, 0x421dd0
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc ebx
cmp eax, 0x103
je 0x408b6b
cmp eax, edi
jne 0x408b6b
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
jne 0x408b4b
dec ebx
jmp 0x408b14
cmp byte [0x421278], 0
jne 0x408b64
push dword [ebp + 8]
push str.Error_in_deleting_profile__s_in_the_registry_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
push 0xb
jmp 0x408cb9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push str._all_
push ebx
call sub.MSVCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x408c15
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0040899a
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
mov ebx, 0xf003f
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
jne 0x408b74
push 0x414ee7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push ebx
push 0
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
jne 0x408b74
push 0x414ee7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x408b6b
cmp byte [ebx], 0
je 0x408b74
lea eax, [ebp - 0x104]
push 0x415fa0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0040899a
add esp, 0x18
test eax, eax
je 0x408c63
cmp byte [0x421278], 0
jne 0x408b64
push ebx
jmp 0x408b57
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x408ca0
push 0x414ee7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x408b74
cmp byte [0x421278], 0
jne 0x408cb7
push ebx
push str.Error_in_finding_blat_profile__s_in_the_registry_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
push 0xa
pop eax
jmp 0x408b76