Function at 0x100b034c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4ee5
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 0x100b03bd
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x20
jge 0x100b0639
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x100b0639
and dword [ebp - 0x44], 0
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x40]
shl eax, cl
and eax, dword [ebp - 0x10]
jne 0x100b03e6
jmp 0x100b03b6
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 0x100b040b
cmp dword [ebp - 0x48], 6
je 0x100b040b
jmp 0x100b03b6
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 0x100b0634
and dword [ebp - 0x4c], 0
jmp 0x100b044f
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jge 0x100b062b
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.10072050
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 0x100ca2fc
mov eax, dword [ebp - 0x50]
add eax, 4
push eax
call fcn.100720d0
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 0x100b0626
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 0x100b0626
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.100aff35
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.10004b83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call fcn.100014a4
push 0x2e
push 0x1b
push dword [ebp - 0x298]
lea eax, [ebp - 0x2d0]
push eax
call fcn.100aff35
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.10004b83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.100014a4
push 0x1a
push 0x17
push dword [ebp - 0x298]
lea eax, [ebp - 0x2ec]
push eax
call fcn.100aff35
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.10004b83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.100014a4
mov byte [ebp - 0x35], 1
jmp 0x100b0448
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100b03b6
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.1006f3d1
leave
ret