Function at 0x4d1600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578416
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push 0x58665d
mov dword [ebp - 0x78], edi
call fcn.0040b580
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 0
push 0
push 0x58efcc
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4d18f6
mov edx, dword [ebp - 0x68]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1681
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00408f30
push dword [0x5ed948]
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0048f2e0
push dword [0x5ed94c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0048f2e0
add esp, 0x18
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4d16f6
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4d1732
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x7c], 7
cmovae ecx, dword [ebp - 0x64]
mov esi, ecx
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x74], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d1760
sub esi, edx
sar esi, 1
je 0x4d187f
push 0
push 0
push 0
push 0
push esi
push ecx
push 0
push 0xfde9
lfence
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x4d187f
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0x7fffffff
ja 0x4d193a
cmp eax, 0x1000
jb 0x4d17fa
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d193f
push ecx
lfence
call fcn.00406a5e
add esp, 4
test eax, eax
je 0x4d1944
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d1808
push eax
lfence
call fcn.00406a5e
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x6c]
push eax
push 0
push edi
lea ecx, [edi + eax]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x14], ecx
call fcn.0053f340
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp - 0x6c]
mov byte [ebp - 4], 7
push edi
push esi
push dword [ebp - 0x74]
lfence
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edi, eax
je 0x4d186e
sub eax, edi
lea ecx, [ebp - 0x34]
push eax
push edi
call fcn.0040b580
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004126f0
mov edi, dword [ebp - 0x78]
jmp 0x4d1891
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
cmp edi, eax
je 0x4d18c2
mov ecx, edi
call fcn.0040ba20
movups xmm0, xmmword [ebp - 0x34]
mov byte [ebp - 0x34], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
call fcn.0040ba20
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 8
cmp eax, 8
jb 0x4d18ef
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4d1900
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0054d1c8
add esp, 8
test eax, eax
je 0x4d191f
push 0
push 0x58665d
mov ecx, edi
call fcn.0040b580
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.00401682
mov esp, ebp
pop ebp
ret
call fcn.004790e0
call fcn.00478c30
call fcn.0054223b
int3