Function at 0x48e870
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aacd8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48e8b5
xor al, al
jmp 0x48eac4
mov eax, dword [ebp - 0x1c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430705
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00456880
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48e922
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004303f9
add esp, 4
xor al, al
jmp 0x48eac4
lea ecx, [ebp - 0x30]
call fcn.00405120
mov dword [ebp - 4], 0
mov ecx, dword [0x4c81bc]
mov dword [ebp - 0x18], ecx
mov dx, word [0x4c81c0]
mov word [ebp - 0x14], dx
push 0x208
call fcn.00430705
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x1d], 0
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx]
mov word [ebp + eax - 0x18], dx
push 0x104
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48ea01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x48e9a4
jmp 0x48ea88
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.004303f9
add esp, 4
mov eax, dword [ebp - 0x1c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430705
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x48ea01
jmp 0x48ea88
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0045ce26
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046090d
add esp, 0xc
test eax, eax
jne 0x48ea60
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x4c81c4
lea eax, [ebp - 0x30]
push eax
call fcn.00405800
add esp, 0x10
lea ecx, [ebp - 0x30]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0x1d], 1
jmp 0x48ea88
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x48], 0
je 0x48ea7a
jmp 0x48ea60
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
test eax, eax
jne 0x48e965
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004303f9
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004303f9
add esp, 4
mov dl, byte [ebp - 0x1d]
mov byte [ebp - 0x1e], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405060
mov al, byte [ebp - 0x1e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4