Function at 0x407740
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x427e20
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
push str.CScrubber::DeleteRegistryKeys
lea ecx, [esp + 0x38]
call fcn.00401130
xor edx, edx
cmp dword [esi], edx
mov dword [esp + 0x68], edx
jne 0x4077a0
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], 0xffffffff
call fcn.004012e0
mov eax, 0x57
jmp 0x407b4f
mov eax, dword [esp + 0x70]
cmp eax, edx
je 0x407b2a
mov ecx, dword [eax + 0xc]
cmp ecx, edx
je 0x407b2a
mov eax, dword [eax + 4]
mov dword [esp + 0x28], edx
jle 0x407b3c
jmp 0x4077ca
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov eax, edi
mov dword [esp + 0x2c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4077d8
sub eax, edx
cmp eax, 4
jb 0x407b10
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4077f1
sub eax, edx
add eax, 1
push eax
call fcn.00409b95
mov esi, eax
mov edx, esi
add esp, 4
mov dword [esp + 0x20], esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x407814
push 0x429658
push esi
call fcn.00412936
add esp, 8
test eax, eax
jne 0x407842
push esi
push str.Invalid_Registry_Key_format:__s
lea edx, [esp + 0x3c]
push edx
jmp 0x407b02
push eax
mov byte [eax], 0
call fcn.00413daf
mov ebx, eax
push 0x2c
push ebx
mov dword [esp + 0x3c], ebx
xor ebp, ebp
call fcn.0041389e
add esp, 0xc
test eax, eax
je 0x407876
push 0xa
mov byte [eax], 0
add eax, 1
push ebp
push eax
call fcn.00414f12
add esp, 0xc
mov ebp, eax
push str.HKLM
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x407892
mov esi, 0x80000002
jmp 0x407911
push str.HKEY_LOCAL_MACHINE
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x4078ab
mov esi, 0x80000002
jmp 0x407911
push str.HKEY_CLASSES_ROOT
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x4078c4
mov esi, 0x80000000
jmp 0x407911
push str.HKEY_CURRENT_USER
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x4078dd
mov esi, 0x80000001
jmp 0x407911
push str.HKEY_USERS
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x4078f6
mov esi, 0x80000003
jmp 0x407911
push str.HKEY_CURRENT_CONFIG
push esi
call fcn.00413cf2
add esp, 8
test eax, eax
jne 0x407af7
mov esi, VariantClear
mov eax, ebp
sub eax, 0
je 0x407ac1
sub eax, 1
je 0x40793e
mov eax, dword [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x3c]
push str.Unsupported_option_specified_for__s_s
push ecx
call fcn.00401460
add esp, 0x10
jmp 0x407ae4
push 0x104
call fcn.00409b95
add esp, 4
mov ebp, eax
xor eax, eax
push 0xa
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], eax
call fcn.00402090
push 0x5c
push ebx
mov byte [esp + 0x70], 1
call fcn.00414609
mov edi, eax
add esp, 8
test edi, edi
je 0x407ab1
add edi, 1
mov byte [edi - 1], 0
je 0x407ab1
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ab1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407ab1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
push ebp
push 0
push eax
mov dword [esp + 0x38], 0x104
call ebx
cmp eax, 0x103
je 0x407a5b
add dword [esp + 0x1c], 1
push edi
push ebp
mov dword [esp + 0x20], 0x104
call fcn.00412936
add esp, 8
test eax, eax
je 0x407a37
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407a04
sub eax, edx
add eax, 1
push eax
call fcn.00409b95
mov esi, eax
add esp, 4
mov ecx, ebp
sub esi, ebp
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x407a21
push eax
lea ecx, [esp + 0x48]
call fcn.00406ff0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push ebp
push edx
push eax
call ebx
cmp eax, 0x103
jne 0x4079e4
mov esi, dword [esp + 0x48]
xor ebx, ebx
cmp dword [esp + 0x50], ebx
jle 0x407a9d
jmp 0x407a70
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00407450
push edi
call fcn.00409b90
add ebx, 1
add esp, 4
cmp ebx, dword [esp + 0x50]
jl 0x407a70
push ebp
call fcn.00409b90
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0
call fcn.00402330
jmp 0x407ae4
push edi
lea ecx, [esp + 0x38]
push str.Registry_key_to_remove:__s
push ecx
call fcn.00401460
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ebx
push edx
push esi
call fcn.00407450
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407b10
push eax
call fcn.00409b90
add esp, 4
jmp 0x407b10
push esi
push str.Unknown_registry_key:__s
lea eax, [esp + 0x3c]
push eax
call fcn.00401460
push esi
call fcn.00409b90
add esp, 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
add eax, 1
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
jl 0x4077c6
jmp 0x407b3c
lea edx, [esp + 0x34]
push str.Registry_section_not_specified_in_ini_file
push edx
call fcn.00401460
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], 0xffffffff
call fcn.004012e0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4