Function at 0x496390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b08f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ea00c]
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 0x4963d5
xor al, al
jmp 0x4965e4
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.00479dbd
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.00432e20
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 0x496442
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00479db8
add esp, 4
xor al, al
jmp 0x4965e4
lea ecx, [ebp - 0x30]
call fcn.004097c0
mov dword [ebp - 4], 0
mov ecx, dword [0x4ce5cc]
mov dword [ebp - 0x18], ecx
mov dx, word [0x4ce5d0]
mov word [ebp - 0x14], dx
push 0x208
call fcn.00479dbd
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 0x496521
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4964c4
jmp 0x4965a8
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00479db8
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.00479dbd
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 0x496521
jmp 0x4965a8
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0043ba05
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.0043f076
add esp, 0xc
test eax, eax
jne 0x496580
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x4ce5d4
lea eax, [ebp - 0x30]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x30]
call sym.Install_rocket.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 0x4965a8
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 0x49659a
jmp 0x496580
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
test eax, eax
jne 0x496485
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00479db8
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00479db8
add esp, 4
mov dl, byte [ebp - 0x1d]
mov byte [ebp - 0x1e], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00409680
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.0042e29e
mov esp, ebp
pop ebp
ret 4