Function at 0x10009a7c
Capabilities:
Delete registry key
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 0x10009b69
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 0x10009afc
cmp byte [0x10023708], 0
jne 0x10009ca3
push str.Error_in_finding_blat_default_profile_in_the_registry_n
call sub.MSVCRT.dll_printf
jmp 0x10009ca2
xor ebx, ebx
mov esi, 0x10024570
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 0x10009b59
cmp eax, edi
jne 0x10009b59
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
jne 0x10009b3a
dec ebx
jmp 0x10009b03
cmp byte [0x10023708], 0
jne 0x10009b52
push dword [ebp + 8]
push str.Error_in_deleting_profile__s_in_the_registry_n
call sub.MSVCRT.dll_printf
pop ecx
pop ecx
push 0xb
jmp 0x10009ca5
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 0x10009c02
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.1000998c
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 0x10009b62
push 0x10016317
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 sub.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 0x10009b62
push 0x10016317
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10009b59
cmp byte [ebx], 0
je 0x10009b62
lea eax, [ebp - 0x104]
push 0x10017810
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.1000998c
add esp, 0x18
test eax, eax
je 0x10009c50
cmp byte [0x10023708], 0
jne 0x10009b52
push ebx
jmp 0x10009b46
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 0x10009c8d
push 0x10016317
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 0x10009b62
cmp byte [0x10023708], 0
jne 0x10009ca3
push ebx
push str.Error_in_finding_blat_profile__s_in_the_registry_n
call sub.MSVCRT.dll_printf
pop ecx
pop ecx
push 0xa
pop eax
jmp 0x10009b64