Function at 0x438493
Capabilities:
Get storage device properties

Disassembly:
push 0xd64
mov eax, 0x4790e5
call fcn.0044ef10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xd70], eax
mov byte [ebp - 0xd55], bl
mov dword [ebp - 0xd5c], ebx
cmp byte [ebp - 0xd55], bl
jne 0x438791
push 0x200
lea eax, [ebp - 0x510]
push ebx
push eax
call fcn.0043fd80
push dword [ebp - 0xd5c]
mov esi, 0xff
push 0x496a54
push 0xffffffffffffffff
lea eax, [ebp - 0x510]
push esi
push eax
call fcn.0045f51a
add esp, 0x20
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd60], eax
cmp eax, 0xffffffff
je 0x43877e
xor eax, eax
lea edi, [ebp - 0xd38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
lea eax, [ebp - 0xd10]
push ebx
push eax
mov dword [ebp - 0xd6c], ebx
mov dword [ebp - 0xd38], ebx
mov dword [ebp - 0xd34], ebx
call fcn.0043fd80
add esp, 0xc
push ebx
lea eax, [ebp - 0xd6c]
push eax
push edi
lea eax, [ebp - 0xd10]
push eax
push 0xc
lea eax, [ebp - 0xd38]
push eax
push 0x2d1400
push dword [ebp - 0xd60]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43876c
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.0043fd80
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.0043fd80
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.0043fd80
mov eax, dword [ebp - 0xd00]
push ebx
lea esi, [ebp - 0x210]
lea ecx, [ebp - 0xd10]
call fcn.00437edc
mov eax, dword [ebp - 0xcfc]
push ebx
lea esi, [ebp - 0x310]
lea ecx, [ebp - 0xd10]
call fcn.00437edc
mov eax, dword [ebp - 0xcf8]
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x110]
lea ecx, [ebp - 0xd10]
call fcn.00437edc
movsx eax, byte [ebp - 0x110]
push eax
call fcn.0044e804
add esp, 0x34
test eax, eax
jne 0x438645
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.0044e804
pop ecx
test eax, eax
je 0x438772
push 0xf
pop esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0xd18], esi
mov dword [ebp - 0xd1c], ebx
mov byte [ebp - 0xd2c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x438663
sub eax, ecx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd2c]
call fcn.004047a2
mov ecx, dword [ebp - 0xd64]
lea eax, [ebp - 0xd2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00404817
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0xd2c]
call fcn.004049a6
lea eax, [ebp - 0x210]
mov dword [ebp - 0xd18], esi
mov dword [ebp - 0xd1c], ebx
mov byte [ebp - 0xd2c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4386c0
sub eax, ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd2c]
call fcn.004047a2
mov ecx, dword [ebp - 0xd68]
lea eax, [ebp - 0xd2c]
push eax
mov dword [ebp - 4], edi
call fcn.00404817
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0xd2c]
call fcn.004049a6
lea eax, [ebp - 0x310]
mov dword [ebp - 0xd40], esi
mov dword [ebp - 0xd44], ebx
mov byte [ebp - 0xd54], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43871d
sub eax, esi
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd54]
call fcn.004047a2
mov ecx, dword [ebp - 0xd70]
lea eax, [ebp - 0xd54]
push eax
mov dword [ebp - 4], 2
call fcn.00404817
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0xd54]
call fcn.004049a6
mov byte [ebp - 0xd55], 1
jmp 0x438772
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xd5c]
cmp dword [ebp - 0xd5c], 0x10
jl 0x4384cb
mov al, byte [ebp - 0xd55]
call fcn.0044ef93
ret