Function at 0x404920
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x454
mov eax, dword [0x4243c0]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
mov ebx, dword [esp + 0x460]
push ebp
push esi
push edi
mov edi, dword [esp + 0x468]
push 0x103
xor ebp, ebp
lea eax, [esp + 0x361]
mov esi, ecx
push ebp
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x368], 0
call fcn.0040b620
push 0x103
lea ecx, [esp + 0x61]
push ebp
push ecx
mov byte [esp + 0x68], 0
call fcn.0040b620
push 0x103
lea edx, [esp + 0x171]
push ebp
push edx
mov byte [esp + 0x178], 0
call fcn.0040b620
push ebx
push edi
push str.UninstCommandClass::QueryClassKeyNamesForDelete__s__s__n
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x60], 1
call fcn.00403da0
add esp, 0x30
cmp ebx, 0x41a895
je 0x4049d5
push ebx
push 0x41a558
lea eax, [esp + 0x58]
push eax
jmp 0x4049e0
push edi
push str.SYSTEMCurrentControlSetControlClass_s
lea ecx, [esp + 0x58]
push ecx
call fcn.0040b9e1
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push str.Enumerating_Reg_Path:_s_n
call fcn.00403da0
add esp, 8
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
lea ecx, [esp + 0x5c]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404dd5
lea ecx, [ecx]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404dd5
cmp ebx, 0x41a895
je 0x404cb4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404cb4
mov ecx, 1
add dword [esp + 0x20], ecx
add dword [esp + 0x14], ecx
push eax
push str.Number_of_reg_names:__d_n
call fcn.00403da0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040b5ab
mov edx, dword [esp + 0x20]
push edx
mov ebp, eax
call fcn.0040b5ab
mov edi, eax
xor eax, eax
add esp, 0x10
cmp ebp, eax
mov dword [esp + 0x34], edi
je 0x404ca2
cmp edi, eax
je 0x404ca2
cmp dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
jbe 0x404c56
jmp 0x404ad0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push 0
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call fcn.0040b620
mov edx, dword [esp + 0x20]
push edx
push 0
push edi
call fcn.0040b620
add esp, 0x18
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x54]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ebx, ebx
cmp dword [0x429a38], ebx
jle 0x404c14
lea ebx, [ebx]
push str.set_AddRegName__0
mov ecx, esi
call fcn.004025b0
push ebp
lea edx, [esp + 0x25c]
push str.if__s
push edx
call fcn.0040b9e1
lea edi, [esp + 0x264]
add esp, 0xc
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404b60
mov ecx, dword [ebx*4 + 0x4258a8]
mov ax, word [0x41c234]
push ecx
lea edx, [esp + 0x25c]
push edx
mov word [edi], ax
mov eax, edx
push str._s_s_then_set_AddRegName__1
push eax
call fcn.0040b9e1
add esp, 0x10
lea ecx, [esp + 0x258]
push ecx
mov ecx, esi
call fcn.004025b0
push str.AddRegName
mov ecx, esi
mov edi, 0x41c204
call fcn.00401110
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404bd5
mov esi, dword [esp + 0x2c]
add ebx, 1
cmp ebx, dword [0x429a38]
jl 0x404b30
jmp 0x404c10
cmp dword [esp + 0x10], edx
push ebp
jne 0x404bf0
push 0x41a558
push 0x4259e8
call fcn.0040b9e1
add esp, 0xc
jmp 0x404c07
push 0x4259e8
push str._s__s
push 0x4259e8
call fcn.0040b9e1
add esp, 0x10
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
cmp eax, 0x40
jge 0x404c3c
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jb 0x404ad0
jmp 0x404c52
push eax
push str.g_ClassRegNamelist_has_reached_its_max_level_to_store_the_names_count___d_._Will_delete_the_current_elements_and_query_the_names_again__n
call fcn.00403da0
add esp, 8
mov dword [esp + 0x30], 1
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
push eax
push str.Number_of_elements_inside_g_ClassRegNamelist:_d_n
call fcn.00403da0
push 0x4259e8
push str.Elements_inside_g_ClassRegNamelist:__s_n
call fcn.00403da0
add esp, 0x10
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00404850
push ebp
call fcn.0040b615
push edi
call fcn.0040b615
add esp, 8
cmp dword [esp + 0x30], 1
je 0x404a20
jmp 0x404dbf
push str.Could_not_allocate_memory_for_szName_and_pValue_n
call fcn.00403da0
add esp, 4
jmp 0x404a20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404a20
push eax
push str.Number_of_subkeys:__d_n
call fcn.00403da0
xor edi, edi
add esp, 8
cmp dword [esp + 0x1c], edi
jbe 0x404dbf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, 0x104
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x168]
push eax
push edi
push ecx
mov dword [esp + 0x60], ebp
call ebx
test eax, eax
jne 0x404db2
lea edx, [esp + 0x154]
push edx
push str.Current_subkey:__s_n
call fcn.00403da0
add esp, 8
xor eax, eax
jmp 0x404d30
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x35c], cl
add eax, 1
test cl, cl
jne 0x404d30
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, ecx
push str._s_s
push edx
call fcn.0040b9e1
lea eax, [esp + 0x164]
push str.Properties
push eax
call fcn.0040b53a
add esp, 0x18
test eax, eax
je 0x404d86
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push ecx
push edx
mov ecx, esi
call fcn.00404920
push str.Placing_back_the_original_Class_Path_n
call fcn.00403da0
add esp, 4
xor eax, eax
jmp 0x404da0
mov cl, byte [esp + eax + 0x35c]
mov byte [esp + eax + 0x50], cl
add eax, 1
test cl, cl
jne 0x404da0
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x404ce5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404dce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x404dd7
xor eax, eax
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b9d2
add esp, 0x454
ret 8