Function at 0x405960
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x130
mov eax, dword [0x4253c0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, dword [esp + 0x148]
mov ebx, ecx
mov ecx, dword [esp + 0x150]
push edi
mov edi, dword [esp + 0x144]
push str.UninstCommandClass::NvEnumKeys_n
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
call fcn.00403da0
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4059d0
sub eax, edx
cmp esi, eax
jae 0x405bc7
push 0x41da10
add esi, ebp
push esi
call fcn.0040b59f
mov esi, eax
add esp, 8
test esi, esi
jne 0x405a03
mov edx, dword [esp + 0x10]
push edx
jmp 0x405bcc
lea eax, [esi + 3]
push 0x41da0c
push eax
mov dword [esp + 0x30], eax
call fcn.0040b59f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x405a2c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
jmp 0x405bce
mov byte [ebx], 0
add ebx, 1
mov byte [esi], 0
cmp byte [ebx], 0x5c
jne 0x405a3d
add ebx, 1
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x405a60
xor eax, eax
jmp 0x405bd4
test eax, eax
jne 0x405bc1
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x405bb6
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x405bb6
lea esp, [esp]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
sub eax, 1
lea edx, [esp + 0x50]
push edx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x50], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x28]
cmp byte [eax], 0
je 0x405aed
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00401360
test eax, eax
je 0x405baa
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405af2
sub eax, edx
mov edi, eax
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405b06
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405b18
sub eax, esi
add eax, edx
lea edx, [eax + edi + 3]
push edx
call fcn.0040b83d
add esp, 4
cmp byte [ebx], 0
mov esi, eax
je 0x405b50
push ebx
lea eax, [esp + 0x40]
push eax
push ebp
push str._s_s_s
push esi
call fcn.0040bc71
add esp, 0x14
jmp 0x405b64
lea ecx, [esp + 0x3c]
push ecx
push ebp
push str._s_s
push esi
call fcn.0040bc71
add esp, 0x10
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
jmp 0x405b70
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405b70
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [eax + edx + 2]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00405960
add dword [esp + 0x1c], eax
push esi
call fcn.0040b8a7
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x405aa0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
jmp 0x405bd4
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
push ebp
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc62
add esp, 0x130
ret 0x14