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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp edx, ebx
push esi
push edi
je 0x40d571
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x40d571
cmp dword [ebp + 0xc], ebx
je 0x40d477
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 0x40d469
mov eax, dword [ebp + 0x14]
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 esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x40d5db
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x40d4d6
push ebx
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 0x40d4ca
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
mov ebx, dword [esp + 0xc]
je 0x40d5d0
mov edx, dword [ebp + 0x18]
neg edx
push esi
sbb edx, edx
push 1
and edx, 7
push 0
add edx, 0x1c
push edx
push 0
call edi
test eax, eax
jl 0x40d5d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d5d0
mov ebx, dword [ebp + 0x14]
push str.Rising
push ebx
push esi
mov dword [esp + 0x1c], 1
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 0x40d536
test al, 0x10
jne 0x40d54e
test al, 0x10
jne 0x40d541
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x10], eax
cmp edi, 0xffffffff
je 0x40d55a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40d57a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d571
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x43d854
push ebx
push esi
call fcn.00401b10
mov ecx, dword [ebp + 8]
push ecx
push ebx
push esi
call fcn.00401b10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov al, byte [esp + 0x18]
je 0x40d5ac
test al, 0x10
jne 0x40d5c0
test al, 0x10
jne 0x40d5b7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp edi, 0xffffffff
je 0x40d5cc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x40d5db
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret