Function at 0x41d5d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4af0
call fcn.0042ecf0
push ebx
push esi
push edi
lea eax, [ebp - 0x8dc]
mov esi, ecx
call fcn.0040653c
lea eax, [ebp - 0x294]
call fcn.0040653c
lea eax, [ebp - 0x6c4]
call fcn.0040653c
lea eax, [ebp - 0x4ac]
call fcn.0040653c
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.00424920
add esp, 0xc
push 0x3fff
lea eax, [ebp - 0x4aeb]
push ebx
push eax
mov byte [ebp - 0x4aec], bl
call fcn.00424920
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 0x41d674
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
jne 0x41d67f
xor al, al
jmp 0x41dada
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 0x41d6de
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 0x41d6d8
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41d678
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 0x41d7e0
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 0x41d7d7
cmp byte [ebp - 0x55], bl
jbe 0x41d7d7
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 0x41d7d7
mov eax, dword [ebp - 8]
cmp eax, 0x100
jb 0x41d7d7
lea eax, [ebp + eax - 0xaec]
push eax
lea eax, [ebp - 0xac8]
push eax
lea eax, [ebp - 0x294]
call fcn.0041d37f
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 0x41d877
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.00424920
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 0x41d86c
mov eax, dword [ebp - 8]
cmp eax, 0x28
jb 0x41d86c
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.0041d37f
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41d87c
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 0x41d8ee
push edi
lea eax, [ebp - 0x4aec]
push ebx
push eax
call fcn.00424920
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 0x41d8e7
mov eax, dword [ebp - 8]
cmp eax, 0x14
jb 0x41d8e7
lea eax, [ebp + eax - 0x4aec]
push eax
lea eax, [ebp - 0x4adc]
push eax
lea eax, [ebp - 0x4ac]
call fcn.0041d37f
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x294]
call fcn.0040afd2
test al, al
je 0x41d91f
lea eax, [ebp - 0x6c4]
call fcn.0040afd2
test al, al
je 0x41d91f
lea eax, [ebp - 0x4ac]
call fcn.0040afd2
test al, al
jne 0x41d678
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41d95d
lea eax, [ebp - 0x294]
call fcn.0040afd2
test al, al
jne 0x41d95d
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x294]
call fcn.0041d54c
test eax, eax
jne 0x41d95d
lea eax, [ebp - 0x294]
call fcn.0040bdc1
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41d998
lea eax, [ebp - 0x6c4]
call fcn.0040afd2
test al, al
jne 0x41d998
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x6c4]
call fcn.0041d54c
test eax, eax
jne 0x41d998
lea eax, [ebp - 0x6c4]
call fcn.0040bdc1
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41d9d3
lea eax, [ebp - 0x4ac]
call fcn.0040afd2
test al, al
jne 0x41d9d3
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x4ac]
call fcn.0041d54c
test eax, eax
jne 0x41d9d3
lea eax, [ebp - 0x4ac]
call fcn.0040bdc1
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41da03
cmp dword [ebp - 0x28c], 3
jbe 0x41da03
mov ebx, dword [ebp - 0x290]
call fcn.0041d58d
test al, al
je 0x41da01
lea eax, [ebp - 0x294]
call fcn.0040bdc1
xor ebx, ebx
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41da33
cmp dword [ebp - 0x6bc], 3
jbe 0x41da33
mov ebx, dword [ebp - 0x6c0]
call fcn.0041d58d
test al, al
je 0x41da31
lea eax, [ebp - 0x6c4]
call fcn.0040bdc1
xor ebx, ebx
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41da63
cmp dword [ebp - 0x4a4], 3
jbe 0x41da63
mov ebx, dword [ebp - 0x4a8]
call fcn.0041d58d
test al, al
je 0x41da61
lea eax, [ebp - 0x4ac]
call fcn.0040bdc1
xor ebx, ebx
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41da88
lea eax, [ebp - 0x294]
call fcn.0040afd2
test al, al
jne 0x41da88
lea eax, [ebp - 0x294]
call fcn.0040bdc1
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41daad
lea eax, [ebp - 0x6c4]
call fcn.0040afd2
test al, al
jne 0x41daad
lea eax, [ebp - 0x6c4]
call fcn.0040bdc1
mov eax, edi
call fcn.0040afd2
test al, al
je 0x41dad2
lea eax, [ebp - 0x4ac]
call fcn.0040afd2
test al, al
jne 0x41dad2
lea eax, [ebp - 0x4ac]
call fcn.0040bdc1
mov eax, edi
cmp dword [eax + 8], ebx
seta al
pop edi
pop esi
pop ebx
leave
ret