Function at 0x4c49b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5606b6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0x56ac74
mov dword [ebp - 0x68], esi
call fcn.0040a8a0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push 0
push 0
push 0x57080c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4c4beb
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4a31
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00408740
push dword [0x5c78c4]
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004b71a0
push dword [0x5c78c8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b71a0
add esp, 0x18
lea ecx, [ebp - 0xa4]
call fcn.00408e50
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00408e50
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
mov esi, ecx
mov dword [ebp - 0x64], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c4ab1
sub esi, edx
sar esi, 1
je 0x4c4b7d
push 0
push 0
push 0
push 0
push esi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4c4b7d
lea eax, [ebp - 0x5d]
mov dword [ebp - 0x6c], 0
push eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x74]
push edi
movq qword [ebp - 0x74], xmm0
call fcn.00472990
push 0
push 0
push edi
mov edi, dword [ebp - 0x74]
push edi
push esi
push dword [ebp - 0x64]
mov byte [ebp - 4], 5
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edi, eax
je 0x4c4b46
sub eax, edi
lea ecx, [ebp - 0x28]
push eax
push edi
call fcn.0040a8a0
mov byte [ebp - 4], 6
test edi, edi
je 0x4c4b8f
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4c4b71
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4c2f
push ecx
push edi
call fcn.004097e6
add esp, 8
jmp 0x4c4b8f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
cmp esi, eax
je 0x4c4bc7
mov ecx, esi
call fcn.0045db60
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040ad30
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00408e50
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4c4bf5
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.005379aa
add esp, 8
test eax, eax
je 0x4c4c14
push 0
push 0x56ac74
mov ecx, esi
call fcn.0040a8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
call fcn.0052cae1
int3