Function at 0x4d63cd
Capabilities:
Get common file path

Disassembly:
push 0xe74
mov eax, 0x546140
call fcn.00506b61
mov ebx, ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0xe7c], eax
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 0xe80], edi
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x19
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
test eax, eax
je 0x4d6564
and dword [ebp - 0xe50], 0
xor eax, eax
mov dword [ebp - 0xe4c], 7
mov word [ebp - 0xe60], ax
cmp word [ebp - 0x218], ax
je 0x4d6452
lea eax, [ebp - 0x218]
push eax
call fcn.004f3a59
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe60]
call fcn.00402650
and dword [ebp - 4], 0
push 0x63d88c
call fcn.004f3a59
pop ecx
push eax
push 0x63d88c
lea ecx, [ebp - 0xe60]
call fcn.00404290
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004e37a0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e37a0
cmp dword [ebp - 0xe4c], 8
lea eax, [ebp - 0xe60]
push dword [ebp - 0xe7c]
cmovae eax, dword [ebp - 0xe60]
push eax
lea eax, [ebp - 0x830]
push str._s_s.lnk
push eax
call fcn.00407eb0
add esp, 0x28
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004d62b3
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.004f3a59
pop ecx
test eax, eax
je 0x4d6551
lea eax, [ebp - 0xa38]
mov ecx, esi
push eax
call fcn.004024f0
push 0
lea ecx, [ebp - 0xe60]
push 1
call fcn.00402590
jmp 0x4d66c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
push 0
push 1
call fcn.00402590
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call edi
test eax, eax
je 0x4d66b5
xor eax, eax
mov dword [ebp - 0xe64], 7
xor edi, edi
mov word [ebp - 0xe78], ax
mov dword [ebp - 0xe68], edi
cmp word [ebp - 0x218], ax
je 0x4d65ac
lea eax, [ebp - 0x218]
push eax
call fcn.004f3a59
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe78]
call fcn.00402650
push 0x63d88c
mov dword [ebp - 4], 1
call fcn.004f3a59
pop ecx
push eax
push 0x63d88c
lea ecx, [ebp - 0xe78]
call fcn.00404290
push 0x208
lea eax, [ebp - 0xc40]
push edi
push eax
call fcn.004e37a0
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004e37a0
cmp dword [ebp - 0xe64], 8
lea eax, [ebp - 0xe78]
push dword [ebp - 0xe7c]
cmovae eax, dword [ebp - 0xe78]
push eax
lea eax, [ebp - 0xc40]
push str._s_s.lnk
push eax
call fcn.00407eb0
add esp, 0x28
lea eax, [ebp - 0x628]
mov ecx, ebx
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.004d62b3
push 0x208
lea eax, [ebp - 0xe48]
push edi
push eax
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0xe48]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x628]
push eax
call fcn.004f3a59
pop ecx
test eax, eax
je 0x4d66a3
lea eax, [ebp - 0xe48]
mov ecx, esi
push eax
call fcn.004024f0
push edi
lea ecx, [ebp - 0xe78]
jmp 0x4d6545
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe78]
push edi
push 1
call fcn.00402590
push 0x63d8a0
mov ecx, esi
call fcn.004024f0
mov eax, esi
call fcn.00506b0b
ret 8