Function at 0x45bec0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8c41
mov eax, dword fs:[0]
push eax
mov eax, 0x1300
call fcn.004887b0
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124c], edi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x45c5f3
cmp word [ecx], 0
je 0x45c5f3
lea edx, [ebp - 0x21c]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45bf20
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp word [ebp - 0x21a], 0x3a
jne 0x45c580
movzx eax, word [ebp - 0x21c]
push eax
call fcn.00491c2a
add esp, 4
lea ebx, [eax - 0x41]
cmp ebx, 0x19
ja 0x45c5f3
lea ecx, [ebx + ebx*2]
cmp dword [edi + ecx*8 + 0xc], 0
lea eax, [edi + ecx*8]
mov dword [ebp - 0x126c], eax
jne 0x45c0c0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL30.dll_GetDriveTypeW]
mov dword [ebp - 0x1260], eax
cmp eax, 4
jne 0x45c0c7
lea eax, [ebp - 0x1250]
mov dword [ebp - 0x1250], 0x800
push eax
lea eax, [ebp - 0x122c]
push eax
push 2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MPR.dll_WNetGetUniversalNameW]
test eax, eax
jne 0x45c5f3
mov esi, dword [ebp - 0x122c]
test esi, esi
je 0x45c023
lea edx, [ebp - 0x21c]
mov ecx, esi
sub edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45bfe0
lea eax, [esi + 4]
push 0x4c1db8
push eax
call fcn.004893cb
add esp, 8
test eax, eax
je 0x45c023
push 0xc
push str.DavWWWRoot_
push eax
call fcn.00491f73
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 2
cmove esi, ecx
jmp 0x45c025
xor esi, esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.0045be70
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45c050
sub edx, ecx
sub esp, 8
sar edx, 1
lea ecx, [ebp - 0x21c]
add edx, edx
call fcn.00465db0
add esp, 8
mov dword [ebp - 0x125c], eax
lea eax, [ebp - 0x125c]
mov dword [ebp - 0x1258], edx
mov ecx, edi
push 8
push eax
push ebx
call fcn.0045bc60
push dword [ebp - 0x1258]
mov ecx, dword [edi]
push dword [ebp - 0x125c]
call fcn.0045aa20
test eax, eax
js 0x45c0b7
push 8
lea ecx, [ebp - 0x125c]
push ecx
push eax
mov ecx, edi
call fcn.0045bc60
mov ecx, dword [ebp - 0x126c]
mov dword [ecx + 0x18], esi
mov eax, ebx
jmp 0x45c5f6
push 0x104
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL30.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x45c406
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c0f1
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x45c614
xor eax, eax
push eax
push eax
push 3
push eax
push 3
mov word [ebp + ecx - 0x424], ax
lea eax, [ebp - 0x424]
push 0x80
push eax
call dword [sym.imp.KERNEL30.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1280], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x45c406
cmp esi, 0xffffffff
je 0x45c3f6
push 0x8000
lea ecx, [ebp - 0x1278]
mov dword [ebp - 0x1278], 0
mov dword [ebp - 0x1274], 0
mov dword [ebp - 0x1270], 0
call fcn.0040e1d0
xor eax, eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1268], eax
mov dword [ebp - 0x1250], eax
mov dword [ebp - 0x1248], eax
lea eax, [ebp - 0x1258]
push eax
push dword [ebp - 0x1274]
push dword [ebp - 0x1278]
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
test eax, eax
je 0x45c2cd
mov eax, dword [ebp - 0x1278]
cmp dword [eax], 1
jb 0x45c2cd
mov eax, dword [eax + 8]
mov ecx, eax
push eax
or ecx, 0x1000
lea eax, [ebp - 0x424]
push str..PhysicalDrive_d
push eax
mov dword [ebp - 0x1268], ecx
mov dword [ebp - 0x1250], ecx
call fcn.0040e140
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 0
push 3
push 0
push 3
push 0x80
push eax
call dword [sym.imp.KERNEL30.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45c2c7
push 0
lea eax, [ebp - 0x127c]
mov dword [ebp - 0x1238], 7
push eax
push 0xc
lea eax, [ebp - 0x1244]
mov dword [ebp - 0x123c], 0
push eax
push 0xc
lea eax, [ebp - 0x1238]
mov dword [ebp - 0x127c], 0
push eax
xorps xmm0, xmm0
push 0x2d1400
push edi
movq qword [ebp - 0x1234], xmm0
movq qword [ebp - 0x1244], xmm0
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
test eax, eax
jne 0x45c294
test edi, edi
je 0x45c2c7
mov eax, dword [sym.imp.KERNEL30.dll_CloseHandle]
push edi
call eax
jmp 0x45c2c7
xor eax, eax
cmp byte [ebp - 0x123c], al
sete al
mov dword [ebp - 0x1248], eax
test edi, edi
je 0x45c2b1
mov eax, dword [sym.imp.KERNEL30.dll_CloseHandle]
push edi
call eax
xor eax, eax
mov ecx, 1
cmp dword [ebp - 0x1248], eax
cmovne eax, ecx
mov dword [ebp - 0x1248], eax
mov edi, dword [ebp - 0x124c]
cmp dword [ebp - 0x1260], 2
jne 0x45c3a3
xor eax, eax
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x1238], eax
mov dword [ebp - 0x1234], eax
mov dword [ebp - 0x1230], eax
mov dword [ebp - 0x1244], eax
mov dword [ebp - 0x1240], eax
mov dword [ebp - 0x123c], eax
mov dword [ebp - 0x124c], eax
lea eax, [ebp - 0x124c]
push eax
push 8
lea eax, [ebp - 0x1264]
movlpd qword [ebp - 0x1264], xmm0
push eax
push 0xc
lea eax, [ebp - 0x1244]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
test eax, eax
je 0x45c38d
push dword [ebp - 0x1260]
lea ecx, [ebp - 0x1238]
call fcn.0040e1d0
push 0
lea eax, [ebp - 0x124c]
push eax
push dword [ebp - 0x1260]
mov eax, dword [ebp - 0x1238]
push eax
push 0xc
lea eax, [ebp - 0x1244]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL30.dll_DeviceIoControl]
test eax, eax
mov eax, dword [ebp - 0x1238]
je 0x45c393
test eax, eax
je 0x45c393
cmp byte [eax + 0xb], 0
jne 0x45c39a
jmp 0x45c393
mov eax, dword [ebp - 0x1238]
or dword [ebp - 0x1248], 4
push eax
call fcn.00491111
add esp, 4
cmp dword [ebp - 0x1268], 0
je 0x45c3e8
push 4
lea eax, [ebp - 0x1250]
mov ecx, edi
push eax
push ebx
call fcn.0045bc60
mov ecx, dword [ebp - 0x126c]
mov eax, dword [ebp - 0x1248]
push dword [ebp - 0x1278]
mov dword [ecx + 0x18], eax
call fcn.00491111
add esp, 4
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
mov eax, ebx
jmp 0x45c5f6
push dword [ebp - 0x1278]
call fcn.00491111
add esp, 4
test esi, esi
je 0x45c406
cmp esi, 0xffffffff
je 0x45c406
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x130c]
call fcn.00469ac0
push ecx
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0x130c]
mov dword [ebp - 4], 2
call fcn.00469b50
test eax, eax
je 0x45c577
movzx eax, word [ebp - 0x21c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0x1260], 0x400
push str.DosDevices_c:
push eax
call fcn.0040e1a0
add esp, 0xc
lea eax, [ebp - 0x1260]
lea ecx, [ebp - 0x130c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00469f10
test eax, eax
je 0x45c577
push 4
lea eax, [ebp - 0x824]
push str.___
push eax
call fcn.00491f73
add esp, 0xc
test eax, eax
jne 0x45c4e9
lea eax, [ebp - 0x824]
push 0x23
push eax
call fcn.00488e8b
add esp, 8
test eax, eax
je 0x45c4e9
add eax, 2
push 0x23
push eax
call fcn.00488e8b
add esp, 8
test eax, eax
je 0x45c4e9
push 0x26
push eax
call fcn.00488e8b
add esp, 8
test eax, eax
je 0x45c4e9
push 0x10
add eax, 2
push 0
push eax
call fcn.00490ff8
add esp, 0xc
mov ecx, eax
jmp 0x45c53d
push 4
lea eax, [ebp - 0x824]
push str.____
push eax
call fcn.00491f73
add esp, 0xc
test eax, eax
jne 0x45c518
lea eax, [ebp - 0x824]
push 0x7b
push eax
call fcn.00488e8b
add esp, 8
test eax, eax
jne 0x45c4d5
push 8
lea eax, [ebp - 0x824]
push str.DMIO:ID:
push eax
call fcn.00491f73
mov ecx, dword [ebp - 0x824]
add esp, 0xc
test eax, eax
cmove ecx, dword [ebp - 0x814]
mov dword [ebp - 0x1248], ecx
cmp ecx, 0x1e
ja 0x45c554
or ecx, 0x88000000
mov dword [ebp - 0x1248], ecx
push 4
lea eax, [ebp - 0x1248]
push eax
push ebx
mov ecx, edi
call fcn.0045bc60
lea ecx, [ebp - 0x130c]
call fcn.00469b00
mov eax, ebx
jmp 0x45c5f6
push 1
push 0x4b88fd
jmp 0x45c55d
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.0045be70
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45c597
sub edx, ecx
sub esp, 8
sar edx, 1
lea ecx, [ebp - 0x21c]
add edx, edx
call fcn.00465db0
mov ecx, dword [edi]
add esp, 8
mov dword [ebp - 0x125c], eax
mov dword [ebp - 0x1258], edx
push edx
push eax
call fcn.0045aa20
mov esi, eax
test esi, esi
js 0x45c5f3
lea eax, [esi + esi*2]
cmp dword [edi + eax*8 + 0xc], 0
jne 0x45c5ef
push 8
lea eax, [ebp - 0x125c]
mov ecx, edi
push eax
push esi
call fcn.0045bc60
mov eax, esi
jmp 0x45c5f6
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 4
call fcn.00487ab3
int3