Function at 0x43d100
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 esi, ecx
mov edi, eax
call fcn.0042f940
mov ebx, eax
cmp ebx, 9
jne 0x43d135
mov eax, dword [ebp + 8]
push 0
push eax
mov ecx, edi
call fcn.0043cc90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 4
jne 0x43d1c6
push 0x103
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.00485ee0
lea eax, [esp + 0x54]
add esp, 0xc
mov byte [esp + 0x14b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d160
sub eax, edx
je 0x43d179
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x43d179
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esi + 9]
mov al, byte [ecx]
cmp al, 0x20
je 0x43d18e
cmp al, 9
jne 0x43d191
inc ecx
jmp 0x43d184
push ecx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
mov eax, 0x496860
jne 0x43d1ab
mov eax, 0x497ee0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4a84e4]
push eax
call fcn.00472eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x4a7c78]
mov ecx, esi
mov dword [esp + 0xc], esi
call fcn.00412540
cmp ebx, 8
ja case.0x43d1e0.4
jmp dword [ebx*4 + 0x43d63c]
cmp byte [edi], 0
jne 0x43d1f6
mov edi, 0x100
jmp 0x43d281
push str.CDRom
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x43d20d
lea edi, [eax + 5]
jmp 0x43d281
push str.Removable
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x43d224
lea edi, [eax + 2]
jmp 0x43d281
push str.Fixed
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x43d23b
lea edi, [eax + 3]
jmp 0x43d281
push str.Network
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x43d252
lea edi, [eax + 4]
jmp 0x43d281
push str.Ramdisk
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x43d269
lea edi, [eax + 6]
jmp 0x43d281
push str.Unknown
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne case.0x43d1e0.0
xor edi, edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0xc], 0
mov bl, 0x41
jmp 0x43d2a0
lea ecx, [esp + 0x150]
push ecx
mov byte [esp + 0x154], bl
mov word [esp + 0x155], 0x5c3a
mov byte [esp + 0x157], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, edi
je 0x43d2d8
cmp edi, 0x100
jne 0x43d2e5
cmp eax, 1
je 0x43d2e5
mov eax, dword [esp + 0xc]
mov byte [esp + eax + 0x28], bl
inc eax
mov dword [esp + 0xc], eax
inc bl
cmp bl, 0x5a
jbe 0x43d2a0
mov edx, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push esi
mov byte [esp + edx + 0x3c], 0
call fcn.00472eb0
cmp byte [esp + 0x28], 0
je case.0x43d1e0.0
jmp case.0x43d1e0.4
push 0x103
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.00485ee0
lea eax, [esp + 0x54]
add esp, 0xc
mov byte [esp + 0x14b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d338
sub eax, edx
je 0x43d351
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x43d351
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0xff
lea edx, [esp + 0x454]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xff
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x43d1e0.0
mov eax, ebx
sub eax, 2
je 0x43d3d0
dec eax
je 0x43d3bc
sub eax, 2
jne case.0x43d1e0.4
mov edx, dword [esp + 0xc]
push 0x18
push eax
push edx
mov eax, esi
call fcn.004010d0
jmp case.0x43d1e0.4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x25c]
push eax
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x45c]
push ecx
push esi
jmp 0x43d5a7
push 0x103
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.00485ee0
lea eax, [esp + 0x54]
add esp, 0xc
mov byte [esp + 0x14b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d406
sub eax, edx
je 0x43d41f
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x43d41f
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x43d1e0.0
jmp dword [eax*4 + 0x43d660]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.Removable
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.Network
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
push esi
jmp 0x43d5a7
push 0x103
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.00485ee0
lea eax, [esp + 0x54]
add esp, 0xc
mov byte [esp + 0x14b], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d4d0
sub eax, edx
je 0x43d4e9
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x43d4e9
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43d518
xor eax, eax
jmp 0x43d527
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x43d43b.72
movzx ecx, byte [eax + 0x43d690]
jmp dword [ecx*4 + 0x43d67c]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
push esi
jmp 0x43d5a7
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
push esi
jmp 0x43d5a7
cmp byte [edi], 0
jne 0x43d5cc
push 0
push 0x80
lea edx, [esp + 0x1d8]
push edx
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
jne case.0x43d1e0.0
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1dc]
push eax
push ecx
call fcn.00472eb0
mov edx, dword [0x4a84e4]
push 1
push 0
push 0xffffffffffffffff
push 0x496860
push edx
call fcn.00472eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push str.open__s_type_cdaudio_alias_cd_wait_shareable
mov esi, 0x100
lea edi, [esp + 0x358]
call fcn.00470290
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 8
push 0
push 0
push 0
mov eax, edi
push eax
call esi
test eax, eax
jne case.0x43d1e0.0
push eax
push 0x80
lea ecx, [esp + 0x1d8]
push ecx
push str.status_cd_mode
call esi
push 0
push 0
push 0
push str.close_cd_wait
mov edi, eax
call esi
test edi, edi
je 0x43d594
mov edx, dword [ebp + 8]
push edx
call fcn.0042fdc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4