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

Disassembly:
sub esp, 0x454
mov eax, dword [0x4253c0]
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.0040b8b0
push 0x103
lea ecx, [esp + 0x61]
push ebp
push ecx
mov byte [esp + 0x68], 0
call fcn.0040b8b0
push 0x103
lea edx, [esp + 0x171]
push ebp
push edx
mov byte [esp + 0x178], 0
call fcn.0040b8b0
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, 0x41b895
je 0x404885
push ebx
push 0x41b558
lea eax, [esp + 0x58]
push eax
jmp 0x404890
push edi
push str.SYSTEMCurrentControlSetControlClass_s
lea ecx, [esp + 0x58]
push ecx
call fcn.0040bc71
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 SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c85
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 0x404c85
cmp ebx, 0x41b895
je 0x404b64
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404b64
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.0040b83d
mov edx, dword [esp + 0x20]
push edx
mov ebp, eax
call fcn.0040b83d
mov edi, eax
xor eax, eax
add esp, 0x10
cmp ebp, eax
mov dword [esp + 0x34], edi
je 0x404b52
cmp edi, eax
je 0x404b52
cmp dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
jbe 0x404b06
jmp 0x404980
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.0040b8b0
mov edx, dword [esp + 0x20]
push edx
push 0
push edi
call fcn.0040b8b0
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 [0x42aa38], ebx
jle 0x404ac4
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.0040bc71
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 0x404a10
mov ecx, dword [ebx*4 + 0x4268a8]
mov ax, word [0x41d224]
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.0040bc71
add esp, 0x10
lea ecx, [esp + 0x258]
push ecx
mov ecx, esi
call fcn.004025b0
push str.AddRegName
mov ecx, esi
mov edi, 0x41d1f4
call fcn.00401110
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404a85
mov esi, dword [esp + 0x2c]
add ebx, 1
cmp ebx, dword [0x42aa38]
jl 0x4049e0
jmp 0x404ac0
cmp dword [esp + 0x10], edx
push ebp
jne 0x404aa0
push 0x41b558
push 0x4269e8
call fcn.0040bc71
add esp, 0xc
jmp 0x404ab7
push 0x4269e8
push str._s__s
push 0x4269e8
call fcn.0040bc71
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 0x404aec
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jb 0x404980
jmp 0x404b02
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 0x4269e8
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.00404700
push ebp
call fcn.0040b8a7
push edi
call fcn.0040b8a7
add esp, 8
cmp dword [esp + 0x30], 1
je 0x4048d0
jmp 0x404c6f
push str.Could_not_allocate_memory_for_szName_and_pValue_n
call fcn.00403da0
add esp, 4
jmp 0x4048d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4048d0
push eax
push str.Number_of_subkeys:__d_n
call fcn.00403da0
xor edi, edi
add esp, 8
cmp dword [esp + 0x1c], edi
jbe 0x404c6f
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 0x404c62
lea edx, [esp + 0x154]
push edx
push str.Current_subkey:__s_n
call fcn.00403da0
add esp, 8
xor eax, eax
jmp 0x404be0
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x35c], cl
add eax, 1
test cl, cl
jne 0x404be0
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, ecx
push str._s_s
push edx
call fcn.0040bc71
lea eax, [esp + 0x164]
push str.Properties
push eax
call fcn.0040b7cc
add esp, 0x18
test eax, eax
je 0x404c36
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push ecx
push edx
mov ecx, esi
call fcn.004047d0
push str.Placing_back_the_original_Class_Path_n
call fcn.00403da0
add esp, 4
xor eax, eax
jmp 0x404c50
mov cl, byte [esp + eax + 0x35c]
mov byte [esp + eax + 0x50], cl
add eax, 1
test cl, cl
jne 0x404c50
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x404b95
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404c7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x404c87
xor eax, eax
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc62
add esp, 0x454
ret 8