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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb34]
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x411f00
push 0x460d90
push esi
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x411f00
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x411f69
lea eax, [ebp - 0x18]
push str._GetMaxDisk__Invalid_arguments__Missing_operator_____:
push eax
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x411f21
mov dword [ebp - 8], esi
jmp 0x411f4f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x411f37
mov dword [ebp - 8], esi
jmp 0x411f4f
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0043b4a4
push 0x4686c8
lea edx, [ebp - 0x48]
push edx
call fcn.0043e342
cmp dword [esi - 0xc], 0
jge 0x411f74
or eax, 0xffffffff
jmp 0x411f8f
push 0x460d90
push esi
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x411f8b
or eax, 0xffffffff
jmp 0x411f8f
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00407850
cmp dword [esi - 0xc], 0
jge 0x411fa7
or eax, 0xffffffff
jmp 0x411fc2
push 0x460d90
push esi
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x411fbe
or eax, 0xffffffff
jmp 0x411fc2
sub eax, esi
sar eax, 1
add eax, 2
lea ebx, [ebp + 8]
call fcn.004076c0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x18], eax
call fcn.00402470
add esp, 4
mov dword [ebp - 0x1c], eax
call fcn.0042190e
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411ffe
push 0x80004005
call fcn.00401350
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.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411ff4
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 0x41214d
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.00405170
push 0x461f94
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004021b0
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 0x4120a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 3
jne 0x41214d
push 0x461f94
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004021b0
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 0x4120fa
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 0x41214d
mov eax, dword [ebp - 0x34]
ja 0x41210b
cmp eax, edi
jbe 0x41214d
mov dword [ebp - 0x38], ecx
push 0x461f94
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov edi, eax
call fcn.004021b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.004029d0
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 0x41214d
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 0x41216c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, 0x1a
jl 0x41201e
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4121b8
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00402470
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 0x10], esp
mov esi, esp
push ecx
call fcn.00402470
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040aff0
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 0x4121d4
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 0x4121f0
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 0x41220f
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 0x41222b
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.00439c98
mov esp, ebp
pop ebp
ret