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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x544
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ecx, edi
call fcn.0042ee20
mov esi, eax
cmp esi, 9
jne 0x43bdbb
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0xc]
call fcn.0043b920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, 4
jne 0x43be47
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00487600
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bde8
sub ecx, edx
je 0x43bdff
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43bdff
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [edi + 9]
mov cl, byte [eax]
cmp cl, 0x20
je 0x43be0e
cmp cl, 9
jne 0x43be11
inc eax
jmp 0x43be02
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 1
test eax, eax
mov edx, 0x49e628
push 0
mov ecx, 0x49bca8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4ad0c8]
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [0x4ae860]
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov dword [esp + 0x20], edi
call fcn.004744e0
cmp esi, 8
ja case.0x43be69.4
jmp dword [esi*4 + 0x43c278]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
jne 0x43be82
mov esi, 0x100
jmp 0x43bf09
push str.CDRom
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x43be99
lea esi, [eax + 5]
jmp 0x43bf09
push str.Removable
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x43beb0
lea esi, [eax + 2]
jmp 0x43bf09
push str.Fixed
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x43bec7
lea esi, [eax + 3]
jmp 0x43bf09
push str.Network
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x43bede
lea esi, [eax + 4]
jmp 0x43bf09
push str.Ramdisk
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne 0x43bef5
lea esi, [eax + 6]
jmp 0x43bf09
push str.Unknown
push esi
call fcn.00484212
add esp, 8
test eax, eax
jne case.0x43be69.0
xor esi, esi
xor edi, edi
mov bl, 0x41
lea ecx, [ecx]
lea eax, [esp + 0x150]
mov byte [esp + 0x150], bl
push eax
mov word [esp + 0x155], 0x5c3a
mov byte [esp + 0x157], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
je 0x43bf48
cmp esi, 0x100
jne 0x43bf4d
cmp eax, 1
je 0x43bf4d
mov byte [esp + edi + 0x28], bl
inc edi
inc bl
cmp bl, 0x5a
jbe 0x43bf10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 1
push 0
push 0xffffffffffffffff
push eax
mov byte [esp + edi + 0x38], 0
call fcn.004744e0
cmp byte [esp + 0x28], 0
jne case.0x43be69.4
mov ecx, dword [esp + 0xc]
call fcn.0042f240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00487600
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bfb0
sub ecx, edx
je 0x43bfc7
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43bfc7
mov byte [esp + ecx + 0x48], 0x5c
push 0xff
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push 0xff
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x43be69.0
sub esi, 2
je 0x43c054
dec esi
je 0x43c020
sub esi, 2
jne case.0x43be69.4
push 0x18
push esi
push dword [esp + 0x18]
mov ecx, edi
call fcn.00401330
jmp case.0x43be69.4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x45c]
push eax
mov ecx, edi
call fcn.004744e0
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x25c]
jmp 0x43c02d
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00487600
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c087
sub ecx, edx
je 0x43c09e
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43c09e
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x43be69.0
jmp dword [eax*4 + 0x43c29c]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x43c02e
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00487600
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c140
sub ecx, edx
je 0x43c157
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43c157
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43c17e
xor eax, eax
jmp 0x43c18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x43c0b2.72
movzx eax, byte [eax + 0x43c2cc]
jmp dword [eax*4 + 0x43c2b8]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
jmp 0x43c02e
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x43c02e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x43c201
push 0
push 0x80
lea eax, [esp + 0x1d8]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
jmp 0x43c260
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x358]
push 0x100
push eax
call fcn.004715d0
mov ebx, dword [sym.imp.WINMM.dll_mciSendStringA]
lea eax, [esp + 0x360]
add esp, 0x10
push 0
push 0
push 0
push eax
call ebx
test eax, eax
jne case.0x43be69.0
push eax
push 0x80
lea eax, [esp + 0x1d8]
push eax
push str.status_cd_mode
call ebx
push 0
push 0
push 0
push str.close_cd_wait
mov esi, eax
call ebx
test esi, esi
jne case.0x43be69.0
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1dc]
jmp 0x43c02d