Function at 0x405490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 8]
mov ecx, 0x41
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 0x4b0], ebx
lea ebp, [esi + 0x10c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x138]
push eax
call fcn.004104d0
add esp, 8
lea ecx, [esp + 0x134]
lea edx, [esi + 0x3a4]
push 0x439c3c
push ecx
push str._s_s.ini
push edx
call fcn.00426b7c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
mov dword [esp + 0x10], ebx
stosb byte es:[edi], al
push 0x439c3c
lea eax, [esp + 0x34]
push str.SOFTWARERising_s
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405677
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
push ebx
push str.installpath
push edx
mov dword [esp + 0x28], 0x104
call edi
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1d], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x21], eax
push ecx
mov dword [esp + 0x29], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2d], eax
push edx
mov word [esp + 0x35], ax
mov byte [esp + 0x24], bl
mov byte [esp + 0x37], al
lea eax, [esp + 0x20]
push eax
push ebx
push str.type
push ecx
mov dword [esp + 0x28], 0x14
call edi
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4055f7
lea edx, [esp + 0x1c]
push edx
call fcn.00426f4d
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [esi + 8]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push str.group
push edx
mov dword [esp + 0x28], 0x104
call edi
lea eax, [esp + 0x10]
lea ecx, [esi + 0x4b4]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.name
push eax
mov dword [esp + 0x28], 0x104
call edi
lea ecx, [esp + 0x10]
lea edx, [esi + 0x384]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push str.version
push ecx
mov dword [esp + 0x28], 0x20
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40573c
mov edi, dword [esi + 0x4ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x405720
mov ecx, 0x40
lea edi, [esp + 0x239]
mov byte [esp + 0x238], bl
push str.XMLS
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x240]
push str._s_s
push eax
call fcn.00426b7c
mov edx, dword [esi + 0x4a8]
add esp, 0x10
lea ecx, [esp + 0x238]
push ebx
push ecx
push edx
mov ecx, 0x4397a8
call fcn.0040ae30
test eax, eax
je 0x4056ff
mov eax, dword [esi + 0x4a8]
add eax, 0x28
mov dword [esi + 0x4ac], eax
jmp 0x405720
mov eax, dword [esi + 4]
sub eax, 8
je 0x405716
sub eax, 2
mov dword [esi + 0x4ac], 0x435258
jmp 0x405720
mov dword [esi + 0x4ac], str.Rising_AntiVirus_Software_2005_NET
mov edi, dword [esi + 0x4ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40573c
mov dword [esi + 0x4b0], 1
mov eax, dword [esi + 0x4b0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret