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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433a60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
je 0x40f7e1
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x40f7e1
cmp dword [ebp + 0xc], ebx
je 0x40f620
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str.SOFTWARERising_s
lea eax, [ebp - 0x11c]
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x11c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f601
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x120]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push str.installpath
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x128], 1
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x40f7c2
push str.SHGetFolderPathA
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov edi, eax
test edi, edi
jne 0x40f68b
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x40f683
push str.SHGetFolderPathA
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40f7b1
push esi
push 1
push 0
push 0x23
push 0
call edi
test eax, eax
jl 0x40f7b1
mov ebx, dword [ebp + 0x14]
push ebx
push 0x43775c
push esi
call fcn.0042a385
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x270], edi
cmp edi, 0xffffffff
je 0x40f6d4
test byte [ebp - 0x26c], 0x10
jne 0x40f715
test byte [ebp - 0x26c], 0x10
jne 0x40f706
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f6ff
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x128], eax
cmp edi, 0xffffffff
je 0x40f721
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x40f7b1
push ebx
push 0x437448
push esi
call fcn.0042a385
push ebx
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.0042a385
add esp, 0x18
lea edx, [ebp - 0x26c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x270], edi
cmp edi, 0xffffffff
je 0x40f76d
test byte [ebp - 0x26c], 0x10
jne 0x40f7a5
test byte [ebp - 0x26c], 0x10
jne 0x40f79c
mov dword [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f795
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp edi, 0xffffffff
je 0x40f7b1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x40f7c2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret