Function at 0x4165da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d3de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
mov dword [ebp - 0x458], ecx
push 0x4613c8
call fcn.00401000
add esp, 4
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x21c]
call fcn.00404590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.00404590
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x416649
cmp dword [ebp + 0xc], 0
jne 0x41667f
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043de93
mov eax, dword [ebp - 0x430]
jmp 0x416b8b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x458]
call fcn.00417654
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0043e01c
mov dword [ebp - 0x320], 0
jmp 0x4166c2
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, 0x46c47c
call fcn.00404660
cmp dword [ebp - 0x320], eax
jge 0x4168a9
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x434]
push eax
mov ecx, 0x46c47c
call fcn.00404680
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x460], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x460]
mov eax, dword [edx]
push eax
push 0x4613f8
call fcn.00401000
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x434]
call fcn.0043de93
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x43c]
push eax
mov ecx, 0x46c47c
call fcn.00404680
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x468], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x468]
push edx
call fcn.00406240
mov byte [ebp - 0x438], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.0043de93
mov eax, dword [ebp - 0x438]
and eax, 0xff
test eax, eax
je 0x4168a4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x46c490
call fcn.00404680
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx]
push edx
push 0x461448
lea eax, [ebp - 0x210]
push eax
call fcn.0042ada4
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.0043de93
mov ecx, dword [ebp - 0x320]
push ecx
lea edx, [ebp - 0x444]
push edx
mov ecx, 0x46c4a4
call fcn.00404680
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x474]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0043dfcc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.0043de93
push 0x100
push 0
lea edx, [ebp - 0x31c]
push edx
call fcn.0042aa90
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404610
cmp eax, 0x100
jae 0x41686f
lea ecx, [ebp - 0x218]
call fcn.00404610
mov dword [ebp - 0x478], eax
jmp 0x416879
mov dword [ebp - 0x478], 0xff
mov eax, dword [ebp - 0x478]
push eax
lea ecx, [ebp - 0x218]
call fcn.00404600
push eax
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0042a840
add esp, 0xc
mov dword [ebp - 0x10], 1
jmp 0x4168a9
jmp 0x4166b3
cmp dword [ebp - 0x10], 0
jne 0x4168f2
push 0x461450
call fcn.00401000
add esp, 4
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043de93
mov eax, dword [ebp - 0x448]
jmp 0x416b8b
lea edx, [ebp - 0x210]
push edx
push 0x461468
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x210]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416aeb
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x214], 0x100
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x324]
push ecx
push 0
lea edx, [ebp - 0x31c]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416ad5
push 0x46cf00
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042ad20
add esp, 8
test eax, eax
je 0x4169a4
lea edx, [ebp - 0x110]
push edx
call fcn.0042a790
add esp, 4
test eax, eax
jne 0x416ac9
mov eax, dword [ebp - 0x320]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, 0x46c4b8
call fcn.00404680
mov dword [ebp - 0x47c], eax
mov edx, dword [ebp - 0x47c]
mov dword [ebp - 0x480], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x480]
push eax
lea ecx, [ebp - 0x218]
call fcn.0043dfcc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.0043de93
push 0x100
push 0
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0042aa90
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404610
cmp eax, 0x100
jae 0x416a2e
lea ecx, [ebp - 0x218]
call fcn.00404610
mov dword [ebp - 0x484], eax
jmp 0x416a38
mov dword [ebp - 0x484], 0xff
mov edx, dword [ebp - 0x484]
push edx
lea ecx, [ebp - 0x218]
call fcn.00404600
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.0042a840
add esp, 0xc
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x214], 0x100
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x324]
push eax
push 0
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x416abd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x461494
call fcn.00401000
add esp, 8
mov dword [ebp - 0x428], 0
jmp 0x416ac7
mov dword [ebp - 0x428], 1
jmp 0x416ad3
mov dword [ebp - 0x428], 1
jmp 0x416ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4614dc
call fcn.00401000
add esp, 8
jmp 0x416aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46151c
call fcn.00401000
add esp, 8
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x428], 0
je 0x416b5a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x458]
call fcn.004185e1
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043de93
mov eax, dword [ebp - 0x450]
jmp 0x416b8b
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043de93
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8