Function at 0x42f6c0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x338
push ebx
mov ebx, dword [esp + 0x340]
push esi
push edi
push ebx
mov esi, ecx
call fcn.0040f880
mov edi, eax
add esp, 4
cmp edi, 8
jne 0x42f6ff
mov eax, dword [esp + 0x34c]
push 0
push eax
mov ecx, esi
call fcn.0042f4e0
pop edi
pop esi
pop ebx
add esp, 0x338
ret 8
cmp edi, 4
jne 0x42f79a
mov ecx, dword [esp + 0x34c]
push 0x103
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00443880
lea eax, [esp + 0x48]
add esp, 0xc
mov byte [esp + 0x13f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f731
sub eax, edx
je 0x42f74c
mov cl, byte [esp + eax + 0x3b]
cmp cl, 0x5c
lea eax, [esp + eax + 0x3c]
je 0x42f74c
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea ecx, [ebx + 9]
mov al, byte [ecx]
cmp al, 0x20
je 0x42f761
cmp al, 9
jne 0x42f764
inc ecx
jmp 0x42f757
push ecx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
test eax, eax
mov eax, 0x44f664
jne 0x42f77e
mov eax, 0x452c78
mov ecx, dword [0x45de54]
push 0
push 0xffffffffffffffff
push eax
call fcn.0043e8a0
pop edi
pop esi
pop ebx
add esp, 0x338
ret 8
mov ecx, dword [0x45de54]
push ebp
push 0
push 0xffffffffffffffff
push 0x452c78
call fcn.0043e8a0
push 1
push 0
mov ecx, esi
call fcn.00415da0
mov ebp, eax
test ebp, ebp
jne 0x42f7cd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x338
ret 8
cmp edi, 7
ja case.0x42f7d6.4
jmp dword [edi*4 + 0x42fb98]
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.0043e8a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x338
ret 8
mov esi, dword [esp + 0x350]
cmp byte [esi], 0
jne 0x42f80d
mov esi, 0x63
jmp 0x42f8a2
push str.CDRom
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f826
mov esi, 5
jmp 0x42f8a2
push str.Removable
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f83f
mov esi, 2
jmp 0x42f8a2
push str.Fixed
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f858
mov esi, 3
jmp 0x42f8a2
push str.Network
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f871
mov esi, 4
jmp 0x42f8a2
push str.Ramdisk
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f88a
mov esi, 6
jmp 0x42f8a2
push str.Unknown
push esi
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x42f930
xor esi, esi
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov dword [esp + 0x10], 0
mov bl, 0x41
lea ebx, [ebx]
lea ecx, [esp + 0x148]
push ecx
mov byte [esp + 0x14c], bl
mov byte [esp + 0x14d], 0x3a
mov byte [esp + 0x14e], 0x5c
mov byte [esp + 0x14f], 0
call edi
cmp eax, esi
je 0x42f8f7
cmp esi, 0x63
jne 0x42f904
cmp eax, 1
je 0x42f904
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x20], bl
inc eax
mov dword [esp + 0x10], eax
inc bl
cmp bl, 0x5a
jbe 0x42f8c0
mov edx, dword [esp + 0x10]
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
mov byte [esp + edx + 0x2c], 0
call fcn.0043e8a0
mov al, byte [esp + 0x20]
test al, al
jne case.0x42f7d6.4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x338
ret 8
mov ecx, dword [esp + 0x350]
push 0x104
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00401050
lea eax, [esp + 0x4c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f963
sub eax, edx
je 0x42f97e
mov cl, byte [esp + eax + 0x3f]
cmp cl, 0x5c
lea eax, [esp + eax + 0x40]
je 0x42f97e
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0xff
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0xff
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je case.0x42f7d6.0
mov eax, edi
sub eax, 2
je 0x42f9f7
dec eax
je 0x42f9e6
sub eax, 2
jne case.0x42f7d6.4
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebp
call fcn.0043fab0
jmp case.0x42f7d6.4
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x150]
push ecx
jmp 0x42fb6d
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x250]
push edx
jmp 0x42fb6d
mov eax, dword [esp + 0x350]
push 0x104
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00401050
lea eax, [esp + 0x4c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fa30
sub eax, edx
je 0x42fa4b
mov cl, byte [esp + eax + 0x3f]
cmp cl, 0x5c
lea eax, [esp + eax + 0x40]
je 0x42fa4b
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 6
ja case.0x42f7d6.0
jmp dword [eax*4 + 0x42fbb8]
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x42fb6d
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x42fb6d
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x42fb6d
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x42fb6d
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x42fb6d
mov eax, dword [esp + 0x350]
push 0x104
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00401050
lea eax, [esp + 0x4c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fad5
sub eax, edx
je 0x42faf0
mov cl, byte [esp + eax + 0x3f]
cmp cl, 0x5c
lea eax, [esp + eax + 0x40]
je 0x42faf0
mov byte [eax], 0x5c
push 1
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
jne 0x42fb2a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp esi, 0x15
ja case.0x42fa67.0
movzx ecx, byte [esi + 0x42fbe8]
jmp dword [ecx*4 + 0x42fbd4]
push 0
push 0xffffffffffffffff
push str.Unknown
mov ecx, ebp
call fcn.0043e8a0
mov ecx, dword [0x45de54]
push 0
push 0xffffffffffffffff
push 0x44f664
call fcn.0043e8a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x338
ret 8