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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa74
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.00430f00
mov ebx, eax
cmp ebx, 9
jne 0x43ea35
mov eax, dword [ebp + 8]
push eax
xor bl, bl
mov eax, edi
call fcn.0043e570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 4
jne 0x43ead9
push 0x103
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.0048b674
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x70]
mov word [esp + 0x276], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ea62
sub eax, edx
sar eax, 1
je 0x43ea87
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43ea87
mov ecx, 0x5c
mov word [eax], cx
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea ecx, [esi + 0x12]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x43ea9f
cmp eax, 9
jne 0x43eaa4
add ecx, 2
jmp 0x43ea92
push ecx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.DLL_SetVolumeLabelW]
test eax, eax
mov eax, 0x49c8d4
jne 0x43eabe
mov eax, 0x49f2c4
mov ecx, dword [0x4c264c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4c1de8]
push 1
push 0
push 0xffffffffffffffff
push 0
mov dword [esp + 0x20], ecx
call fcn.00472870
cmp ebx, 8
ja case.0x43eaf9.4
jmp dword [ebx*4 + 0x43ef74]
cmp word [edi], 0
jne 0x43eb10
mov edi, 0x100
jmp 0x43eb9b
push str.CDRom
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x43eb27
lea edi, [eax + 5]
jmp 0x43eb9b
push str.Removable
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x43eb3e
lea edi, [eax + 2]
jmp 0x43eb9b
push str.Fixed
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x43eb55
lea edi, [eax + 3]
jmp 0x43eb9b
push str.Network
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x43eb6c
lea edi, [eax + 4]
jmp 0x43eb9b
push str.Ramdisk
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x43eb83
lea edi, [eax + 6]
jmp 0x43eb9b
push str.Unknown
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
jne case.0x43eaf9.0
xor edi, edi
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov dword [esp + 0x14], 0
mov bl, 0x41
lea ecx, [ecx]
movzx esi, bl
lea eax, [esp + 0x280]
xor edx, edx
push eax
mov word [esp + 0x284], si
mov dword [esp + 0x286], 0x5c003a
mov word [esp + 0x28a], dx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, edi
je 0x43ebef
cmp edi, 0x100
jne 0x43ebfd
cmp eax, 1
je 0x43ebfd
mov eax, dword [esp + 0x14]
mov word [esp + eax*2 + 0x30], si
inc eax
mov dword [esp + 0x14], eax
inc bl
cmp bl, 0x5a
jbe 0x43ebb0
mov edx, dword [esp + 0x14]
xor ecx, ecx
push 1
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov word [esp + edx*2 + 0x3c], cx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00472870
cmp word [esp + 0x30], 0
je case.0x43eaf9.0
jmp case.0x43eaf9.4
push 0x103
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.0048b674
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x70]
mov word [esp + 0x276], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ec57
sub eax, edx
sar eax, 1
je 0x43ec7c
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43ec7c
mov ecx, 0x5c
mov word [eax], cx
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0xff
lea edx, [esp + 0x884]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0xff
lea eax, [esp + 0x498]
push eax
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je case.0x43eaf9.0
mov eax, ebx
sub eax, 2
je 0x43ecff
dec eax
je 0x43ecec
sub eax, 2
jne case.0x43eaf9.4
mov edx, dword [esp + 0x14]
push 0x18
push eax
mov eax, dword [esp + 0x18]
push edx
call fcn.004010e0
jmp case.0x43eaf9.4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x48c]
push eax
jmp 0x43eede
lea ecx, [esp + 0x880]
jmp 0x43eed7
push 0x103
lea edx, [esp + 0x74]
push edi
push edx
call fcn.0048b674
add esp, 0xc
xor eax, eax
mov word [esp + 0x276], ax
lea eax, [esp + 0x70]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ed30
sub eax, edx
sar eax, 1
je 0x43ed55
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43ed55
mov ecx, 0x5c
mov word [eax], cx
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 6
ja case.0x43eaf9.0
jmp dword [eax*4 + 0x43ef98]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x43eede
push 0x103
lea eax, [esp + 0x74]
push edi
push eax
call fcn.0048b674
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x70]
mov word [esp + 0x276], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ee00
sub eax, edx
sar eax, 1
je 0x43ee25
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43ee25
mov edx, 0x5c
mov word [eax], dx
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
test eax, eax
je 0x43ee57
xor eax, eax
jmp 0x43ee66
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x15
ja case.0x43ed71.0
movzx edx, byte [eax + 0x43efc8]
jmp dword [edx*4 + 0x43efb4]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
jmp 0x43eede
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x43eede
cmp word [edi], 0
jne 0x43ef06
push 0
push 0x80
lea eax, [esp + 0x388]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x43eaf9.0
lea ecx, [esp + 0x380]
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00472870
mov ecx, dword [0x4c264c]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d4
call fcn.00472870
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 + 0x688]
call fcn.0046fd90
mov esi, dword [sym.imp.WINMM.dll_mciSendStringW]
add esp, 8
push 0
push 0
push 0
mov ecx, edi
push ecx
call esi
test eax, eax
jne case.0x43eaf9.0
push eax
push 0x80
lea edx, [esp + 0x388]
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
je 0x43eed0
mov eax, dword [ebp + 8]
push eax
call fcn.00431390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4