Function at 0x100af667
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b429b
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x35], 0
mov word [ebp - 0x1c], 0x20
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], 0x5c
and word [ebp - 0x16], 0
push 5
pop ecx
mov esi, str..ScsiN:
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
jmp 0x100af6d8
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x20
jge 0x100af954
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x100af954
and dword [ebp - 0x44], 0
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x40]
shl eax, cl
and eax, dword [ebp - 0x10]
jne 0x100af701
jmp 0x100af6d1
mov eax, dword [ebp - 0x40]
add eax, 0x41
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
je 0x100af726
cmp dword [ebp - 0x48], 6
je 0x100af726
jmp 0x100af6d1
mov eax, dword [ebp - 0x3c]
add eax, 0x30
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x100af94f
and dword [ebp - 0x4c], 0
jmp 0x100af76a
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jge 0x100af946
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x58], eax
push 0x22d
push 0
lea eax, [ebp - 0x28c]
push eax
call fcn.10071bb0
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x1c
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], 0x2710
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x18], 0x211
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x10], 0x1b0501
push 8
push 0x100c9f34
mov eax, dword [ebp - 0x50]
add eax, 4
push eax
call fcn.10071c30
add esp, 0xc
mov eax, dword [ebp - 0x58]
mov byte [eax + 0xa], 0xec
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp - 0x4c]
mov byte [eax + 0xc], cl
push 0
lea eax, [ebp - 0x54]
push eax
push 0x22d
lea eax, [ebp - 0x28c]
push eax
push 0x3c
lea eax, [ebp - 0x28c]
push eax
push 0x4d008
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100af941
lea eax, [ebp - 0x270]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x294]
add eax, 0x10
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x290]
movsx eax, byte [eax + 0x36]
test eax, eax
je 0x100af941
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x298], eax
push 0x13
push 0xa
push dword [ebp - 0x298]
lea eax, [ebp - 0x2b4]
push eax
call fcn.100af250
add esp, 0x10
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], eax
and dword [ebp - 4], 0
push dword [ebp - 0x2f4]
mov ecx, dword [ebp + 8]
call fcn.10004d22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call fcn.100014b1
push 0x2e
push 0x1b
push dword [ebp - 0x298]
lea eax, [ebp - 0x2d0]
push eax
call fcn.100af250
add esp, 0x10
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x2fc]
mov ecx, dword [ebp + 0xc]
call fcn.10004d22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.100014b1
push 0x1a
push 0x17
push dword [ebp - 0x298]
lea eax, [ebp - 0x2ec]
push eax
call fcn.100af250
add esp, 0x10
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x304], eax
mov dword [ebp - 4], 2
push dword [ebp - 0x304]
mov ecx, dword [ebp + 0x10]
call fcn.10004d22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.100014b1
mov byte [ebp - 0x35], 1
jmp 0x100af763
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100af6d1
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006ef11
leave
ret