Function at 0x4e8c00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [str..ScsiN:]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x284], eax
xor bl, bl
mov eax, dword [0x60607c]
push esi
mov dword [ebp - 0x14], eax
mov ax, word [0x606080]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 0x3a0020
mov dword [ebp - 8], 0x5c
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
mov edx, eax
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], esi
test bl, bl
jne 0x4e8f6f
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x4e8f5f
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4e8cac
cmp eax, 6
jne 0x4e8f59
mov ecx, dword [ebp - 0x27c]
push 0
push 0
push 3
push 0
lea eax, [ecx + 0x30]
inc ecx
push 3
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push 0xc0000000
push eax
mov dword [ebp - 0x27c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x288], esi
cmp esi, 0xffffffff
je 0x4e8f53
mov dword [ebp - 0x270], 0
nop dword [eax]
nop dword [eax + eax]
push 0x22d
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0058c8f0
mov eax, dword [str.SCSIDISK]
add esp, 0xc
mov dword [ebp - 0x250], eax
mov eax, dword [0x606088]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x270]
push 0
mov byte [ebp - 0x22c], al
lea eax, [ebp - 0x28c]
push eax
push 0x22d
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x1c
push eax
push 0x3c
push eax
push 0x4d008
push esi
mov dword [ebp - 0x248], 0x2710
mov dword [ebp - 0x23c], 0x211
mov dword [ebp - 0x244], 0x1b0501
mov byte [ebp - 0x22e], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4e8f36
cmp byte [ebp - 0x1f2], 0
je 0x4e8f36
push 0x13
push 0xa
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004e8060
mov esi, eax
add esp, 0x10
cmp edi, esi
je 0x4e8de8
mov ecx, edi
call fcn.004b5610
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x4e8e22
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e8e18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8f82
push edx
push ecx
call fcn.0050ed4e
add esp, 8
push 0x2e
push 0x1b
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004e8060
mov ebx, dword [ebp - 0x280]
mov esi, eax
add esp, 0x10
cmp ebx, esi
je 0x4e8e70
mov ecx, ebx
call fcn.004b5610
movups xmm0, xmmword [esi]
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x4e8eaa
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e8ea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8f82
push edx
push ecx
call fcn.0050ed4e
add esp, 8
push 0x1a
push 0x17
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004e8060
mov ebx, dword [ebp - 0x284]
mov esi, eax
add esp, 0x10
cmp ebx, esi
je 0x4e8ef8
mov ecx, ebx
call fcn.004b5610
movups xmm0, xmmword [esi]
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x4e8f2e
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e8f24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8f82
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov esi, dword [ebp - 0x288]
mov bl, 1
mov eax, dword [ebp - 0x270]
inc eax
mov dword [ebp - 0x270], eax
cmp eax, 2
jl 0x4e8d00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x278]
mov edx, dword [ebp - 0x274]
inc esi
mov dword [ebp - 0x278], esi
cmp esi, 0x20
jl 0x4e8c74
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
call fcn.005978c6
int3