Function at 0x401613
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x140], 0xffffffff
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x30], 0
je 0x401674
cmp dword [ebp - 8], 1
ja 0x40167e
mov eax, 0xfffffffc
jmp 0x4018fe
cmp dword [ebp + 8], 0x20
jbe 0x40168e
mov eax, 0xfffffffc
jmp 0x4018fe
lea edx, [ebp - 0x28]
push edx
call fcn.00401258
add esp, 4
test eax, eax
jne 0x4016a8
mov eax, 0xfffffffd
jmp 0x4018fe
lea eax, [ebp - 0x138]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x28]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4016e3
mov dword [ebp - 0x138], 0
jmp 0x4018f9
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x40171a
mov dword [ebp - 0xc], 0
jmp 0x4018f4
lea edx, [ebp - 0x13c]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x401754
mov dword [ebp - 0x13c], 0
jmp 0x4018ef
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x40178b
mov dword [ebp - 4], 0
jmp 0x4018ed
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x154]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x158]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4017e0
mov dword [ebp - 0x158], 0
jmp 0x4018eb
mov dword [ebp - 0x144], 0x104
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x401823
jmp 0x4018e9
cmp dword [ebp - 0x2c], 1
je 0x401838
mov dword [ebp - 0x148], 0x103
jmp 0x4018e7
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp + 0x10]
jbe 0x401852
mov dword [ebp - 0x140], 0xfffffffc
jmp 0x4018e5
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00406c70
add esp, 8
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x158], 0
je 0x401885
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x401895
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x13c], 0
je 0x4018ab
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x4018bb
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x138], 0
je 0x4018d1
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
call fcn.004011bb
add esp, 4
mov eax, dword [ebp - 0x140]
jmp 0x4018fe
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
jmp 0x40186f
mov esp, ebp
pop ebp
ret