Function at 0x404790
Capabilities:
Get common file path
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
sub esp, 0xd0c
lea eax, [esp + 0xb0c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
push 0
push 0x19
push eax
mov ebp, ecx
push 0
call esi
push 0
lea ecx, [esp + 0x920]
push 0
push ecx
push 0
call esi
lea ebx, [ebp + 0x30c]
lea edx, [esp + 0x91c]
push ebx
push edx
mov ecx, ebp
call fcn.00404340
lea eax, [esp + 0xb1c]
push ebx
push eax
mov ecx, ebp
call fcn.00404340
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x31c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x31c]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x4216bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x71c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x31c]
push ecx
push 0x200
push edx
push 0x424bf0
push str.PATH_ENG
push str.LANG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4048fb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c26b
mov byte [eax + 1], 0
lea edi, [esp + 0x724]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00401a90
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4049ab
lea ecx, [esp + 0x31c]
lea edx, [esp + 0x71c]
push ecx
push 0x200
push edx
push 0x424bf0
push str.PATH_ESP
push str.LANG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x404b6f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c26b
mov byte [eax + 1], 0
lea edi, [esp + 0x724]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00401a90
test eax, eax
mov dword [esp + 0x10], eax
je 0x404b6f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x51c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x520]
push ecx
call fcn.0040c26b
mov byte [eax + 1], 0
mov edi, str.Setup90.exe
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x51c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
push 0
push 0x1f0fff
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404a42
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x91c]
push ecx
push edx
mov ecx, ebp
call fcn.00404340
lea eax, [esp + 0x18]
lea ecx, [esp + 0xb1c]
push eax
push ecx
mov ecx, ebp
call fcn.00404340
lea edx, [esp + 0x51c]
mov ecx, ebp
push edx
call fcn.00401a90
test eax, eax
mov dword [esp + 0x10], eax
je 0x404b6f
push ebx
mov ecx, ebp
call fcn.00404450
lea edi, [esp + 0x51c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x404b3c
mov esi, dword [esp + 0x14]
add ebp, 0x510
push ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21c]
push ebp
lea edx, [esp + 0x220]
push str.__s__Cleanup__s
push edx
rep stosd dword es:[edi], eax
call fcn.0040c6b2
add esp, 0x10
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x218]
push eax
push ecx
push 1
push 0
push str.InstallAol
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x404b3c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404b64
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x404b6f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0c
ret