Function at 0x40b540
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3282
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004064a0
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x40e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 0x20119
push 0
mov ecx, dword [ebp + 0x10]
call fcn.004157f0
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40b670
mov dword [ebp - 0x420], 0
mov edx, 1
test edx, edx
je 0x40b670
push 0x200
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40b610
jmp 0x40b670
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x458]
call fcn.004153a0
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x438]
push edx
mov ecx, dword [ebp + 8]
call fcn.004112c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00415310
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
jmp 0x40b5d2
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x41c]
push edx
push 0x20219
push 0
mov ecx, dword [ebp + 0x10]
call fcn.004157f0
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40b7db
mov dword [ebp - 0x428], 0
mov edx, 1
test edx, edx
je 0x40b7db
push 0x200
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40b6fe
jmp 0x40b7db
mov byte [ebp - 0x411], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406460
jmp 0x40b721
lea ecx, [ebp - 0x424]
call fcn.00405e90
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406480
push eax
lea ecx, [ebp - 0x424]
call fcn.004a7170
movzx edx, al
test edx, edx
je 0x40b770
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
call fcn.0046a560
push eax
call fcn.0040ff60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40b76e
mov byte [ebp - 0x411], 1
jmp 0x40b770
jmp 0x40b716
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x40b7c7
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004153a0
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x434]
push edx
mov ecx, dword [ebp + 8]
call fcn.004112c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.00415310
mov eax, dword [ebp - 0x428]
add eax, 1
mov dword [ebp - 0x428], eax
jmp 0x40b6bd
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00410980
movzx edx, al
test edx, edx
jne 0x40b803
mov dword [ebp - 0x42c], 1
jmp 0x40b80d
mov dword [ebp - 0x42c], 0
mov al, byte [ebp - 0x42c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret