Function at 0x10017da0
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov eax, dword [0x1002a17c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2b0], 0
lea ecx, [ebp - 0x2ac]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x10038c60
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x10038c60
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.BackupDisk._1.__08X.__s.__s.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x18
cmp dword [0x10038c58], 0
je 0x10017e0e
cmp dword [0x10036c04], 0
jne 0x10017e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._1a.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
lea ecx, [ebp - 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], 0
je 0x10017e44
push 0
call dword [ebp + 0x18]
add esp, 4
push 0x485
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
lea edx, [ebp - 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], 0
je 0x10017e81
cmp dword [ebp + 8], 0xffffffff
je 0x10017e81
cmp dword [ebp + 0xc], 0
je 0x10017e81
cmp dword [ebp + 0x10], 0
je 0x10017e81
cmp dword [ebp + 0x14], 0
jne 0x10017ec2
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.BackupDisk._2.__08X.__s.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
cmp dword [ebp + 0x18], 0
je 0x10017eb3
push 0
call dword [ebp + 0x18]
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10013530
add esp, 4
test eax, eax
je 0x10017f11
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._3.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
cmp dword [ebp + 0x18], 0
je 0x10017eff
push 0
call dword [ebp + 0x18]
add esp, 4
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x3dc0
je 0x10017f5e
push 0x3dc0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push str.BackupDisk._4.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
cmp dword [ebp + 0x18], 0
je 0x10017f4f
push 0
call dword [ebp + 0x18]
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 8]
add dl, byte [ecx + 0x19c]
mov byte [ebp - 8], dl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x19c]
push ecx
call fcn.1000b2a0
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._5.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [0x10038d70], ecx
mov dword [ebp - 0x2b0], 0x10017b70
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
and eax, 0x100
test eax, eax
je 0x1001810d
mov ecx, dword [0x1002bb94]
mov dword [ebp - 0x3c8], ecx
mov edx, dword [0x1002bb98]
mov dword [ebp - 0x3c4], edx
xor eax, eax
mov dword [ebp - 0x3c0], eax
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3b8], eax
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0x3c8]
add dx, word [ecx + 0x19c]
mov word [ebp - 0x3c8], dx
push 0x100
lea eax, [ebp - 0x3b4]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x3c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1001810d
push str.fmifs.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Chkdsk
push str.fmifs.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2b4], eax
mov dword [0x10038d7c], 0
cmp dword [ebp - 0x2b4], 0
je 0x1001810d
mov dword [ebp - 0x2b0], fcn.10017b90
push fcn.10017bb0
push 0
push 0
push 1
push 0
push 0
push 1
lea edx, [ebp - 0x3b4]
push edx
lea eax, [ebp - 0x3c8]
push eax
call dword [ebp - 0x2b4]
cmp dword [0x10038d7c], 0
jne 0x1001810d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3cc], eax
mov ecx, dword [0x10038d7c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._5b.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
cmp dword [ebp + 0x18], 0
je 0x100180f9
push 0
call dword [ebp + 0x18]
add esp, 4
mov ecx, dword [ebp - 0x3cc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
and eax, 2
test eax, eax
jne 0x10018182
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
push edx
call fcn.1000e180
add esp, 4
test eax, eax
jne 0x10018182
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x19c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._5a.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
cmp dword [ebp + 0x18], 0
je 0x10018170
push 0
call dword [ebp + 0x18]
add esp, 4
push 0x454
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov ecx, dword [ebp - 0x2b0]
push ecx
push 2
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [0x10036c04]
test eax, eax
jne 0x1001822d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x2b0]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
push str.BackupDisk._6.__08X.__s.__s.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
and eax, 2
test eax, eax
jne 0x100181f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
push edx
call fcn.1000e560
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call fcn.1001ea18
add esp, 4
cmp dword [0x10038d70], 0
je 0x10018219
push 0
call dword [0x10038d70]
add esp, 4
mov ecx, dword [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
push 0x40
push 0
lea edx, [ebp - 0x1a4]
push edx
call fcn.1001ea50
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
call fcn.1001d470
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.1001e830
add esp, 4
push eax
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.1001d4f0
add esp, 0xc
lea ecx, [ebp - 0x1a4]
push ecx
lea edx, [ebp - 0x164]
push edx
call fcn.1001d8d0
add esp, 8
mov eax, dword [ebp - 0x2b0]
push eax
push 0
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 4]
add edx, 8
push edx
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3db0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10016ee0
add esp, 0x20
test eax, eax
jne 0x10018388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x2b0]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x1a4]
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3db0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
push str.BackupDisk._7.__08X.__s.__08X.__08X.__08X.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x30
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ac]
and ecx, 2
test ecx, ecx
jne 0x10018340
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x19c]
push eax
call fcn.1000e560
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001ea18
add esp, 4
cmp dword [0x10038d70], 0
je 0x10018360
push 0
call dword [0x10038d70]
add esp, 4
cmp dword [ebp - 0x1a8], 0x3e3
jne 0x10018379
push 0x3e3
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10018384
push 0x1770
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
and eax, 2
test eax, eax
jne 0x10018400
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x19c]
push edx
call fcn.1000e560
add esp, 4
test eax, eax
jne 0x10018400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x19c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BackupDisk._8.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
cmp dword [0x10038d70], 0
je 0x100183f1
push 0
call dword [0x10038d70]
add esp, 4
push 0x454
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10018405
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14