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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46eaf4]
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x411920
push 0x45fc80
push esi
call fcn.0043a679
add esp, 8
test eax, eax
je 0x411920
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x411989
lea eax, [ebp - 0x18]
push str._GetMaxDisk__Invalid_arguments__Missing_operator_____:
push eax
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x411941
mov dword [ebp - 8], esi
jmp 0x41196f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x411957
mov dword [ebp - 8], esi
jmp 0x41196f
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0043920e
push 0x467390
lea edx, [ebp - 0x48]
push edx
call fcn.0043b69a
cmp dword [esi - 0xc], 0
jge 0x411994
or eax, 0xffffffff
jmp 0x4119af
push 0x45fc80
push esi
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x4119ab
or eax, 0xffffffff
jmp 0x4119af
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00407750
cmp dword [esi - 0xc], 0
jge 0x4119c7
or eax, 0xffffffff
jmp 0x4119e2
push 0x45fc80
push esi
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x4119de
or eax, 0xffffffff
jmp 0x4119e2
sub eax, esi
sar eax, 1
add eax, 2
lea ebx, [ebp + 8]
call fcn.004075c0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x18], eax
call fcn.004020e0
add esp, 4
mov dword [ebp - 0x1c], eax
call fcn.00423381
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411a1e
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x2c], eax
mov ebx, 2
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411a14
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov edx, 1
mov ecx, ebx
shl edx, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
test eax, edx
je 0x411b6d
mov cl, bl
add cl, 0x41
lea edx, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push edx
lea ecx, [ebp - 8]
mov byte [ebp - 0xb], 0
call fcn.00405070
push 0x460d64
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 3
jne 0x411b6d
push 0x460d64
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x38]
jb 0x411b6d
mov eax, dword [ebp - 0x34]
ja 0x411b2b
cmp eax, edi
jbe 0x411b6d
mov dword [ebp - 0x38], ecx
push 0x460d64
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov edi, eax
call fcn.00401dd0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00402800
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, 0x1a
jl 0x411a3e
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411bd8
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.004020e0
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 0x10], esp
mov esi, esp
push ecx
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040aec0
add esp, 8
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411bf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret