Function at 0x41d1b8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44a8
call fcn.0042f110
push ebx
push esi
push edi
lea eax, [ebp - 0x294]
mov esi, ecx
call fcn.00406448
push 6
pop ecx
xor ebx, ebx
xor eax, eax
push 7
lea edi, [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0x20f
stosb byte es:[edi], al
lea eax, [ebp - 0x4a3]
push ebx
push eax
mov byte [ebp - 0x4a4], bl
call fcn.004237a0
add esp, 0xc
push 0x3fff
lea eax, [ebp - 0x44a3]
push ebx
push eax
mov byte [ebp - 0x44a4], bl
call fcn.004237a0
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x41d23b
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
jne 0x41d246
xor al, al
jmp 0x41d4c9
movzx eax, word [esi]
push eax
push str.._c:
lea eax, [ebp - 0x294]
call fcn.0040179f
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41d2a5
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 0x560000
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x41d29f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41d23f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x74]
lea eax, [ebp - 0x294]
push str..PHYSICALDRIVE_d
call fcn.0040179f
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 0x290]
call esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41d3a4
xor eax, eax
mov byte [ebp - 0x58], bl
lea edi, [ebp - 0x57]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x41d39b
cmp byte [ebp - 0x55], bl
jbe 0x41d39b
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov al, byte [ebp - 0x74]
mov byte [ebp - 0x28], al
and al, 1
or al, 0xfa
shl al, 4
push ebx
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0xc]
push eax
push 0x210
lea eax, [ebp - 0x4a4]
push eax
push 0x21
lea eax, [ebp - 0x34]
push eax
push 0x7c088
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x200
mov byte [ebp - 0x2a], 0xec
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2e], 1
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x30], bl
call edi
test eax, eax
je 0x41d39b
mov eax, dword [ebp - 0xc]
cmp eax, 0x100
jb 0x41d39b
lea eax, [ebp + eax - 0x4a4]
push eax
lea eax, [ebp - 0x480]
push eax
mov eax, dword [ebp + 8]
call fcn.0041cfe7
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x41d444
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41d444
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x4000
push edi
lea eax, [ebp - 0x44a4]
push ebx
push eax
call fcn.004237a0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x44a4]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push dword [ebp - 8]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x41d439
mov eax, dword [ebp - 0xc]
cmp eax, 0x28
jb 0x41d439
lea eax, [ebp + eax - 0x44a4]
push eax
mov eax, dword [ebp - 0x448c]
lea eax, [ebp + eax - 0x44a4]
push eax
mov eax, dword [ebp + 8]
call fcn.0041cfe7
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41d449
mov edi, 0x4000
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x41d4c0
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41d4c0
push edi
lea eax, [ebp - 0x44a4]
push ebx
push eax
call fcn.004237a0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x44a4]
push eax
push ebx
push ebx
push 0x2d0c10
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x41d4b9
mov eax, dword [ebp - 0xc]
cmp eax, 0x14
jb 0x41d4b9
lea eax, [ebp + eax - 0x44a4]
push eax
lea eax, [ebp - 0x4494]
push eax
mov eax, dword [ebp + 8]
call fcn.0041cfe7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
seta al
pop edi
pop esi
pop ebx
leave
ret