Function at 0x416128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d38c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov dword [ebp - 0x44c], ecx
push 0x4611e0
call fcn.00401000
add esp, 4
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x218]
call fcn.00404590
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4161a9
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov eax, dword [ebp - 0x430]
jmp 0x4165ca
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x44c]
call fcn.00417654
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x218]
call fcn.0043e01c
mov dword [ebp - 0x31c], 0
jmp 0x4161ec
mov eax, dword [ebp - 0x31c]
add eax, 1
mov dword [ebp - 0x31c], eax
mov ecx, 0x46c47c
call fcn.00404660
cmp dword [ebp - 0x31c], eax
jge 0x41638d
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
lea eax, [ebp - 0x438]
push eax
mov ecx, 0x46c47c
call fcn.00404680
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x454], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x454]
push edx
call fcn.00406240
mov byte [ebp - 0x434], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.0043de93
mov eax, dword [ebp - 0x434]
and eax, 0xff
test eax, eax
je 0x416388
mov ecx, dword [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x43c]
push edx
mov ecx, 0x46c4a4
call fcn.00404680
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x45c]
call fcn.00404600
push eax
lea ecx, [ebp - 0x42c]
call fcn.0043df01
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.0043de93
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x46c490
call fcn.00404680
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov edx, dword [ecx]
push edx
push 0x461214
lea eax, [ebp - 0x210]
push eax
call fcn.0042ada4
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.0043de93
push 0x100
push 0
lea ecx, [ebp - 0x318]
push ecx
call fcn.0042aa90
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.00404610
cmp eax, 0x100
jae 0x416344
lea ecx, [ebp - 0x42c]
call fcn.00404610
mov dword [ebp - 0x464], eax
jmp 0x41634e
mov dword [ebp - 0x464], 0xff
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00404600
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0042a840
add esp, 0xc
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.0043de93
jmp 0x41638d
jmp 0x4161dd
cmp dword [ebp - 0x10], 0
jne 0x4163c7
push 0x46121c
call fcn.00401000
add esp, 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov eax, dword [ebp - 0x444]
jmp 0x4165ca
lea ecx, [ebp - 0x210]
push ecx
push 0x461234
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x428]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416585
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x214], 0x100
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x320]
push eax
push 0
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41656f
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax + 0x410]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a790
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 0x461260
call fcn.00401000
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042a790
add esp, 4
test eax, eax
ja 0x416563
push 0x461294
lea edx, [ebp - 0x318]
push edx
call fcn.0042a2c0
add esp, 8
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x214], 0x100
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x320]
push edx
push 0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41654d
lea edx, [ebp - 0x110]
push edx
push 0x4612a0
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.0042a790
add esp, 4
test eax, eax
jbe 0x416541
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a2c0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0042a790
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4612cc
call fcn.00401000
add esp, 0xc
mov dword [ebp - 0x424], 1
jmp 0x41654b
mov dword [ebp - 0x424], 0
jmp 0x416561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x461304
call fcn.00401000
add esp, 8
jmp 0x41656d
mov dword [ebp - 0x424], 1
jmp 0x416583
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46134c
call fcn.00401000
add esp, 8
jmp 0x416599
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46138c
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043de93
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8