Function at 0x40f490
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651332
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x750990]
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.00409370
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.0062db60
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 0x20119
push 0
mov ecx, dword [ebp + 0x10]
call fcn.0041ae70
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 0x40f5c0
mov dword [ebp - 0x420], 0
mov edx, 1
test edx, edx
je 0x40f5c0
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 0x40f560
jmp 0x40f5c0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041aa50
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.00415780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.0041a9d0
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
jmp 0x40f522
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.0041ae70
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 0x40f72b
mov dword [ebp - 0x428], 0
mov edx, 1
test edx, edx
je 0x40f72b
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 0x40f64e
jmp 0x40f72b
mov byte [ebp - 0x411], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409330
jmp 0x40f671
lea ecx, [ebp - 0x424]
call fcn.0047cde0
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409350
push eax
lea ecx, [ebp - 0x424]
call fcn.004b1130
movzx edx, al
test edx, edx
je 0x40f6c0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
call fcn.004b1530
push eax
call fcn.004141c0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40f6be
mov byte [ebp - 0x411], 1
jmp 0x40f6c0
jmp 0x40f666
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x40f717
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x44c]
call fcn.0041aa50
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.00415780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.0041a9d0
mov eax, dword [ebp - 0x428]
add eax, 1
mov dword [ebp - 0x428], eax
jmp 0x40f60d
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00414e60
movzx edx, al
test edx, edx
jne 0x40f753
mov dword [ebp - 0x42c], 1
jmp 0x40f75d
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.0062dc28
mov esp, ebp
pop ebp
ret