Function at 0x6d563d
Capabilities:
Check if file exists
Create directory
Get common file path
Get disk information
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebx
mov ecx, 0x6d12cc
call fcn.006d46ea
mov edi, eax
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x6d569a
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4b5
xor ecx, ecx
call fcn.006d44d8
call fcn.006d633c
mov dword [0x6d9124], eax
xor eax, eax
jmp 0x6d594f
push edi
mov edx, esi
mov ecx, 0x6d12cc
call fcn.006d46ea
test eax, eax
jne 0x6d56cf
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4b1
xor ecx, ecx
call fcn.006d44d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x6d9124], 0x80070714
jmp 0x6d5693
push 0x6d12a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
xor edi, edi
inc edi
test eax, eax
jne 0x6d56e8
mov dword [0x6d9a30], edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [0x6d8b3e]
test al, al
je 0x6d5736
cmp al, 0x5c
jne 0x6d5706
cmp byte [0x6d8b3f], al
mov eax, ebx
je 0x6d5708
mov eax, edi
push eax
xor edx, edx
mov ecx, 0x6d8b3e
call fcn.006d54ff
test eax, eax
je 0x6d5720
mov eax, edi
jmp 0x6d594f
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4be
xor ecx, ecx
call fcn.006d44d8
jmp 0x6d5693
cmp dword [0x6d8a24], ebx
jne 0x6d5937
cmp dword [0x6d9a30], ebx
jne 0x6d5937
mov esi, 0x6d91e4
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x6d578b
push 3
mov edx, edi
mov ecx, esi
call fcn.006d54ff
test eax, eax
jne 0x6d5719
mov ecx, esi
call fcn.006d263e
test eax, eax
jne 0x6d578b
push edi
mov edx, edi
mov ecx, esi
call fcn.006d54ff
test eax, eax
jne 0x6d5719
push ecx
push 0x6d1384
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.006d174e
cmp byte [ebp - 0x108], 0x5a
jg 0x6d5908
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
cmp esi, 6
je 0x6d57c8
cmp esi, 3
jne 0x6d57da
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6d5816
cmp esi, 2
jne 0x6d5803
mov al, byte [ebp - 0x108]
cmp al, 0x41
je 0x6d5809
cmp al, 0x42
je 0x6d5809
lea ecx, [ebp - 0x108]
call fcn.006d6a5d
test eax, eax
je 0x6d5803
cmp eax, 0x19000
jae 0x6d5816
mov al, byte [ebp - 0x108]
inc al
mov byte [ebp - 0x108], al
jmp 0x6d5900
push ebx
push 3
pop edx
lea ecx, [ebp - 0x108]
call fcn.006d5a1f
test eax, eax
jne 0x6d584a
lea ecx, [ebp - 0x108]
call fcn.006d263e
test eax, eax
jne 0x6d5803
push ebx
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.006d5a1f
test eax, eax
je 0x6d5803
lea ecx, [ebp - 0x108]
call fcn.006d263e
test eax, eax
je 0x6d586b
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x6d1388
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.006d6659
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6d58a2
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x6d58a5
and eax, 0x10
test eax, eax
jne 0x6d58bf
mov al, byte [ebp - 0x108]
inc al
mov byte [ebp - 0x105], bl
mov byte [ebp - 0x108], al
jmp 0x6d5900
push 2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
lea eax, [ebp - 0x108]
mov esi, 0x6d91e4
push eax
push ecx
mov edx, 0x104
mov ecx, esi
call fcn.006d174e
push ebx
mov edx, edi
mov ecx, esi
call fcn.006d54ff
test eax, eax
jne 0x6d5719
mov al, byte [ebp - 0x108]
cmp al, 0x5a
jle 0x6d57af
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 4
push 3
pop edx
lea ecx, [ebp - 0x108]
call fcn.006d5a1f
test eax, eax
jne 0x6d578b
jmp 0x6d5693
push ebx
push ebx
push 0x6d3260
push ebx
mov edx, 0x7d2
call fcn.006d65e1
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d6e20
mov esp, ebp
pop ebp
ret