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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45986b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x4641d4
mov dword [ebp - 0x38], 0
push 0x4641ec
lea ecx, [ebp - 0x10]
call fcn.00402580
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040b430
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409cfb
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x144], 0
push 0x103
push 0
lea edx, [ebp - 0x143]
push edx
call fcn.004463a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409c8f
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x264]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b4f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.00403140
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
jmp 0x409c91
jmp 0x409c9a
mov eax, 1
test eax, eax
jne 0x409c24
mov dword [ebp - 0x14c], 0
jmp 0x409cb5
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
cmp edx, dword [ebp - 0x148]
jae 0x409cf1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b4c0
push eax
call fcn.0040b3f0
add esp, 8
movzx edx, al
test edx, edx
je 0x409cef
mov dword [ebp - 0x30], 1
jmp 0x409cf1
jmp 0x409ca6
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 1
jne 0x409dbb
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x150], 0x464228
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x150]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409d45
mov dword [ebp - 0x30], 0
jmp 0x409dbb
mov byte [ebp - 0x25c], 0
push 0x103
push 0
lea eax, [ebp - 0x25b]
push eax
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x260], 0x104
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x25c]
push edx
push 0
push 0
push 0x46421c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409d98
jmp 0x409dbb
push str.10110714
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x26c]
call fcn.00407e60
cmp eax, 1
jne 0x409dbb
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040b4a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403140
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret