Function at 0x41ff50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2904
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x654], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x20a
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push 0x104
push eax
call fcn.004ae4a4
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ffd0
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041cd40
push str._INSTDIR
lea ecx, [ebp - 0x650]
call fcn.0041c9e0
lea ecx, [ebp - 0x650]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x64c]
push ecx
lea ecx, [edi + 8]
call fcn.00421330
mov ecx, dword [ebp - 0x64c]
push edi
lea ecx, [ecx + 0x14]
call fcn.0041c740
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x650]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420051
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0041c6e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x660], esi
mov dword [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x4200a9
lea eax, [ecx - 1]
test eax, eax
js 0x42015e
cmp eax, ecx
jg 0x42015e
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x4200a9
cmp eax, 0x2f
je 0x4200a9
push str.0s
lea ecx, [ebp - 0x660]
call fcn.0041c1b0
mov esi, dword [ebp - 0x660]
push str._PLUGINSDIR
lea ecx, [ebp - 0x650]
call fcn.0041c9e0
push str.Plugins
lea edx, [ebp - 0x660]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x648]
call fcn.0041c030
add esp, 4
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x650]
mov ecx, dword [ebp - 0x654]
push eax
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ecx + 8]
call fcn.00421330
mov ecx, dword [ebp - 0x65c]
add ecx, 0x14
push edi
call fcn.0041c740
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420128
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x650]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x420168
push 0x80004005
call fcn.0041ce60
push 0x80070057
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x650], eax
push 0x20a
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x434]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4201c0
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x650]
call fcn.0041cd40
push str._APPDATA_USER
lea ecx, [ebp - 0x648]
call fcn.0041c9e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x648]
mov edi, dword [ebp - 0x654]
push eax
lea eax, [ebp - 0x65c]
add edi, 8
push eax
mov ecx, edi
call fcn.00421330
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x650]
push eax
lea ecx, [ecx + 0x14]
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42024a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x42025f
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x654], eax
push 0x20a
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x644]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x644]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4202b0
sub ecx, edx
lea eax, [ebp - 0x644]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.0041cd40
push str._APPDATA_ALLUSER
lea ecx, [ebp - 0x648]
call fcn.0041c9e0
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.00421330
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x654]
push eax
lea ecx, [ecx + 0x14]
call fcn.0041c740
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420331
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ec878
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x648]
push str._SYSTEMTYPE
test eax, eax
jne 0x4203e4
call fcn.0041c9e0
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.00421330
mov ecx, dword [ebp - 0x65c]
push 0
push 0x4ec230
lea ecx, [ecx + 0x14]
call fcn.0041cd40
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4203af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x648]
call fcn.0041c9e0
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.00421330
push 4
push str.i386
jmp 0x420468
call fcn.0041c9e0
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.00421330
mov ecx, dword [ebp - 0x65c]
push 2
push 0x4ec85c
lea ecx, [ecx + 0x14]
call fcn.0041cd40
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420438
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x648]
call fcn.0041c9e0
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.00421330
push 3
push 0x4ec864
mov ecx, dword [ebp - 0x65c]
lea ecx, [ecx + 0x14]
call fcn.0041cd40
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420497
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x654]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4204b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x650]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4204d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4204f5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4