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

Disassembly:
push 0x150
mov eax, 0x100422fd
call fcn.10021f0e
mov eax, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], ebx
mov ecx, dword [ebp - 0x120]
xor eax, eax
inc eax
shl eax, cl
test dword [ebp - 0x128], eax
je 0x10008636
push 0xf
pop edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xec], ebx
mov byte [ebp - 0xfc], bl
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xd0], ebx
mov byte [ebp - 0xe0], bl
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xc4], bl
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov al, cl
add al, 0x41
mov dword [ebp - 4], ebx
movzx eax, al
xor ebx, ebx
push eax
inc ebx
lea esi, [ebp - 0xe0]
call fcn.10009d99
push 0x1004c0a8
mov eax, esi
push eax
call fcn.10009d74
cmp dword [ebp - 0xcc], 0x10
mov eax, dword [ebp - 0xe0]
jae 0x100083e0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x10008625
sub eax, 0
je 0x1000843f
push 2
pop ebx
sub eax, ebx
je 0x1000842c
dec eax
je 0x10008423
dec eax
je 0x1000841a
dec eax
je 0x10008411
dec eax
jne 0x10008454
push 8
push str.RAM_disk
jmp 0x10008432
push 0xc
push str.CD_ROM_drive
jmp 0x10008432
push 0xd
push str.Network_drive
jmp 0x10008432
push 0xb
push str.Fixed_drive
jmp 0x10008432
push edi
push str.Removable_drive
lea ecx, [ebp - 0xfc]
call fcn.1000cffa
jmp 0x10008454
push 0xd
push str.Unknown_drive
lea ecx, [ebp - 0xfc]
call fcn.1000cffa
push 2
pop ebx
cmp dword [ebp - 0xcc], 0x10
mov eax, dword [ebp - 0xe0]
jae 0x10008469
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x100084d3
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x12c], ebx
call fcn.10009095
mov byte [ebp - 4], 1
or dword [ebp - 0x11c], 1
jmp 0x100084f9
and dword [ebp - 0x20], 0
push 1
push 0x1004c104
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x30], 0
call fcn.1000cffa
mov dword [ebp - 4], ebx
or dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x30]
mov esi, eax
lea edi, [ebp - 0xc4]
call fcn.1000cf26
xor esi, esi
test byte [ebp - 0x11c], bl
je 0x10008522
and dword [ebp - 0x11c], 0xfffffffd
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.10003236
mov dword [ebp - 4], esi
test byte [ebp - 0x11c], 1
je 0x10008543
and dword [ebp - 0x11c], 0xfffffffe
push esi
push 1
lea ecx, [ebp - 0x118]
call fcn.10003236
cmp dword [ebp - 0x124], esi
je 0x1000858f
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x124], ebx
call fcn.10009095
mov byte [ebp - 4], 3
or dword [ebp - 0x11c], 4
jmp 0x100085bd
push 1
push 0x1004c104
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.1000cffa
mov dword [ebp - 4], 4
or dword [ebp - 0x11c], 8
lea eax, [ebp - 0x30]
mov esi, eax
lea edi, [ebp - 0xa8]
call fcn.1000cf26
test byte [ebp - 0x11c], 8
je 0x100085e6
and dword [ebp - 0x11c], 0xfffffff7
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10003236
and dword [ebp - 4], 0
test byte [ebp - 0x11c], 4
je 0x10008609
and dword [ebp - 0x11c], 0xfffffffb
push 0
push 1
lea ecx, [ebp - 0x118]
call fcn.10003236
lea ecx, [ebp - 0xfc]
call fcn.10008e19
mov esi, dword [ebp - 0x130]
lea ecx, [ebp - 0xfc]
call fcn.10009fe3
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0xfc]
call fcn.10007507
xor ebx, ebx
inc dword [ebp - 0x120]
cmp dword [ebp - 0x120], 0x1a
jl 0x10008329
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.10021f58
ret 4