Function at 0x4077b0
Capabilities:
Check if file exists
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x414884
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f8
mov eax, dword [esp + 0x308]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x31c]
xor esi, esi
or ebp, 0xffffffff
cmp eax, 1
mov word [edi], si
mov dword [esp + 0x10], ebp
jne 0x4078a4
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x41de54
call dword [sym.imp.MSVCRT.dll__wgetenv]
mov dx, word [eax]
add esp, 4
push edx
call fcn.004085a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebp
je 0x407c3a
mov eax, dword [esp + 0x320]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00413dc4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x318], esi
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.BackupPartition
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 1
mov ecx, esp
mov dword [esp + 0x34], esp
push str.BackupDisk
call fcn.00413dc4
mov dword [esp + 0x324], ebp
call fcn.0040d140
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebp
jne 0x40788e
mov eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.004090c0
add esp, 8
mov word [edi], ax
jmp 0x407c3a
cmp eax, 8
jne 0x407a15
mov edi, dword [esp + 0x320]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00413dc4
lea eax, [esp + 0x24]
mov dword [esp + 0x318], 2
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Signature
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 3
mov ecx, esp
mov dword [esp + 0x38], esp
push str.USBDisk
call fcn.00413dc4
mov dword [esp + 0x324], ebp
call fcn.0040d140
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x338]
add esp, 0x14
cmp eax, ebp
je 0x407929
push ebx
push eax
call fcn.00407e40
add esp, 8
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebp
jne 0x40798f
call fcn.004082a0
test eax, eax
jbe 0x407985
push 0
lea ecx, [esp + 0x2c]
call fcn.004118c0
test bl, bl
mov dword [esp + 0x310], 4
push esi
lea ecx, [esp + 0x2c]
je 0x40795e
call fcn.00412410
jmp 0x407963
call fcn.00412200
test eax, eax
je 0x40796b
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x310], ebp
call fcn.00411970
inc esi
call fcn.004082a0
cmp esi, eax
jb 0x407938
cmp dword [esp + 0x10], ebp
je 0x407c3a
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
call fcn.00413dc4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x318], 5
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.BackupPartition
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 6
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.USBDisk
call fcn.00413dc4
mov dword [esp + 0x324], ebp
call fcn.0040d140
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebp
jne 0x4079f8
mov eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.004090c0
mov ecx, dword [esp + 0x324]
add esp, 8
mov word [ecx], ax
jmp 0x407c3a
cmp eax, 0x20
jne 0x407ba1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41c198
call fcn.00413dc4
lea edx, [esp + 0x24]
mov dword [esp + 0x318], 7
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Signature
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SecondDisk
call fcn.00413dc4
mov dword [esp + 0x324], ebp
call fcn.0040d140
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x338]
add esp, 0x14
cmp eax, ebp
je 0x407a97
push ebx
push eax
call fcn.00407e40
add esp, 8
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebp
jne 0x407b1b
call fcn.004082a0
test eax, eax
jbe 0x407b0a
mov edi, 9
push 0
lea ecx, [esp + 0x2c]
call fcn.004118c0
test bl, bl
mov dword [esp + 0x310], edi
push esi
lea ecx, [esp + 0x2c]
je 0x407acd
call fcn.00412350
jmp 0x407ad2
call fcn.004120b0
test eax, eax
je 0x407af0
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004080b0
mov al, byte [esp + 0x20]
add esp, 8
test al, 4
jne 0x407af0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x310], ebp
call fcn.00411970
inc esi
call fcn.004082a0
cmp esi, eax
jb 0x407aab
cmp dword [esp + 0x10], ebp
je 0x407c3a
mov edi, dword [esp + 0x31c]
mov edx, dword [esp + 0x320]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00413dc4
lea eax, [esp + 0x1c]
mov dword [esp + 0x318], 0xa
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.BackupPartition
call fcn.00413dc4
push ecx
mov byte [esp + 0x324], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SecondDisk
call fcn.00413dc4
mov dword [esp + 0x324], ebp
call fcn.0040d140
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebp
jne 0x407b8b
mov eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004090c0
add esp, 8
mov word [edi], ax
jmp 0x407c3a
cmp eax, 2
jne 0x407c3a
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea edx, [esp + 0x38]
push 0x41c5ec
push edx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov edi, 2
shr esi, 2
je 0x407c3a
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x38]
lea eax, [edi + 0x41]
push ecx
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x407c22
push str.tvt.txt
lea edx, [esp + 0x3c]
push str.RRUbackups
push edx
lea eax, [esp + 0x10c]
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x100]
push ecx
call ebp
test eax, eax
jne 0x407c2b
shr esi, 1
inc edi
test esi, esi
jne 0x407bdb
jmp 0x407c3a
mov eax, dword [esp + 0x31c]
mov dx, word [esp + 0x38]
mov word [eax], dx
mov ecx, dword [esp + 0x308]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x304
ret