Function at 0x409a85
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 0x409b74
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 0x409b06
cmp byte [0x423710], 0
jne 0x409cb0
push str.Error_in_finding_blat_default_profile_in_the_registry_n
call dword [sym.imp.MSVCRT.dll_printf]
jmp 0x409caf
xor ebx, ebx
mov esi, 0x424578
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 0x409b64
cmp eax, edi
jne 0x409b64
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
jne 0x409b44
dec ebx
jmp 0x409b0d
cmp byte [0x423710], 0
jne 0x409b5d
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 0x409cb2
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 0x409c0e
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00409993
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 0x409b6d
push 0x41632f
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 0x409b6d
push 0x41632f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x409b64
cmp byte [ebx], 0
je 0x409b6d
lea eax, [ebp - 0x104]
push 0x417834
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.00409993
add esp, 0x18
test eax, eax
je 0x409c5c
cmp byte [0x423710], 0
jne 0x409b5d
push ebx
jmp 0x409b50
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 0x409c99
push 0x41632f
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 0x409b6d
cmp byte [0x423710], 0
jne 0x409cb0
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 0x409b6f