Function at 0x409cc0
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [ebp + 0x504]
call fcn.00401790
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [ebp + 0x550]
mov esi, 2
cmp eax, esi
je 0x409cfd
mov eax, dword [ebp + 0x4fc]
push esi
push eax
mov ecx, ebp
call fcn.00409260
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0x2001f
stosw word es:[edi], ax
push 0
push str.SOFTWARE_storm
push SysReAllocStringLen
mov dword [esp + 0x24], 1
stosb byte es:[edi], al
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d96
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.installPackage
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x554]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
push str.upgradeComplete
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x554]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409db9
mov ecx, dword [ebp + 0x20]
push 0
push 0xf060
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea edx, [esp + 0x120]
push 0x23
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x409df7
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x11c]
push str.StormPackage_
push eax
call edi
mov ecx, dword [ebp + 0x554]
lea edx, [esp + 0x11c]
push ecx
push edx
call edi
call fcn.00409c10
mov byte [esp + 0x14], al
lea ecx, [esp + 0x11c]
mov eax, dword [esp + 0x14]
push eax
push 0
push ecx
call fcn.00409c40
add esp, 0xc
test eax, eax
jne 0x409e3a
mov edx, dword [ebp + 0x20]
push eax
push 0xf060
push 0x112
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
add esp, 0x214
ret
push ebx
lea ebx, [ebp + 0x310]
mov ecx, 0x7a
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx], 0x1e8
mov dword [ebp + 0x314], eax
mov eax, dword [ebp + 0x550]
cmp eax, esi
mov dword [ebp + 0x318], 0x89
mov dword [ebp + 0x31c], 0x17
mov dword [ebp + 0x320], 0x186a0
jne 0x409ebf
mov edi, 0x4108f0
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x4f4], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x3b0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x4b0], 0x1388
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x89
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x324], eax
mov edi, 0x4108d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x328]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [ebp + 0x20]
push 0
push 0x1f4
push 0x383
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret