Function at 0x41fd00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3a94
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.004a83c0
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push 0x104
push eax
call fcn.004af454
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 0x41fd80
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041ccd0
push str._INSTDIR
lea ecx, [ebp - 0x650]
call fcn.0041c970
lea ecx, [ebp - 0x650]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x64c]
push ecx
lea ecx, [edi + 8]
call fcn.004210e0
mov ecx, dword [ebp - 0x64c]
push edi
lea ecx, [ecx + 0x14]
call fcn.0041c6d0
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 0x41fe01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0041c670
lea esi, [eax + 0x10]
mov dword [ebp - 0x660], esi
mov dword [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x41fe59
lea eax, [ecx - 1]
test eax, eax
js 0x41ff0e
cmp eax, ecx
jg 0x41ff0e
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x41fe59
cmp eax, 0x2f
je 0x41fe59
push str.0s
lea ecx, [ebp - 0x660]
call fcn.0041c190
mov esi, dword [ebp - 0x660]
push str._PLUGINSDIR
lea ecx, [ebp - 0x650]
call fcn.0041c970
push str.Plugins
lea edx, [ebp - 0x660]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x648]
call fcn.0041c010
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.004210e0
mov ecx, dword [ebp - 0x65c]
add ecx, 0x14
push edi
call fcn.0041c6d0
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 0x41fed8
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 0x41fef9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x41ff18
push 0x80004005
call fcn.0041cdf0
push 0x80070057
call fcn.0041cdf0
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.004a83c0
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 0x41ff70
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x650]
call fcn.0041ccd0
push str._APPDATA_USER
lea ecx, [ebp - 0x648]
call fcn.0041c970
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.004210e0
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x650]
push eax
lea ecx, [ecx + 0x14]
call fcn.0041c6d0
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 0x41fffa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x42000f
push 0x80004005
call fcn.0041cdf0
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.004a83c0
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 0x420060
sub ecx, edx
lea eax, [ebp - 0x644]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.0041ccd0
push str._APPDATA_ALLUSER
lea ecx, [ebp - 0x648]
call fcn.0041c970
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.004210e0
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x654]
push eax
lea ecx, [ecx + 0x14]
call fcn.0041c6d0
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 0x4200e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4ed808
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 0x420194
call fcn.0041c970
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.004210e0
mov ecx, dword [ebp - 0x65c]
push 0
push 0x4ed230
lea ecx, [ecx + 0x14]
call fcn.0041ccd0
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 0x42015f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x648]
call fcn.0041c970
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.004210e0
push 4
push str.i386
jmp 0x420218
call fcn.0041c970
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.004210e0
mov ecx, dword [ebp - 0x65c]
push 2
push 0x4ed7ec
lea ecx, [ecx + 0x14]
call fcn.0041ccd0
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 0x4201e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._SYSTEMTYPE2
lea ecx, [ebp - 0x648]
call fcn.0041c970
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x65c]
mov ecx, edi
push eax
call fcn.004210e0
push 3
push 0x4ed7f4
mov ecx, dword [ebp - 0x65c]
lea ecx, [ecx + 0x14]
call fcn.0041ccd0
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 0x420247
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 0x420268
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 0x420289
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 0x4202a5
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.004a578d
mov esp, ebp
pop ebp
ret 4