Function at 0x464360
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59af4e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2554
call fcn.0057fdf0
mov eax, dword [0x619e70]
xor eax, esp
mov dword [esp + 0x2550], eax
push ebx
push esi
push edi
mov eax, dword [0x619e70]
xor eax, esp
push eax
lea eax, [esp + 0x2568]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
push edi
push str..PhysicalDrive_d
lea eax, [esp + 0x21dc]
push 0x80
push eax
call fcn.0043a290
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x21ec]
push ecx
call esi
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
je 0x464614
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push eax
lea edx, [esp + 0x40]
push edx
push 0x200
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x2260]
push eax
push 0xc
lea ecx, [esp + 0x64]
push ecx
push 0x2d1400
push ebx
call edi
test eax, eax
je 0x464609
cmp dword [esp + 0x2270], 8
jne 0x464609
push 0
lea edx, [esp + 0x40]
push edx
push 0x200
lea eax, [esp + 0x2260]
push eax
push 0
push 0
push 0x41018
push ebx
call edi
test eax, eax
je 0x464609
movzx ecx, byte [esp + 0x2258]
push ecx
push str..Scsi_d:
lea edx, [esp + 0x245c]
push 0x104
push edx
call fcn.0057f091
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x246c]
push eax
call esi
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x464605
xor edi, edi
push 0xc6
lea ecx, [esp + 0xe4]
push edi
push ecx
mov dword [esp + 0xe8], edi
call fcn.0057f470
push 0x7c
lea edx, [esp + 0x70]
push edi
push edx
mov dword [esp + 0x74], edi
call fcn.0057f470
push 0x81c
lea eax, [esp + 0x9d4]
push edi
push eax
mov dword [esp + 0x9d8], edi
call fcn.0057f470
mov esi, dword [esp + 0x34]
add esp, 0x24
push 0xca
lea ecx, [esp + 0xe0]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.0049b610
test eax, eax
jne 0x464525
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea edx, [esp + 0x60]
push edx
push 0xa
push ebx
mov ecx, esi
call fcn.0049b610
test eax, eax
je 0x4645fe
cmp dword [esp + 0x78], edi
je 0x4645fe
push 0x820
lea eax, [esp + 0x9b8]
push eax
push 0x14
push ebx
mov ecx, esi
call fcn.0049b610
test eax, eax
je 0x4645fe
mov ecx, 0x201
lea esi, [esp + 0x9d0]
lea edi, [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
mov ecx, str.rcraid
lea eax, [esp + 0xf8]
jmp 0x464590
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4645b0
test dl, dl
je 0x4645ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4645b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x464590
xor eax, eax
jmp 0x4645b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46464b
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jle 0x4645fa
lea edx, [esp + 0x1cc]
nop
movzx ecx, byte [esp + 0x1ac]
cmp eax, ecx
jl 0x4645ef
lea edi, [edx - 0x1c]
mov ecx, 0x10
lea esi, [esp + 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], al
mov byte [edx + 0x1c], al
inc eax
add edx, 0x40
cmp eax, ebx
jl 0x4645d0
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
inc edi
cmp edi, 0x38
mov dword [esp + 0x24], edi
jl 0x4643af
mov eax, 1
mov ecx, dword [esp + 0x2568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2550]
xor ecx, esp
call fcn.0057db4c
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x7c]
imul edi, dword [esp + 0x78]
imul edi, edi, 0x88
push 4
push 0x1000
add edi, 0xc8
push edi
push 0
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp dword [esp + 0x78], 0
mov esi, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], 0
jle 0x46481d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edi
push esi
push 0xb
push ebx
mov dword [esi + 0x1c], edx
call fcn.0049b610
test eax, eax
je 0x46480a
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x28], 0
jbe 0x46480a
lea ebx, [esi + 0x9a]
cmp byte [ebx - 0x5a], 0
je 0x4647e3
movzx edi, byte [ebx]
push 0xb8
call fcn.0056cb85
add esp, 4
mov dword [esp + 0x2c], eax
xor esi, esi
mov dword [esp + 0x2570], esi
cmp eax, esi
je 0x464715
movzx ecx, byte [esp + 0x225a]
movzx edx, byte [esp + 0x2259]
push ecx
movzx ecx, byte [esp + 0x225c]
push edx
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0049bc30
mov esi, eax
mov ecx, dword [esp + 0x18]
fld qword [0x5e2910]
lea edx, [esp + 0x44]
fstp qword [esp + 0x44]
push edx
lea eax, [esp + 0x11d8]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2580], 0xffffffff
call fcn.0049d540
test eax, eax
je 0x4647d5
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x11d4]
push edx
push esi
call fcn.0049e230
fldz
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4647a5
fld qword [0x5e2998]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x2c], eax
fmulp st(1)
fldcw word [esp + 0x2c]
fistp qword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x94], eax
fldcw word [esp + 0x16]
jmp 0x4647a7
fstp st(0)
mov dword [esi + 0x28], edi
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
mov dword [esi + 0x30], 4
mov dword [esi + 0x9c], 8
call fcn.00462680
test eax, eax
jne 0x4647d9
push esi
mov ecx, edi
call fcn.00462630
jmp 0x4647e3
test esi, esi
je 0x4647e3
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
movzx ecx, byte [esi + 0x2b]
inc eax
add ebx, 0x88
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4646c2
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
jl 0x46468d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4645fe