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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x4144b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x134]
push eax
push 0xf003f
mov esi, ecx
push 0
push esi
push 0x80000002
mov dword [ebp - 0x158], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401aab
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031ae
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x134]
push 0
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x150]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401a9a
mov ecx, dword [ebp - 0x140]
push ebx
inc ecx
push edi
push ecx
call fcn.00402e1a
add esp, 4
cmp dword [ebp - 0x150], 0
mov edi, eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x138], 0
ja 0x401b47
push edi
call fcn.004031bd
mov ecx, dword [ebp - 0x134]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031ae
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x158]
mov edx, dword [ebp - 0x140]
inc edx
push edx
push 0
push edi
call fcn.004054f0
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x138]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x160]
push ecx
inc eax
push edi
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x134]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401b18
push 0x12b
push eax
lea ecx, [ebp - 0x12f]
push ecx
mov byte [ebp - 0x130], al
call fcn.004054f0
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x130]
push edx
call esi
push 0x41287c
lea eax, [ebp - 0x130]
push eax
call esi
push edi
lea ecx, [ebp - 0x130]
push ecx
call esi
lea edx, [ebp - 0x144]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x130]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b18
push eax
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x144]
push 0
lea ecx, [ebp - 0x178]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401b18
mov ecx, dword [ebp - 0x148]
inc ecx
push ecx
call fcn.00402e1a
mov edx, dword [ebp - 0x13c]
push edx
mov esi, eax
call fcn.00402e1a
xor ebx, ebx
add esp, 8
mov edi, eax
cmp dword [ebp - 0x154], ebx
jbe 0x401cfc
lea ebx, [ebx]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x148]
inc eax
push eax
push 0
push esi
mov dword [ebp - 0x15c], eax
call fcn.004054f0
mov ecx, dword [ebp - 0x13c]
push ecx
push 0
push edi
call fcn.004054f0
add esp, 0x18
lea edx, [ebp - 0x164]
push edx
mov edx, dword [ebp - 0x144]
push edi
lea eax, [ebp - 0x174]
push eax
push 0
lea ecx, [ebp - 0x15c]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401cfc
push str.DisplayName
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401cef
push str.RESORCE
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401d3c
inc ebx
cmp ebx, dword [ebp - 0x154]
jb 0x401c70
push esi
call fcn.004031bd
push edi
call fcn.004031bd
mov eax, dword [ebp - 0x144]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x138]
mov edi, dword [ebp - 0x14c]
inc eax
mov dword [ebp - 0x138], eax
cmp eax, dword [ebp - 0x150]
jb 0x401b41
jmp 0x401b18
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004031ae
mov esp, ebp
pop ebp
ret