Function at 0x422370
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x42261d
test eax, eax
je 0x42261d
cmp dword [esi + 0x24c], 0
jne 0x4223b8
push 0x230
call fcn.0046a3df
add esp, 4
mov dword [esi + 0x24c], eax
mov dword [esi + 0x250], 0x230
mov ebx, dword [esi + 0x24c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0
lea edi, [ebx + 8]
nop dword [eax + eax]
push 0x230
push 0
push dword [esi + 0x24c]
call fcn.0046ba40
add esp, 0xc
mov dword [ebx], 0x32
mov dword [ebx + 4], 0
lea eax, [esi + 4]
mov dword [edi], 3
mov dword [edi + 4], 2
push 0
push eax
push 0x230
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x28
mov dword [edi + 0x14], 0x200
push dword [esi + 0x24c]
mov dword [eax], 0
push 0x230
push ebx
push 0x2d1400
push dword [esi + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42261d
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x42260d
cmp dword [eax + 4], 0x30
jne 0x42260d
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x42260d
mov ecx, dword [edi + 0x10]
add ecx, edi
mov eax, dword [ecx + 0x40]
or eax, dword [ecx + 0x44]
jne 0x422626
mov eax, dword [ecx + 0x50]
or eax, dword [ecx + 0x54]
jne 0x422626
cmp word [ecx + 1], ax
jne 0x422626
cmp dword [esi + 0x268], eax
jne 0x4224c1
push 2
call fcn.0046a3df
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x4224fb
test eax, eax
je 0x4224fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x422511
mov dword [esi + 0x230], 0xffffffff
jmp 0x42251a
cmp ebx, 0xffffffff
jne 0x42260a
cmp dword [esi + 0x268], 0
jne 0x42253e
push 2
call fcn.0046a3df
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x42257b
test eax, eax
je 0x42257b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x422591
mov dword [esi + 0x230], 0xffffffff
jmp 0x422596
cmp ebx, 0xffffffff
jne 0x42260a
cmp dword [esi + 0x268], 0
jne 0x4225ba
push 2
call fcn.0046a3df
add esp, 4
mov dword [esi + 0x268], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x26c], ecx
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esi + 0x268]
mov byte [esi + 0x270], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x230]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x4225f1
test ecx, ecx
je 0x4225f1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
mov ebx, dword [ebp - 4]
jne 0x42260d
mov dword [esi + 0x230], 0xffffffff
jmp 0x42260d
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x4223d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret