Function at 0x42cf59
Capabilities:
Get disk information

Disassembly:
mov eax, 0x459181
call fcn.004385b8
sub esp, 0x3e4
push ebx
push esi
push edi
mov edi, ecx
call sym.HPZshl01.exe_public:_unsigned_int___thiscall_CPrinter::HasCard_void_const
test eax, eax
jne 0x42cf81
mov eax, 0x490
jmp 0x42d17d
lea ecx, [ebp - 0xa0]
call fcn.00429e11
mov dword [ebp - 0xa0], 0x45c1f8
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
lea ecx, [edi + 0x11c]
mov dword [ebp - 4], esi
call sym.HPZshl01.exe_public:_long_int___thiscall_CPort::GetDevice_class_CPortDeviceObject__const
cmp eax, esi
je 0x42cfb8
mov esi, eax
jmp 0x42d16c
lea ecx, [ebp - 0xc4]
call fcn.00429e11
lea eax, [ebp - 0xc4]
mov ecx, edi
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 1
call sym.HPZshl01.exe_public:_char_const____thiscall_CPrinter::GetModelName_void_const
push eax
call fcn.0042d20d
add esp, 0xc
cmp eax, esi
je 0x42cff0
mov esi, eax
jmp 0x42d15d
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404400
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 2
call fcn.0042a1b6
cmp eax, esi
je 0x42d01d
mov esi, eax
jmp 0x42d14f
mov eax, dword [0x47321c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x42d14a
test byte [ebp - 0x14], 1
je 0x42d13b
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x42d13b
lea ecx, [ebp - 0x58]
call fcn.00429e11
mov dword [ebp - 0x58], 0x45c1f4
mov al, byte [ebp - 0x10]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
mov byte [ebp - 0x1e8], al
call fcn.0042a32f
and byte [ebp - 0x3f0], 0
and byte [ebp - 0x2ec], 0
and byte [ebp - 0x1e7], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x3f0]
push eax
mov byte [ebp - 4], 4
call fcn.0042de03
test eax, eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
setne bl
call fcn.0042a36c
test bl, bl
jne 0x42d12f
lea ecx, [ebp - 0x7c]
call fcn.00429e11
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 5
call sym.HPZshl01.exe_public:_char_const____thiscall_CPrinter::GetModelName_void_const
push eax
call fcn.0042d20d
add esp, 0xc
test eax, eax
jne 0x42d123
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00404400
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 6
call fcn.0042a1b6
test eax, eax
jne 0x42d115
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x34]
push eax
call fcn.00421a0b
test eax, eax
je 0x42d18e
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00404400
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00429e32
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00429e32
shr dword [ebp - 0x14], 1
inc byte [ebp - 0x10]
cmp dword [ebp - 0x14], esi
jne 0x42d036
mov esi, 0x490
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404400
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.00429e32
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00429e32
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x10]
push 1
mov byte [ebp - 4], 5
mov byte [eax], cl
lea ecx, [ebp - 0x24]
call fcn.00404400
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00429e32
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00429e32
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404400
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.00429e32
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00429e32
xor eax, eax
jmp 0x42d17d