Function at 0x491a50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49add0
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x14], eax
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
mov word [ebp - 0x16], 0
mov eax, dword [str..ScsiN:]
mov dword [ebp - 0x34], eax
mov ecx, dword [0x4b0964]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x4b0968]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x4b096c]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x4b0970]
mov dword [ebp - 0x24], ecx
mov dx, word [0x4b0974]
mov word [ebp - 0x20], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
jmp 0x491aef
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x20
jge 0x491d8b
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
jne 0x491d8b
mov dword [ebp - 0x44], 0
mov edx, 1
mov ecx, dword [ebp - 0x40]
shl edx, cl
and edx, dword [ebp - 0x10]
jne 0x491b1d
jmp 0x491ae6
mov eax, dword [ebp - 0x40]
add eax, 0x41
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
je 0x491b42
cmp dword [ebp - 0x48], 6
je 0x491b42
jmp 0x491ae6
mov edx, dword [ebp - 0x3c]
add edx, 0x30
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x491d86
mov dword [ebp - 0x4c], 0
jmp 0x491b8d
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 2
jge 0x491d7c
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x58], ecx
push 0x22d
push 0
lea edx, [ebp - 0x28c]
push edx
call fcn.00452150
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x1c
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xc], 0x2710
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0x211
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x10], 0x1b0501
push 8
push 0x4b0978
mov ecx, dword [ebp - 0x50]
add ecx, 4
push ecx
call fcn.00452520
add esp, 0xc
mov edx, dword [ebp - 0x58]
mov byte [edx + 0xa], 0xec
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp - 0x4c]
mov byte [eax + 0xc], cl
push 0
lea edx, [ebp - 0x54]
push edx
push 0x22d
lea eax, [ebp - 0x28c]
push eax
push 0x3c
lea ecx, [ebp - 0x28c]
push ecx
push 0x4d008
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x491d77
lea eax, [ebp - 0x270]
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
add ecx, 0x10
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x290]
movsx eax, byte [edx + 0x36]
test eax, eax
je 0x491d77
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x298], ecx
push 0x13
push 0xa
mov edx, dword [ebp - 0x298]
push edx
lea eax, [ebp - 0x2b4]
push eax
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2f4]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call fcn.00409a80
push 0x2e
push 0x1b
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.00409a80
push 0x1a
push 0x17
mov ecx, dword [ebp - 0x298]
push ecx
lea edx, [ebp - 0x2ec]
push edx
call fcn.004915f0
add esp, 0x10
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x304], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x304]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.00409a80
mov byte [ebp - 0x35], 1
jmp 0x491b84
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x491ae6
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret