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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd8a1
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x67c], ecx
mov word [ebp - 0x43c], 0
push 0x208
push 0
lea eax, [ebp - 0x43a]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x43c]
push edx
call fcn.0049fb76
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, dword [ebp - 0x67c]
call fcn.004058b0
push str._INSTDIR
lea ecx, [ebp - 0x654]
call fcn.00405a00
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x67c]
push edx
lea eax, [ebp - 0x654]
push eax
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.00405d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.00417fc0
mov ecx, dword [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004057a0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
push edx
call fcn.00401e40
add esp, 4
push str._PLUGINSDIR
lea ecx, [ebp - 0x658]
call fcn.00405a00
mov byte [ebp - 4], 2
push str.Plugins
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x65c]
push ecx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x680], eax
mov edx, dword [ebp - 0x680]
mov dword [ebp - 0x684], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x684]
push eax
lea ecx, [ebp - 0x658]
push ecx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.00405d40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x65c]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x658]
call fcn.00417fc0
lea ecx, [ebp - 0x650]
call fcn.00417fe0
mov byte [ebp - 4], 4
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.0049d120
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x650]
call fcn.004058b0
push str._APPDATA_USER
lea ecx, [ebp - 0x660]
call fcn.00405a00
mov byte [ebp - 4], 5
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x660]
push ecx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.00405d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x660]
call fcn.00417fc0
lea ecx, [ebp - 0x228]
call fcn.00417fe0
mov byte [ebp - 4], 6
mov word [ebp - 0x64c], 0
push 0x208
push 0
lea edx, [ebp - 0x64a]
push edx
call fcn.0049d120
add esp, 0xc
push 0
push 0x23
lea eax, [ebp - 0x64c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x64c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x228]
call fcn.004058b0
push str._APPDATA_ALLUSER
lea ecx, [ebp - 0x664]
call fcn.00405a00
mov byte [ebp - 4], 7
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x664]
push ecx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.00405d40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x664]
call fcn.00417fc0
mov ecx, dword [ebp - 0x67c]
call fcn.00461a30
test eax, eax
je 0x4615d4
push 0x4c8940
lea ecx, [ebp - 0x668]
call fcn.00405a00
mov byte [ebp - 4], 8
push 0x4c8958
lea edx, [ebp - 0x668]
push edx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.004058b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x668]
call fcn.00417fc0
push 0x4c895c
lea ecx, [ebp - 0x66c]
call fcn.00405a00
mov byte [ebp - 4], 9
push str.i386
lea eax, [ebp - 0x66c]
push eax
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.004058b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x66c]
call fcn.00417fc0
jmp 0x46165c
push str._SYSTEMTYPE
lea ecx, [ebp - 0x670]
call fcn.00405a00
mov byte [ebp - 4], 0xa
push 0x4c899c
lea ecx, [ebp - 0x670]
push ecx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.004058b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x670]
call fcn.00417fc0
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x674]
call fcn.00405a00
mov byte [ebp - 4], 0xb
push 0x4c89c0
lea edx, [ebp - 0x674]
push edx
mov ecx, dword [ebp - 0x67c]
add ecx, 8
call fcn.00461c80
mov ecx, eax
call fcn.004058b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x674]
call fcn.00417fc0
mov dword [ebp - 0x678], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x650]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret 4