Function at 0x405950
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5645bc]
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.0043bb10
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.0043bb10
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.0043bb10
add esp, 8
mov byte [ebp - 4], 2
push 0x5129c0
lea eax, [ebp - 0x2c]
push eax
call fcn.00407e20
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.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
mov eax, dword [ebp - 0x200]
jmp 0x405ec3
push 0x5129c4
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e00
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.00401e80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x80], eax
jmp 0x405aa9
push 0x5129d8
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e00
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.00401e80
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.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
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.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
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.0045acac
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.00463f00
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.004e0b6b
add esp, 4
mov dword [ebp - 0x214], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
mov eax, dword [ebp - 0x214]
jmp 0x405ec3
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0043bc30
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.00403a00
lea edx, [ebp - 0x1e0]
push edx
push str.DisplayName
lea ecx, [ebp - 0xa8]
call fcn.004020d0
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.004020d0
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea eax, [ebp - 0x1a8]
push eax
push 0x512a04
lea ecx, [ebp - 0xa8]
call fcn.004020d0
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.004020d0
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.004020d0
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.004020d0
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea edx, [ebp - 0x138]
push edx
push 0x5128d3
lea ecx, [ebp - 0xa8]
call fcn.004020d0
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00405590
lea ecx, [ebp - 0x100]
push ecx
push 0x5128fe
lea ecx, [ebp - 0xa8]
call fcn.004020d0
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.004020d0
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.004020d0
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.004e0b6b
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.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
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.00463ee8
mov esp, ebp
pop ebp
ret 0xc