Function at 0x45e010
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489b5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa98
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xa00
lea eax, [ebp - 0xa18]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0046dcc0
add esp, 0xc
mov ecx, edi
call fcn.0040d780
mov ecx, 0xa00
lea eax, [ebp - 0xa18]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45e082
cmp dword [ebx + 0x18], 2
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 8]
jne 0x45e0c4
cmp edx, 8
lea eax, [ebx + 8]
cmovae eax, esi
cmp word [eax + 2], 0x3a
jne 0x45e1c8
push 1
push 0x491f40
lea ecx, [ebx + 8]
call fcn.0040a760
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 8]
jmp 0x45e0f2
jbe 0x45e1c8
cmp edx, 8
lea eax, [ebx + 8]
cmovae eax, esi
cmp word [eax + 2], 0x3a
jne 0x45e1c8
cmp edx, 8
lea eax, [ebx + 8]
cmovae eax, esi
cmp word [eax + 4], 0x5c
jne 0x45e1c8
xor eax, eax
mov dword [ebp - 0xa78], 0
mov word [ebp - 0xa88], ax
mov ecx, 3
mov eax, dword [ebx + 0x18]
cmp eax, ecx
mov dword [ebp - 0xa8c], eax
cmovb ecx, eax
mov dword [ebp - 0xa74], 7
cmp edx, 8
mov dword [ebp - 0xa20], 3
lea eax, [ebx + 8]
push ecx
cmovae eax, esi
lea ecx, [ebp - 0xa88]
push eax
call fcn.00402430
cmp dword [ebp - 0xa74], 8
lea ecx, [ebp - 0xa18]
push 0x500
lea eax, [ebp - 0xa88]
cmovae eax, dword [ebp - 0xa88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov edx, dword [ebp - 0xa74]
cmp edx, 8
jb 0x45e1a9
mov ecx, dword [ebp - 0xa88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e19f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e5de
push edx
push ecx
call fcn.0046ba31
add esp, 8
xor eax, eax
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa74], 7
mov word [ebp - 0xa88], ax
jmp 0x45e1e6
cmp edx, 8
lea eax, [ebx + 8]
cmovae eax, esi
push eax
lea eax, [ebp - 0xa18]
push 0x500
push eax
call fcn.00474910
add esp, 0xc
cmp word [ebp - 0xa18], 0x5c
jne 0x45e22b
cmp word [ebp - 0xa16], 0x5c
jne 0x45e22b
cmp word [ebp - 0xa14], 0x3f
jne 0x45e22b
cmp word [ebp - 0xa12], 0x5c
jne 0x45e22b
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e217
sub ecx, edx
sar ecx, 1
cmp ecx, 7
jae 0x45e268
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x45e5be
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e5b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e5e3
jmp 0x45e5b4
cmp word [ebp + ecx*2 - 0xa1a], 0x5c
jne 0x45e290
lea ecx, [ecx*2 - 2]
cmp ecx, 0xa00
jae 0x45e5e8
xor eax, eax
mov word [ebp + ecx - 0xa18], ax
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa6c], eax
cmp eax, 0xffffffff
je 0x45e22b
push 0
lea ecx, [ebp - 0xa1c]
mov dword [ebp - 0xa1c], 0
push ecx
push 0x20
lea ecx, [ebp - 0xa40]
push ecx
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0xa6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45e22b
cmp dword [ebp - 0xa40], 1
ja 0x45e22b
mov eax, dword [ebp - 0xa30]
mov ecx, dword [ebp - 0xa38]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xa2c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xa28]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xa24]
push ecx
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0xa18]
push str..PhysicalDrive_d
push eax
mov dword [edi + 4], ecx
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xa70], esi
cmp esi, 0xffffffff
je 0x45e22b
push 0x49e0
mov dword [ebp - 0xa1c], 0
call fcn.00474e96
mov edx, eax
add esp, 4
mov dword [ebp - 0xa6c], edx
test edx, edx
je 0x45e22b
mov ecx, 0x49e0
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45e3a0
push ecx
lea eax, [ebp - 0xa1c]
push eax
push 0x49e0
push edx
push ecx
push ecx
push 0x70050
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa20], eax
test esi, esi
jne 0x45e458
lea eax, [ebp - 0xa98]
push 0x3a4
push eax
call fcn.0046cd70
push dword [ebp - 0xa20]
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0x14
push dword [ebp - 0xa90]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0xa98]
call fcn.0046bc3a
add esp, 4
lea edx, [esi + 1]
mov ecx, 0x4ac9d8
push esi
call fcn.00411390
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0xa70]
call eax
mov esi, dword [ebp - 0xa6c]
push esi
call fcn.00474e91
add esp, 4
jmp 0x45e22b
push 0
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa1c], 0
push eax
push 0x28
lea eax, [ebp - 0xa68]
push eax
push 0
push 0
push 0x700a0
push dword [ebp - 0xa70]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xa70]
mov dword [ebp - 0xa20], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
test esi, esi
jne 0x45e51a
lea eax, [ebp - 0xaa4]
push 0x3a5
push eax
call fcn.0046cd70
push dword [ebp - 0xa20]
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0x14
push dword [ebp - 0xa9c]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0xaa4]
call fcn.0046bc3a
add esp, 4
lea edx, [esi + 1]
mov ecx, 0x4ac9d8
push esi
call fcn.00411390
mov esi, dword [ebp - 0xa6c]
add esp, 4
push esi
call fcn.00474e91
add esp, 4
jmp 0x45e22b
mov esi, dword [ebp - 0xa6c]
mov eax, dword [esi]
test eax, eax
jne 0x45e534
mov dword [edi], 1
mov eax, dword [esi + 8]
mov dword [edi + 0x20], eax
jmp 0x45e554
cmp eax, 1
jne 0x45e549
mov dword [edi], 2
movups xmm0, xmmword [esi + 8]
movups xmmword [edi + 0x24], xmm0
jmp 0x45e554
cmp eax, 2
jne 0x45e554
mov dword [edi], 3
mov eax, dword [ebp - 0xa54]
push 0
push eax
push dword [edi + 0xc]
mov dword [edi + 0x34], eax
push dword [edi + 8]
call fcn.00483920
push esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.00474e91
mov edx, dword [ebx + 0x1c]
add esp, 4
cmp edx, 8
jb 0x45e5b0
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e5a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e5e3
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov al, 1
jmp 0x45e5c0
push edx
push ecx
call fcn.0046ba31
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00471513
call fcn.00471513
call fcn.0046bb60
int3