Function at 0x4a8470
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e809
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x54b144]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
push eax
call fcn.004dcc10
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004e44a6
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x21c]
add esp, 0x18
push eax
call edi
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.0044f380
push str._INSTDIR
lea ecx, [ebp - 0x63c]
call fcn.0044f000
push ebx
lea eax, [ebp - 0x63c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0048cea0
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c000
push ebx
lea ecx, [ebp - 0x644]
call fcn.0048cc30
lea eax, [ebp - 0x644]
mov dword [ebp - 4], 1
push eax
call fcn.004855c0
add esp, 4
lea ecx, [ebp - 0x63c]
push str._PLUGINSDIR
call fcn.0044f000
push str.Plugins
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.0048bbf0
add esp, 0xc
push eax
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0048cea0
lea ecx, [ebp - 0x638]
call fcn.0044c000
lea ecx, [ebp - 0x63c]
call fcn.0044c000
lea ecx, [ebp - 0x63c]
call fcn.0047d0b0
push 0x20a
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004dcc10
add esp, 0xc
push 0
push 0x1a
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x428]
push eax
push 0
call esi
lea eax, [ebp - 0x428]
push eax
call edi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x63c]
call fcn.0044f380
push str._APPDATA_USER
lea ecx, [ebp - 0x640]
call fcn.0044f000
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0048cea0
lea ecx, [ebp - 0x640]
call fcn.0044c000
lea ecx, [ebp - 0x640]
call fcn.0047d0b0
push 0x20a
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x634]
push 0
push 0x23
push eax
push 0
call esi
lea eax, [ebp - 0x634]
push eax
call edi
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x640]
call fcn.0044f380
push str._APPDATA_ALLUSER
lea ecx, [ebp - 0x638]
call fcn.0044f000
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0048cea0
lea ecx, [ebp - 0x638]
mov byte [ebp - 4], 6
call fcn.0044c000
mov ecx, ebx
call fcn.004a88b0
lea ecx, [ebp - 0x638]
push str._SYSTEMTYPE
test eax, eax
je 0x4a872e
call fcn.0044f000
push 0x5323dc
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0044f380
lea ecx, [ebp - 0x638]
mov byte [ebp - 4], 6
call fcn.0044c000
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x638]
call fcn.0044f000
mov byte [ebp - 4], 9
push str.i386
jmp 0x4a877a
call fcn.0044f000
push 0x515cc4
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0044f380
lea ecx, [ebp - 0x638]
mov byte [ebp - 4], 6
call fcn.0044c000
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x638]
call fcn.0044f000
mov byte [ebp - 4], 0xb
push 0x515ccc
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebx + 8]
call fcn.004a7080
mov ecx, eax
call fcn.0044f380
lea ecx, [ebp - 0x638]
call fcn.0044c000
lea ecx, [ebp - 0x640]
call fcn.0044c000
lea ecx, [ebp - 0x63c]
call fcn.0044c000
lea ecx, [ebp - 0x644]
call fcn.0044c000
mov eax, 1
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.004dafe6
mov esp, ebp
pop ebp
ret 4