Function at 0x6c134580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, 0x6c14f060
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x65c
lea edi, [esp + 0x38]
mov dword [esp + 0xc], 1
mov eax, dword [ebp]
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [esp + 8], eax
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
test eax, eax
jne 0x6c1345e0
test byte [0x6c145288], 2
jne 0x6c134680
add ebx, 1
add ebp, 0x10
cmp ebx, 3
jne 0x6c134595
add esp, 0x65c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 4]
mov edx, edi
cmp word [esp + 0x38], 0
movzx eax, word [esi]
je 0x6c134928
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c1345f8
sub edx, edi
mov ecx, edx
mov dword [esp + 0x24], edx
sar ecx, 1
test ax, ax
je 0x6c134910
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6c134620
mov edx, eax
sub edx, esi
mov dword [esp + 0x28], edx
sar edx, 1
add edx, ecx
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0x102
jle 0x6c1346b0
test byte [0x6c145288], 2
je 0x6c1345c9
mov dword [esp + 0xc], str.Path_too_long_n
mov dword [esp + 8], str.cache_containers_init
mov dword [esp + 4], 0x6c145288
mov dword [esp], 1
call fcn.6c133fb0
jmp 0x6c1345c9
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Couldnt_get_path_for_default_container__lu_n
mov dword [esp + 8], str.cache_containers_init
mov dword [esp + 4], 0x6c145288
mov dword [esp], 1
call fcn.6c133fb0
jmp 0x6c1345c9
lea edx, [ecx + 1]
mov word [esp + ecx*2 + 0x38], 0x5c
mov dword [esp + 0x2c], eax
mov word [esp + edx*2 + 0x38], 0
xor edx, edx
lea esi, [esi]
nop
movzx eax, word [edi + edx]
mov word [esp + edx + 0x240], ax
add edx, 2
test ax, ax
jne 0x6c1346d0
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x6c13471f
mov eax, dword [esp + 0x24]
mov dword [esp + 4], esi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
lea eax, [edi + eax + 2]
add edx, 2
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.ucrtbase.dll_memcpy
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [edi + eax*2 + 2], 0x5c
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea esi, [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x400
mov dword [esp], 0
mov dword [esp + 0x20], eax
call eax
sub esp, 0x20
test eax, eax
je 0x6c1348b0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6c1348b0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp], 0x20
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call ecx
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0x28], eax
test esi, esi
je 0x6c1345c9
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], edx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [esi + 0xc], eax
test eax, eax
je 0x6c134a3f
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
add ecx, 1
mov dword [esp], ecx
mov dword [esp + 0x28], ecx
call eax
mov ecx, dword [esp + 0x28]
test eax, eax
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
je 0x6c134a3a
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.ucrtbase.dll_memcpy
lea eax, [esp + 0x240]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CharLowerW]
sub esp, 4
movzx edx, word [esp + 0x240]
lea eax, [esp + 0x240]
test dx, dx
je 0x6c134862
lea esi, [esi]
nop
cmp dx, 0x5c
jne 0x6c134856
mov edx, 0x21
mov word [eax], dx
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x6c134848
lea eax, [esp + 0x240]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov dword [esi + 0x18], eax
test eax, eax
je 0x6c1349df
mov eax, dword [0x6c145280]
mov dword [esi + 4], 0x6c145280
mov dword [0x6c145280], esi
mov dword [esi], eax
mov dword [eax + 4], esi
jmp 0x6c1345c9
lea eax, [esp + 0x448]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
sub esp, 0xc
test eax, eax
jne 0x6c134960
test byte [0x6c145288], 2
je 0x6c134778
mov dword [esp + 0xc], str.Cant_create_container_path_accessible_by_ANSI_functions_n
mov dword [esp + 8], str.cache_containers_init
mov dword [esp + 4], 0x6c145288
mov dword [esp], 1
call fcn.6c133fb0
jmp 0x6c134778
mov dword [esp + 0x20], ecx
mov eax, esi
mov dword [esp + 0x28], 0
jmp 0x6c134639
xor ecx, ecx
mov dword [esp + 0x24], 0
test ax, ax
jne 0x6c134614
mov eax, esi
mov edx, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x6c1346b3
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x448]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x400
mov dword [esp], 0
call eax
sub esp, 0x20
test eax, eax
je 0x6c1348d7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x6c1348d7
lea eax, [edx + edx + 2]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [esp + 0x448]
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
jmp 0x6c134778
test byte [0x6c145288], 2
jne 0x6c134a07
mov eax, dword [esi + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0x20], eax
call eax
mov eax, dword [esp + 0x20]
mov dword [esp], esi
call eax
jmp 0x6c1345c9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.couldnt_create_mutex__error_is__ld__n
mov dword [esp + 8], str.cache_containers_add
mov dword [esp + 4], 0x6c145288
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.6c133fb0
jmp 0x6c1349e8
mov dword [esp], edx
jmp 0x6c1349ee
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x6c1345c9