Function at 0x40a920
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1772
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x56f734]
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.00405b20
lea eax, [ebp - 0x41c]
push eax
push 0x20119
push 0
mov ecx, dword [ebp + 0x10]
call fcn.004147c0
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40aa31
mov dword [ebp - 0x420], 0
mov eax, 1
test eax, eax
je 0x40aa31
push 0x200
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40a9d1
jmp 0x40aa31
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x458]
call fcn.00414370
mov dword [ebp - 0x430], eax
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x438], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp + 8]
call fcn.004101f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.004142e0
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
jmp 0x40a993
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0x10]
call fcn.004147c0
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40ab9c
mov dword [ebp - 0x428], 0
mov eax, 1
test eax, eax
je 0x40ab9c
push 0x200
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40aabf
jmp 0x40ab9c
mov byte [ebp - 0x411], 0
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405ae0
jmp 0x40aae2
lea ecx, [ebp - 0x424]
call fcn.004055b0
lea edx, [ebp - 0x440]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405b00
push eax
lea ecx, [ebp - 0x424]
call fcn.004a5c00
movzx eax, al
test eax, eax
je 0x40ab31
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x424]
call fcn.004a5e90
push eax
call fcn.0040f230
add esp, 8
movzx edx, al
test edx, edx
je 0x40ab2f
mov byte [ebp - 0x411], 1
jmp 0x40ab31
jmp 0x40aad7
movzx eax, byte [ebp - 0x411]
test eax, eax
jne 0x40ab88
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x44c]
call fcn.00414370
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x434], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp + 8]
call fcn.004101f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.004142e0
mov ecx, dword [ebp - 0x428]
add ecx, 1
mov dword [ebp - 0x428], ecx
jmp 0x40aa7e
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.0040f8f0
movzx eax, al
test eax, eax
jne 0x40abc4
mov dword [ebp - 0x42c], 1
jmp 0x40abce
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.004df9ac
mov esp, ebp
pop ebp
ret