Function at 0x404b50
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ea7b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.0052f600
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jl 0x404cff
push str._PROGRAMFILES
push eax
call fcn.00530b86
add esp, 8
cmp eax, ebx
je 0x404cff
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x404cff
push 0xff
lea ecx, [ebp - 0x21b]
push ebx
push ecx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x21c], bl
call fcn.0052f600
add esp, 0xc
mov dword [ebp - 0x230], 0x100
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
lea ecx, [ebp - 0x228]
call fcn.004026d0
test eax, eax
jne 0x404c7d
lea edx, [ebp - 0x230]
push edx
push str.Local_AppData
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401240
test eax, eax
jne 0x404c54
mov dword [ebp - 0x22c], 1
mov edi, dword [ebp - 0x228]
cmp edi, ebx
je 0x404c6d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
cmp dword [ebp - 0x22c], ebx
jne 0x404cce
jmp 0x404c83
mov edi, dword [ebp - 0x228]
push 0x100
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
xor eax, eax
push ebx
push ebx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov byte [ebp - 0x13], al
push edx
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x1c], bl
call fcn.0053000e
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x21c]
push str._sProgram_Files
push edx
call fcn.00531502
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
push str._PROGRAMFILES
mov ecx, esi
call fcn.00403dc0
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x404cf9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x404d44
push str._WINDOWS
push eax
call fcn.00530b86
add esp, 8
cmp eax, ebx
je 0x404d44
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x404d44
push 0x100
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
push str._WINDOWS
mov ecx, esi
call fcn.00403dc0
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x404d89
push str._SYSTEM32
push eax
call fcn.00530b86
add esp, 8
cmp eax, ebx
je 0x404d89
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x404d89
push 0x100
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x11c]
push ecx
push str._SYSTEM32
mov ecx, esi
call fcn.00403dc0
push 0x565058
push 0x565054
mov ecx, esi
call fcn.00403dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret