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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x499750]
xor eax, ebp
mov dword [ebp - 0x78], eax
call fcn.00404790
mov dword [ebp - 0x28], eax
push 0
push 0x4849a8
lea ecx, [ebp + 8]
call fcn.004017b0
cmp eax, 0xffffffff
jne 0x45f130
lea eax, [ebp + 8]
push eax
push str._GetMaxDisk__Invalid_arguments__Missing_operator_____:
lea ecx, [ebp - 0x74]
push ecx
call fcn.00401950
add esp, 0xc
mov ecx, eax
call fcn.004068a0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x45f0a4
mov dword [ebp - 0x90], 0
jmp 0x45f105
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x45f0c9
mov dword [ebp - 0x94], 0
jmp 0x45f0f9
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.00445760
mov dword [ebp - 0x98], esp
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.00404740
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0043b032
push 0x490c50
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00441a3f
lea ecx, [ebp - 0x74]
call fcn.00405530
push 0
push 0x484a24
lea ecx, [ebp + 8]
call fcn.004017b0
push eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.00404470
push 0
push 0x484a2c
lea ecx, [ebp + 8]
call fcn.004017b0
add eax, 2
push eax
push 0
lea ecx, [ebp + 8]
call fcn.00405110
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402b50
lea ecx, [ebp - 0x2c]
call fcn.00405510
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x1c]
and ecx, 4
sub ecx, 4
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [ebp - 0x34], ecx
jmp 0x45f1c0
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x1a
jge 0x45f2bb
lea ecx, [ebp - 0x38]
call fcn.00405510
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
shl eax, cl
and eax, dword [ebp - 4]
je 0x45f2ae
mov ecx, dword [ebp - 0x34]
add ecx, 0x41
push ecx
lea ecx, [ebp - 0x38]
call fcn.00406480
push 0x484a34
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.004018a0
add esp, 0xc
mov ecx, eax
call fcn.004068a0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x7c]
call fcn.00405530
cmp dword [ebp - 0x3c], 3
jne 0x45f2ae
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x58]
push eax
push 0x484a3c
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.004018a0
add esp, 0xc
mov ecx, eax
call fcn.004068a0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x80]
call fcn.00405530
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x14]
jb 0x45f2ae
ja 0x45f276
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x18]
jbe 0x45f2ae
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
push 0x484a44
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.004018a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403530
lea ecx, [ebp - 0x84]
call fcn.00405530
lea ecx, [ebp - 0x38]
call fcn.00405530
jmp 0x45f1b7
lea ecx, [ebp - 0x2c]
call fcn.004068a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f30c
push 0x484a4c
push 0x484a50
lea ecx, [ebp - 0x2c]
call fcn.004051d0
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00402b50
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea edx, [ebp - 0x10]
push edx
call fcn.00402b50
call fcn.0045b710
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405530
lea ecx, [ebp - 0x10]
call fcn.00405530
lea ecx, [ebp - 0x20]
call fcn.00405530
lea ecx, [ebp + 8]
call fcn.00405530
lea esp, [ebp - 0x98]
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.0043adc4
mov esp, ebp
pop ebp
ret