Function at 0x4cb380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5f80
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x634254]
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.004ea8a0
call fcn.004e94b0
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 0x4cb5aa
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4cb471
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cb430
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x22c], ecx
cmp esi, ecx
ja 0x4cb487
mov edi, ebx
cmp ecx, 8
jb 0x4cb455
mov edi, dword [ebx]
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x218]
add esi, esi
push esi
push eax
push edi
call fcn.00570d00
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 0x4cb5ac
cmp esi, 0x7ffffffe
ja 0x4cb5d8
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4cb4b1
mov dword [ebp - 0x220], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cb4f6
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4cb4d1
mov dword [ebp - 0x220], SysStringLen
mov eax, 0xfffffffe
jmp 0x4cb4f6
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x220], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4cb604
add eax, eax
cmp eax, 0x1000
jb 0x4cb51d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4cb604
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4cb5dd
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4cb538
test eax, eax
je 0x4cb536
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4cb5ee
jmp 0x4cb538
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.00570780
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x4cb595
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x4cb58b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb5ff
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
push dword [ebp - 0x224]
mov dword [ebx], edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, 1
jmp 0x4cb5ac
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.0056d855
mov esp, ebp
pop ebp
ret 8
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x219]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x21a]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
int3