Function at 0x40e6b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62eaa2
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x721970]
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.004089a0
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.0060f700
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 0x20119
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00419160
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 0x40e7e0
mov dword [ebp - 0x420], 0
mov edx, 1
test edx, edx
je 0x40e7e0
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 0x40e780
jmp 0x40e7e0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x458]
call fcn.00418d40
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.00414880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00418cc0
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
jmp 0x40e742
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.00419160
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 0x40e94b
mov dword [ebp - 0x428], 0
mov edx, 1
test edx, edx
je 0x40e94b
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 0x40e86e
jmp 0x40e94b
mov byte [ebp - 0x411], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408960
jmp 0x40e891
lea ecx, [ebp - 0x424]
call fcn.00406cd0
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408980
push eax
lea ecx, [ebp - 0x424]
call fcn.00406bf0
movzx edx, al
test edx, edx
je 0x40e8e0
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
call fcn.004893a0
push eax
call fcn.004130c0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40e8de
mov byte [ebp - 0x411], 1
jmp 0x40e8e0
jmp 0x40e886
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x40e937
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00418d40
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.00414880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.00418cc0
mov eax, dword [ebp - 0x428]
add eax, 1
mov dword [ebp - 0x428], eax
jmp 0x40e82d
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00413f20
movzx edx, al
test edx, edx
jne 0x40e973
mov dword [ebp - 0x42c], 1
jmp 0x40e97d
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.0060f7c8
mov esp, ebp
pop ebp
ret