Function at 0x422488
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.00430eb0
push 0xffffffffffffffff
push 0x43813b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x444600]
xor eax, ebp
mov dword [ebp + 0x271c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2728]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x445448]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push str..PhysicalDrive_d
mov byte [ebp - 4], 1
call fcn.004013e0
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x422697
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x270f
lea eax, [ebp + 0xd]
push ebx
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp + 0xc], bl
call fcn.00427fc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x28]
push eax
mov edi, 0x2710
push edi
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4225ef
mov eax, dword [ebp + 0x24]
lea eax, [ebp + eax + 0xc]
push 3
lea ecx, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], ecx
call fcn.00404420
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x130]
lea esi, [ebp - 0x20]
call fcn.00401150
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x130], eax
je 0x4225bc
push dword [ebp - 0x130]
call fcn.00423946
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004223e5
push ecx
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [ebp - 0x2c], esp
call fcn.00401100
call fcn.00422440
pop ecx
test al, al
jne 0x4226f0
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004019e0
xor ebx, ebx
push edi
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.00427fc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x422697
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], eax
push 3
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x234]
call fcn.00404420
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x234]
lea esi, [ebp - 0x18]
call fcn.00401150
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x234], eax
je 0x422668
push dword [ebp - 0x234]
call fcn.00423946
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004223e5
push ecx
lea ecx, [ebp - 0x18]
mov eax, esp
mov dword [ebp - 0x2c], esp
call fcn.00401100
call fcn.00422440
pop ecx
test al, al
jne 0x42271f
lea esi, [ebp - 0x18]
call fcn.004019e0
xor ebx, ebx
lea esi, [ebp - 0x14]
call fcn.004019e0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x4226b1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x10
jl 0x4224d9
mov esi, dword [ebp - 0x1c]
mov ebx, 0x43d5c0
call fcn.00401150
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x271c]
xor ecx, ebp
call fcn.00423324
add ebp, 0x2720
leave
ret
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00401100
lea esi, [ebp - 0x20]
call fcn.004019e0
lea esi, [ebp - 0x14]
call fcn.004019e0
cmp dword [ebp - 0x10], 0
je 0x42271a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
jmp 0x4226cd
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00401100
lea esi, [ebp - 0x18]
jmp 0x4226fe