Function at 0x10004d69
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x60
mov eax, 0x10074268
call fcn.1005886f
mov eax, dword [ebp + 0x25c]
push 5
pop ecx
mov esi, str..ScsiN:
lea edi, [ebp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x260]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x264]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0xd], bl
mov word [ebp + 0x248], 0x20
mov word [ebp + 0x24a], 0x3a
mov word [ebp + 0x24c], 0x5c
mov word [ebp + 0x24e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ebx
or esi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x10004f9c
mov edx, dword [ebp - 0x28]
xor edi, edi
inc edi
mov eax, edi
shl eax, cl
test edx, eax
je 0x10004f8c
lea eax, [ebp + 0x248]
add ecx, 0x41
push eax
mov word [ebp + 0x248], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10004e35
cmp eax, 6
jne 0x10004f8c
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x18]
push 3
mov word [ebp + 0x240], ax
push 0xc0000000
lea eax, [ebp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x10004f8c
mov dword [ebp - 0x14], ebx
push 0x22d
lea eax, [ebp]
push ebx
push eax
call fcn.10051de0
push 8
lea eax, [ebp + 4]
push 0x1007be0c
push eax
mov dword [ebp], 0x1c
mov dword [ebp + 0xc], 0x2710
mov dword [ebp + 0x18], 0x211
mov dword [ebp + 0x10], 0x1b0501
call fcn.10051e60
mov al, byte [ebp - 0x14]
add esp, 0x18
push ebx
mov byte [ebp + 0x28], al
lea eax, [ebp - 0x34]
push eax
push 0x22d
lea eax, [ebp]
push eax
push 0x3c
push eax
push 0x4d008
push dword [ebp - 0x1c]
mov byte [ebp + 0x26], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10004f76
cmp byte [ebp + 0x62], bl
je 0x10004f76
push 0x13
lea eax, [ebp + 0x2c]
push eax
push 0xa
pop ecx
lea edx, [ebp - 0x50]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10001a96
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.10001b45
push 0x2e
lea eax, [ebp + 0x2c]
push eax
push 0x1b
pop ecx
lea edx, [ebp - 0x50]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push esi
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.10001a96
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.10001b45
push 0x1a
lea eax, [ebp + 0x2c]
push eax
push 0x17
pop ecx
lea edx, [ebp - 0x6c]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push esi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10001a96
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
call fcn.10001b45
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x10004e6c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x20], ecx
jl 0x10004df5
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.10051861
add ebp, 0x254
leave
ret