Function at 0x41e050
Capabilities:
Create directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp edx, ebx
push edi
mov edi, ecx
je 0x41e1ff
cmp esi, ebx
je 0x41e1ff
cmp eax, ebx
je 0x41e113
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 1
call fcn.00401a90
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x24]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e106
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push str.installpath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x41e26b
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x41e170
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0xc], eax
je 0x41e168
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x41e25c
push esi
neg edi
sbb edi, edi
push 1
push 0
and edi, 7
add edi, 0x1c
push edi
push 0
call ebx
test eax, eax
jl 0x41e25c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x41e25c
mov eax, dword [ebp + 0xc]
push str.Rising
push eax
push esi
mov ebx, 1
call fcn.00401b10
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov al, byte [esp + 0x18]
je 0x41e1ca
test al, 0x10
jne 0x41e1e0
test al, 0x10
jne 0x41e1d5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
cmp edi, 0xffffffff
je 0x41e1ec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x41e207
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e1ff
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push 0x43d854
push edi
push esi
call fcn.00401b10
mov edx, dword [ebp + 8]
push edx
push edi
push esi
call fcn.00401b10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov al, byte [esp + 0x18]
je 0x41e23c
test al, 0x10
jne 0x41e250
test al, 0x10
jne 0x41e247
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp edi, 0xffffffff
je 0x41e25c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e26b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret