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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x4403cc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4403cc
push 0
push 0
push 0
lea eax, [ebp + 0xc]
push 0
lea ecx, [ebp - 0x58]
push eax
push ecx
push 0
push ebx
mov dword [ebp + 0xc], 0x41
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4401d6
lea edx, [ebp - 0x58]
mov ecx, edi
push edx
call fcn.0043f1c0
cmp eax, 0x10
jb 0x4400e8
lea eax, [ebp - 0x58]
lea ecx, [esi + 0x40c]
push eax
push edi
push 0x4e6634
push 0xfff
push ecx
call fcn.00466ca7
add esp, 0x14
push 0x2ba
jmp 0x440135
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x58]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44014a
lea edx, [ebp - 0x45c]
mov ecx, esi
push edx
push eax
call fcn.00440b30
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x4e6610
lea ecx, [esi + 0x40c]
push 0xfff
push ecx
call fcn.00466ca7
add esp, 0x18
push 0x2c2
mov edx, dword [0x4d2880]
push str.ReadKey__
push edx
mov ecx, esi
call fcn.0043ff70
jmp 0x4401a6
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.0043f180
mov ecx, dword [ebp - 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00440060
cmp eax, 0x10
jb 0x44019c
lea edx, [ebp - 0x58]
lea eax, [esi + 0x40c]
push edx
push edi
push 0x4e65ec
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d2880]
add esp, 0x14
push 0x2c9
push str.ReadKey__
push ecx
mov ecx, esi
call fcn.0043ff70
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push 0
mov eax, ecx
inc ecx
mov dword [ebp - 4], ecx
push 0
push 0
lea ecx, [ebp + 0xc]
push 0
lea edx, [ebp - 0x58]
push ecx
push edx
push eax
push ebx
mov dword [ebp + 0xc], 0x41
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4400b3
cmp eax, 0x103
je 0x440211
lea ecx, [ebp - 0x45c]
push ecx
push eax
mov ecx, esi
call fcn.00440b30
push eax
push edi
push 0x4e65cc
lea edx, [esi + 0x40c]
push 0xfff
push edx
call fcn.00466ca7
add esp, 0x14
push 0x2d2
jmp 0x440395
push 0
lea ecx, [ebp - 0xc]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x44028a
lea edx, [ebp - 0x45c]
mov ecx, esi
push edx
push eax
call fcn.00440b30
push eax
push edi
push 0x4e65ac
lea eax, [esi + 0x40c]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d2880]
add esp, 0x14
push 0x2da
push str.ReadKey__
push ecx
mov ecx, esi
call fcn.0043ff70
mov eax, 0x10
lea esp, [ebp - 0x468]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
add eax, 3
and al, 0xfc
call fcn.00467540
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ebx, esp
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], edx
push ebx
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
push 0
lea eax, [ebp - 0x58]
push edx
push eax
push 0
push ecx
mov dword [ebp + 0xc], 0x41
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x44035f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x58]
push ebx
push ecx
mov ecx, edi
call fcn.0043f340
cmp eax, 0x10
jb 0x440323
lea edx, [ebp - 0x58]
lea eax, [esi + 0x40c]
push edx
push edi
push 0x4e6594
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d2880]
add esp, 0x14
push 0x2e7
push str.ReadKey__
push ecx
mov ecx, esi
call fcn.0043ff70
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, ecx
inc ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
push ecx
lea edx, [ebp - 0x14]
push ebx
push edx
lea ecx, [ebp + 0xc]
push 0
lea edx, [ebp - 0x58]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0xc], 0x41
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4402d4
cmp eax, 0x103
je 0x4403bb
lea ecx, [ebp - 0x45c]
push ecx
push eax
mov ecx, esi
call fcn.00440b30
push eax
push edi
push 0x4e6574
lea edx, [esi + 0x40c]
push 0xfff
push edx
call fcn.00466ca7
add esp, 0x14
push 0x2f0
mov eax, dword [0x4d2880]
push str.ReadKey__
push eax
mov ecx, esi
call fcn.0043ff70
mov eax, 0x10
lea esp, [ebp - 0x468]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
lea esp, [ebp - 0x468]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4e6560
lea ecx, [esi + 0x40c]
push 0xfff
push ecx
call fcn.00466ca7
mov edx, dword [0x4d2880]
add esp, 0xc
mov ecx, esi
push 0x2af
push str.ReadKey__
push edx
call fcn.0043ff70
lea esp, [ebp - 0x468]
mov eax, 0x51
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8