Function at 0x40d840
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423ceb
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x610
dec eax
cmp eax, 0xa
push esi
push edi
mov esi, ecx
ja case.default.0x40d86d
jmp dword [eax*4 + 0x40db1c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
lea edx, [esp + 0x218]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push 0x42f83c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne case.default.0x40d86d
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x40d912
mov eax, dword [esp + 8]
cmp eax, 0x104
jae 0x40d912
lea edx, [esp + 0x218]
push edx
push 0x42a954
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0
push str.Q360SDClass
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0041ff80
add esp, 0x10
jmp 0x40db00
mov ecx, esi
call fcn.0040e110
jmp 0x40db00
mov ecx, esi
call fcn.0040e480
jmp 0x40db00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x208
push edx
push str.7A113666_6FED_4AC9_891C_D74E6BBCD6B0
stosb byte es:[edi], al
call fcn.004203b0
add esp, 0xc
lea eax, [esp + 0x10]
push str...uiscan.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, esi
call fcn.0040db50
jmp 0x40db00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x208
push edx
push str.7A113666_6FED_4AC9_891C_D74E6BBCD6B0
stosb byte es:[edi], al
call fcn.004203b0
add esp, 0xc
lea eax, [esp + 0x10]
push str...history.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, esi
call fcn.0040db50
jmp 0x40db00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x208
push edx
push str.7A113666_6FED_4AC9_891C_D74E6BBCD6B0
stosb byte es:[edi], al
call fcn.004203b0
add esp, 0xc
lea eax, [esp + 0x10]
push str..._bdwizreg.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10]
push str._update
push ecx
mov ecx, esi
call fcn.0040db50
jmp 0x40db00
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x208
push edx
push str.7A113666_6FED_4AC9_891C_D74E6BBCD6B0
stosb byte es:[edi], al
call fcn.004203b0
add esp, 0xc
lea eax, [esp + 0x10]
push str..._bdwizreg.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, esi
call fcn.0040db50
jmp 0x40db00
push 0
mov ecx, esi
call fcn.0040e790
jmp 0x40db00
push 1
mov ecx, esi
call fcn.0040e790
jmp 0x40db00
push 2
mov ecx, esi
call fcn.0040e790
jmp 0x40db00
mov dword [esp + 8], 0
lea edx, [esp + 8]
mov dword [esp + 0x620], 0
push edx
push 0x42a8d8
push 0x17
push 0
push 0x4258d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 8]
test eax, eax
je case.default.0x40d86d
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov dword [esp + 0x620], 0xffffffff
test eax, eax
je 0x40daf7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
jmp 0x40db00
xor eax, eax
mov ecx, dword [esp + 0x618]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x61c
ret 4