Function at 0x10004e2c
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x60
mov eax, 0x10076738
call fcn.1005ac4f
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 0x1000505f
mov edx, dword [ebp - 0x28]
xor edi, edi
inc edi
mov eax, edi
shl eax, cl
test edx, eax
je 0x1000504f
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 0x10004ef8
cmp eax, 6
jne 0x1000504f
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 0x1000504f
mov dword [ebp - 0x14], ebx
push 0x22d
lea eax, [ebp]
push ebx
push eax
call fcn.100541d0
push 8
lea eax, [ebp + 4]
push 0x1007de2c
push eax
mov dword [ebp], 0x1c
mov dword [ebp + 0xc], 0x2710
mov dword [ebp + 0x18], 0x211
mov dword [ebp + 0x10], 0x1b0501
call fcn.10054250
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 0x10005039
cmp byte [ebp + 0x62], bl
je 0x10005039
push 0x13
lea eax, [ebp + 0x2c]
push eax
push 0xa
pop ecx
lea edx, [ebp - 0x50]
call fcn.100044c1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10001a25
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.10001ad4
push 0x2e
lea eax, [ebp + 0x2c]
push eax
push 0x1b
pop ecx
lea edx, [ebp - 0x50]
call fcn.100044c1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push esi
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.10001a25
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.10001ad4
push 0x1a
lea eax, [ebp + 0x2c]
push eax
push 0x17
pop ecx
lea edx, [ebp - 0x6c]
call fcn.100044c1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push esi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10001a25
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
call fcn.10001ad4
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x10004f2f
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 0x10004eb8
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.10053c51
add ebp, 0x254
leave
ret