Function at 0x41d967
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4af0
call fcn.0042e3b0
push ebx
push esi
push edi
lea eax, [ebp - 0x8dc]
mov esi, ecx
call fcn.00406522
lea eax, [ebp - 0x294]
call fcn.00406522
lea eax, [ebp - 0x6c4]
call fcn.00406522
lea eax, [ebp - 0x4ac]
call fcn.00406522
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 - 0xaeb]
push ebx
push eax
mov byte [ebp - 0xaec], bl
call fcn.00423fe0
add esp, 0xc
push 0x3fff
lea eax, [ebp - 0x4aeb]
push ebx
push eax
mov byte [ebp - 0x4aec], bl
call fcn.00423fe0
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x41da0b
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
jne 0x41da16
xor al, al
jmp 0x41de71
movzx eax, word [esi]
push eax
push str.._c:
lea eax, [ebp - 0x8dc]
call fcn.004017c3
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 - 0x8d8]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41da75
push ebx
lea eax, [ebp - 8]
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 0x41da6f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41da0f
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x74]
lea eax, [ebp - 0x8dc]
push str..PHYSICALDRIVE_d
call fcn.004017c3
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 0x8d8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x41db77
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 - 0xc]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x41db6e
cmp byte [ebp - 0x55], bl
jbe 0x41db6e
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
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 - 8]
push eax
push 0x210
lea eax, [ebp - 0xaec]
push eax
push 0x21
lea eax, [ebp - 0x34]
push eax
push 0x7c088
push dword [ebp - 0xc]
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 0x41db6e
mov eax, dword [ebp - 8]
cmp eax, 0x100
jb 0x41db6e
lea eax, [ebp + eax - 0xaec]
push eax
lea eax, [ebp - 0xac8]
push eax
lea eax, [ebp - 0x294]
call fcn.0041d716
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x8d8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x41dc0e
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 - 0x4aec]
push ebx
push eax
call fcn.00423fe0
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x4aec]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push dword [ebp - 0xc]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x41dc03
mov eax, dword [ebp - 8]
cmp eax, 0x28
jb 0x41dc03
lea eax, [ebp + eax - 0x4aec]
push eax
mov eax, dword [ebp - 0x4ad4]
lea eax, [ebp + eax - 0x4aec]
push eax
lea eax, [ebp - 0x6c4]
call fcn.0041d716
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41dc13
mov edi, 0x4000
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x8d8]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41dc85
push edi
lea eax, [ebp - 0x4aec]
push ebx
push eax
call fcn.00423fe0
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x4aec]
push eax
push ebx
push ebx
push 0x2d0c10
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x41dc7e
mov eax, dword [ebp - 8]
cmp eax, 0x14
jb 0x41dc7e
lea eax, [ebp + eax - 0x4aec]
push eax
lea eax, [ebp - 0x4adc]
push eax
lea eax, [ebp - 0x4ac]
call fcn.0041d716
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x294]
call fcn.0040adbe
test al, al
je 0x41dcb6
lea eax, [ebp - 0x6c4]
call fcn.0040adbe
test al, al
je 0x41dcb6
lea eax, [ebp - 0x4ac]
call fcn.0040adbe
test al, al
jne 0x41da0f
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41dcf4
lea eax, [ebp - 0x294]
call fcn.0040adbe
test al, al
jne 0x41dcf4
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x294]
call fcn.0041d8e3
test eax, eax
jne 0x41dcf4
lea eax, [ebp - 0x294]
call fcn.0040bbc6
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41dd2f
lea eax, [ebp - 0x6c4]
call fcn.0040adbe
test al, al
jne 0x41dd2f
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x6c4]
call fcn.0041d8e3
test eax, eax
jne 0x41dd2f
lea eax, [ebp - 0x6c4]
call fcn.0040bbc6
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41dd6a
lea eax, [ebp - 0x4ac]
call fcn.0040adbe
test al, al
jne 0x41dd6a
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x4ac]
call fcn.0041d8e3
test eax, eax
jne 0x41dd6a
lea eax, [ebp - 0x4ac]
call fcn.0040bbc6
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41dd9a
cmp dword [ebp - 0x28c], 3
jbe 0x41dd9a
mov ebx, dword [ebp - 0x290]
call fcn.0041d924
test al, al
je 0x41dd98
lea eax, [ebp - 0x294]
call fcn.0040bbc6
xor ebx, ebx
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41ddca
cmp dword [ebp - 0x6bc], 3
jbe 0x41ddca
mov ebx, dword [ebp - 0x6c0]
call fcn.0041d924
test al, al
je 0x41ddc8
lea eax, [ebp - 0x6c4]
call fcn.0040bbc6
xor ebx, ebx
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41ddfa
cmp dword [ebp - 0x4a4], 3
jbe 0x41ddfa
mov ebx, dword [ebp - 0x4a8]
call fcn.0041d924
test al, al
je 0x41ddf8
lea eax, [ebp - 0x4ac]
call fcn.0040bbc6
xor ebx, ebx
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41de1f
lea eax, [ebp - 0x294]
call fcn.0040adbe
test al, al
jne 0x41de1f
lea eax, [ebp - 0x294]
call fcn.0040bbc6
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41de44
lea eax, [ebp - 0x6c4]
call fcn.0040adbe
test al, al
jne 0x41de44
lea eax, [ebp - 0x6c4]
call fcn.0040bbc6
mov eax, edi
call fcn.0040adbe
test al, al
je 0x41de69
lea eax, [ebp - 0x4ac]
call fcn.0040adbe
test al, al
jne 0x41de69
lea eax, [ebp - 0x4ac]
call fcn.0040bbc6
mov eax, edi
cmp dword [eax + 8], ebx
seta al
pop edi
pop esi
pop ebx
leave
ret