Function at 0x437bb0
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.0042ad70
mov ebx, eax
cmp ebx, 9
jne 0x437bdf
push 0
mov eax, edi
call fcn.004377a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
jne 0x437c74
push 0x103
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0047a8e0
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 0x437c10
sub eax, edx
je 0x437c29
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x437c29
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 0x437c3e
cmp al, 9
jne 0x437c41
inc ecx
jmp 0x437c34
push ecx
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
mov eax, 0x4900b0
jne 0x437c5b
mov eax, 0x4916f4
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
mov esi, dword [0x4a09d8]
mov dword [esp + 0xc], esi
cmp ebx, 8
ja case.0x437c9d.4
jmp dword [ebx*4 + 0x438140]
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0
jne 0x437cc9
mov edi, 0x100
jmp 0x437d54
push str.CDRom
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437ce0
lea edi, [eax + 5]
jmp 0x437d54
push str.Removable
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437cf7
lea edi, [eax + 2]
jmp 0x437d54
push str.Fixed
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437d0e
lea edi, [eax + 3]
jmp 0x437d54
push str.Network
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437d25
lea edi, [eax + 4]
jmp 0x437d54
push str.Ramdisk
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437d3c
lea edi, [eax + 6]
jmp 0x437d54
push str.Unknown
push edi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x437de2
xor edi, edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0xc], 0
mov bl, 0x41
jmp 0x437d70
lea edx, [esp + 0x150]
push edx
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 0x437da8
cmp edi, 0x100
jne 0x437db5
cmp eax, 1
je 0x437db5
mov eax, dword [esp + 0xc]
mov byte [esp + eax + 0x28], bl
inc eax
mov dword [esp + 0xc], eax
inc bl
cmp bl, 0x5a
jbe 0x437d70
mov eax, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov byte [esp + eax + 0x38], 0
call fcn.004668b0
cmp byte [esp + 0x28], 0
jne case.0x437c9d.4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x103
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.0047a8e0
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 0x437e10
sub eax, edx
je 0x437e29
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x437e29
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0xff
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0xff
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x437c9d.0
mov eax, ebx
sub eax, 2
je 0x437ea9
dec eax
je 0x437e94
sub eax, 2
jne case.0x437c9d.4
push 0x18
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, esi
call fcn.004010d0
jmp case.0x437c9d.4
push 1
push 0
lea ecx, [esp + 0x258]
push 0xffffffffffffffff
push ecx
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x45c]
push edx
mov ecx, esi
jmp 0x43811c
push 0x103
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0047a8e0
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 0x437ee0
sub eax, edx
je 0x437ef9
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x437ef9
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x437c9d.0
jmp dword [eax*4 + 0x438164]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.Removable
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.Network
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
mov ecx, esi
jmp 0x43811c
push 0x103
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.0047a8e0
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 0x437fb0
sub eax, edx
je 0x437fc9
cmp byte [esp + eax + 0x47], 0x5c
lea eax, [esp + eax + 0x48]
je 0x437fc9
mov byte [eax], 0x5c
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x437ff8
xor eax, eax
jmp 0x438007
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x437f15.0
movzx edx, byte [eax + 0x438194]
jmp dword [edx*4 + 0x438180]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
mov ecx, esi
jmp 0x43811c
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
mov ecx, esi
jmp 0x43811c
cmp byte [edi], 0
jne 0x43809a
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
je 0x43810a
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.open__s_type_cdaudio_alias_cd_wait_shareable
mov esi, 0x100
lea edi, [esp + 0x358]
call fcn.00463ff0
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 8
push 0
push 0
push 0
mov ecx, edi
push ecx
call esi
test eax, eax
je 0x4380e1
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
lea edx, [esp + 0x1d8]
push edx
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
jne 0x4380c9
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1dc]
push eax
call fcn.004668b0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret