Function at 0x405cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509742
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], ecx
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00463a20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x284]
call fcn.00401c10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x284]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.0043b6d0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
call fcn.00401c50
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00401c10
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.0043b6d0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a0]
call fcn.00401c50
lea ecx, [ebp - 0x264]
push ecx
push 0xf003f
push 0
lea ecx, [ebp - 0x260]
call fcn.00401e70
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x405e1c
mov dword [ebp - 0x2a4], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2a4]
jmp 0x406088
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x268]
push ecx
push 0
lea ecx, [ebp - 0x240]
call fcn.00401e70
push eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 2
jne 0x405eaf
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2a8]
jmp 0x406088
cmp dword [ebp - 0x244], 0
je 0x405efb
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2ac], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2ac]
jmp 0x406088
cmp dword [ebp - 0x268], 1
je 0x405f47
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2b0]
jmp 0x406088
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
call fcn.0045a611
add esp, 4
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x220]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x224]
push eax
call fcn.00463a20
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x268]
push eax
push 0
lea ecx, [ebp - 0x240]
call fcn.00401e70
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x406020
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.0045a60c
add esp, 4
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2bc], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2bc]
jmp 0x406088
mov edx, dword [ebp - 0x224]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00409460
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.0045a60c
add esp, 4
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00401cc0
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463a0b
mov esp, ebp
pop ebp
ret 0x10