Function at 0x4c16d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9e70
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x63d284]
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, dword [ebp + 0xc]
mov dword [ebp - 0x224], 0
call fcn.004d4720
call fcn.004d3370
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x4c18fa
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4c17c1
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c1780
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x22c], ecx
cmp esi, ecx
ja 0x4c17d7
mov edi, ebx
cmp ecx, 8
jb 0x4c17a5
mov edi, dword [ebx]
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x218]
add esi, esi
push esi
push eax
push edi
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, 1
jmp 0x4c18fc
cmp esi, 0x7ffffffe
ja 0x4c1928
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4c1801
mov dword [ebp - 0x220], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c1846
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4c1821
mov dword [ebp - 0x220], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c1846
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x220], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4c1954
add eax, eax
cmp eax, 0x1000
jb 0x4c186d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c1954
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c192d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4c1888
test eax, eax
je 0x4c1886
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4c193e
jmp 0x4c1888
xor edi, edi
mov eax, dword [ebp - 0x220]
mov dword [ebx + 0x10], esi
add esi, esi
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call fcn.005729d0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x4c18e5
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x4c18db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c194f
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
push dword [ebp - 0x224]
mov dword [ebx], edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, 1
jmp 0x4c18fc
xor esi, esi
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.0056cd75
mov esp, ebp
pop ebp
ret 8
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x219]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x21a]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.00407b84
int3