Function at 0x405950
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x214
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 - 0x220], ecx
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043a6e0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406fb0
add eax, 0x1c
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0043a6e0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00406fb0
add eax, 0x38
push eax
lea edx, [ebp - 0x60]
push edx
call fcn.0043a6e0
add esp, 8
mov byte [ebp - 4], 2
push 0x5119d0
lea eax, [ebp - 0x2c]
push eax
call fcn.00407e50
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405a29
mov dword [ebp - 0x200], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov eax, dword [ebp - 0x200]
jmp 0x405ec3
push 0x5119d4
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e30
add esp, 8
movzx edx, al
test edx, edx
je 0x405a6a
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x7c]
call fcn.00401cf0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x80], eax
jmp 0x405aa9
push 0x5119e8
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405aa9
lea edx, [ebp - 0x30]
push edx
push 0xf003f
push 0
lea ecx, [ebp - 0x7c]
call fcn.00401cf0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x405aeb
mov dword [ebp - 0x204], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov eax, dword [ebp - 0x204]
jmp 0x405ec3
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x405b67
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x208], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov eax, dword [ebp - 0x208]
jmp 0x405ec3
mov eax, dword [ebp - 0x3c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004594ac
add esp, 4
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], 0
jmp 0x405bbc
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
jae 0x405e6a
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.00462710
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x405c7a
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.004dfe66
add esp, 4
mov dword [ebp - 0x214], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov eax, dword [ebp - 0x214]
jmp 0x405ec3
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0043a800
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fc]
call fcn.00406c60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x1fc]
call fcn.004039e0
lea edx, [ebp - 0x1e0]
push edx
push str.DisplayName
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea ecx, [ebp - 0x1c4]
push ecx
push str.Publisher
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea eax, [ebp - 0x1a8]
push eax
push 0x511a14
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea edx, [ebp - 0x18c]
push edx
push str.DisplayVersion
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea ecx, [ebp - 0x170]
push ecx
push str.InstallLocation
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea eax, [ebp - 0x154]
push eax
push str.UninstallString
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea edx, [ebp - 0x138]
push edx
push 0x5118e3
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea ecx, [ebp - 0x100]
push ecx
push 0x51190e
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea eax, [ebp - 0xe4]
push eax
push str.lastdefbrowser
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea edx, [ebp - 0xc8]
push edx
push str.WorkPath
lea ecx, [ebp - 0xa8]
call fcn.00403a00
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00407060
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fc]
call fcn.00406d70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00401c50
jmp 0x405bad
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
push eax
call fcn.004dfe66
add esp, 4
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cc0
mov eax, dword [ebp - 0x21c]
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 0xc