Function at 0x100085e0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0xa28
mov eax, dword [esp + 0xa2c]
push ebx
push ebp
push esi
push edi
push 0x1008b288
push eax
call fcn.100079b0
mov dl, byte [0x10096b74]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x541]
mov byte [esp + 0x540], dl
mov byte [esp + 0x40], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x640], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x141]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x140], al
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x639]
push 0x8003
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, 0x1008b0f8
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x138]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x2c], esi
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 6
rep movsb byte es:[edi], byte [esi]
ja case.default.0x100086c8
jmp dword [edx*4 + 0x10008a94]
lea edx, [esp + 0x138]
mov edi, str._tUnable_to_determine_r_n
jmp 0x10008a33
mov byte [esp + 0x138], 0
jmp 0x10008a58
mov edi, str._tDRIVE_REMOVABLE_t
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100089b3
jmp 0x10008901
mov edi, str._tDRIVE_FIXED_t
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10008842
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.1001d720
push edx
push eax
lea eax, [esp + 0x640]
push str._ld_MB__t
push eax
call ebx
lea edi, [esp + 0x648]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
call fcn.1001d720
push edx
push eax
lea eax, [esp + 0x640]
push str._ld_MB__t
push eax
call ebx
lea edi, [esp + 0x648]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x38]
push 0x100
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x54c]
push 0x100
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10008a0b
lea edx, [esp + 0x38]
lea eax, [esp + 0x638]
push edx
push str._s_r_n
push eax
call ebx
add esp, 0xc
lea edi, [esp + 0x638]
lea edx, [esp + 0x138]
jmp 0x10008a33
lea edx, [esp + 0x138]
mov edi, str._tDRIVE_REMOTE_r_n
jmp 0x10008a33
mov edi, str._tDRIVE_CDROM_t_t
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100089b3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.1001d720
push edx
push eax
lea eax, [esp + 0x640]
push str._ld_MB__t
push eax
call ebx
lea edi, [esp + 0x648]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
call fcn.1001d720
push edx
push eax
lea eax, [esp + 0x640]
push str._ld_MB__t
push eax
call ebx
lea edi, [esp + 0x648]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x38]
push 0x100
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x54c]
push 0x100
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10008a0b
lea edx, [esp + 0x38]
lea eax, [esp + 0x638]
push edx
push str._s_r_n
push eax
call ebx
add esp, 0xc
lea edi, [esp + 0x638]
lea edx, [esp + 0x138]
jmp 0x10008a33
lea edx, [esp + 0x138]
mov edi, 0x1008b288
jmp 0x10008a33
lea edx, [esp + 0x138]
mov edi, str._tDRIVE_RAMDISK_r_n
jmp 0x10008a33
lea edx, [esp + 0x138]
mov edi, str._tDRIVE_UNKNOWN_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xa3c]
lea eax, [esp + 0x138]
push eax
push ecx
call fcn.100079b0
add ebp, 4
add esp, 8
cmp ebp, str.Server
jl 0x1000868a
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret 4