Function at 0x41e08e
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.0042cab0
push 0xffffffffffffffff
push 0x433adc
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x43f600]
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 [0x440448]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push str..PhysicalDrive_d
push eax
mov byte [ebp - 4], 1
call fcn.0040127e
add esp, 0xc
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 0x41e2a1
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.00423bc0
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 0x41e1f8
mov eax, dword [ebp + 0x24]
lea eax, [ebp + eax + 0xc]
push 3
push eax
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x12c]
push eax
mov dword [ebp - 0x130], ecx
call fcn.00403071
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x130]
lea esi, [ebp - 0x20]
call fcn.004010af
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x130], eax
je 0x41e1c5
push dword [ebp - 0x130]
call fcn.0041f546
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0041dfe9
push ecx
lea ecx, [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x2c], esp
call fcn.00401087
call fcn.0041e046
pop ecx
test al, al
jne 0x41e2fa
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040172e
xor ebx, ebx
push edi
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.00423bc0
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 0x41e2a1
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], eax
push 3
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403071
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x234]
lea esi, [ebp - 0x18]
call fcn.004010af
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x234], eax
je 0x41e272
push dword [ebp - 0x234]
call fcn.0041f546
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0041dfe9
push ecx
lea ecx, [ebp - 0x18]
mov esi, esp
mov dword [ebp - 0x2c], esp
call fcn.00401087
call fcn.0041e046
pop ecx
test al, al
jne 0x41e329
lea esi, [ebp - 0x18]
call fcn.0040172e
xor ebx, ebx
lea esi, [ebp - 0x14]
call fcn.0040172e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x41e2bb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x10
jl 0x41e0df
mov esi, dword [ebp - 0x1c]
mov ebx, 0x437c58
call fcn.004010af
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.0041ef20
add ebp, 0x2720
leave
ret
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00401087
lea esi, [ebp - 0x20]
call fcn.0040172e
lea esi, [ebp - 0x14]
call fcn.0040172e
cmp dword [ebp - 0x10], 0
je 0x41e324
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
jmp 0x41e2d7
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00401087
lea esi, [ebp - 0x18]
jmp 0x41e308