Function at 0x467640
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x693f30]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
nop
test bl, bl
jne 0x4679bf
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.005a49e0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.004679e0
add esp, 0x10
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4679b5
push 0x800
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xd10], 0
push 0
push eax
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
call fcn.005a49e0
add esp, 0xc
lea eax, [ebp - 0xd10]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd1c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4679a8
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.005a49e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.005a49e0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.005a49e0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.004671c0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004671c0
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.004671c0
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.005b9190
add esp, 0x1c
test eax, eax
jne 0x4677f8
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.005b9190
add esp, 4
test eax, eax
je 0x4679ae
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd24], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd20], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467820
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0xd34]
call fcn.00406920
mov ecx, dword [ebp - 0xd38]
lea eax, [ebp - 0xd34]
push eax
call fcn.00405b20
mov ecx, dword [ebp - 0xd20]
cmp ecx, 0x10
jb 0x467888
mov edx, dword [ebp - 0xd34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46787e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4679d2
push ecx
push edx
call fcn.005a242d
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd24], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd20], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4678b0
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0xd34]
call fcn.00406920
mov ecx, dword [ebp - 0xd3c]
lea eax, [ebp - 0xd34]
push eax
call fcn.00405b20
mov ecx, dword [ebp - 0xd20]
cmp ecx, 0x10
jb 0x467918
mov edx, dword [ebp - 0xd34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46790e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4679d2
push ecx
push edx
call fcn.005a242d
add esp, 8
lea eax, [ebp - 0x30c]
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd24], 0
lea edx, [eax + 1]
mov dword [ebp - 0xd20], 0
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x467940
sub eax, edx
lea ecx, [ebp - 0xd34]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00406920
mov ecx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd34]
push eax
call fcn.00405b20
mov ecx, dword [ebp - 0xd20]
cmp ecx, 0x10
jb 0x4679a4
mov edx, dword [ebp - 0xd34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46799a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4679d2
push ecx
push edx
call fcn.005a242d
add esp, 8
mov bl, 1
jmp 0x4679ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x467670
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a1c7e
mov esp, ebp
pop ebp
ret
call fcn.005a7b3f
int3