Function at 0x405590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507e72
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x5635bc]
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.00462710
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.0043a6e0
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.0043a6e0
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.00401cf0
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 0x4056bc
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 0x405928
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.00401cf0
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 0x40574f
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 0x405928
cmp dword [ebp - 0x244], 0
je 0x40579b
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 0x405928
cmp dword [ebp - 0x268], 1
je 0x4057e7
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 0x405928
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
call fcn.004594ac
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.00462710
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.00401cf0
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 0x4058c0
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.004dfe66
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 0x405928
mov edx, dword [ebp - 0x224]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00408d50
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.004dfe66
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.004626fa
mov esp, ebp
pop ebp
ret 0x10