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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa6c
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.0042eec0
mov ebx, eax
cmp ebx, 9
jne 0x43c35f
xor bl, bl
mov eax, edi
call fcn.0043bf10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
jne 0x43c405
push 0x103
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x68]
mov word [esp + 0x26e], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c390
sub eax, edx
sar eax, 1
je 0x43c3b5
cmp word [esp + eax*2 + 0x66], 0x5c
lea eax, [esp + eax*2 + 0x68]
je 0x43c3b5
mov edx, 0x5c
mov word [eax], dx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esi + 0x12]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x43c3cd
cmp eax, 9
jne 0x43c3d2
add ecx, 2
jmp 0x43c3c0
push ecx
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
mov eax, 0x49b8d0
jne 0x43c3ec
mov eax, 0x49e30c
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
mov esi, dword [0x4c0e18]
mov dword [esp + 0xc], esi
cmp ebx, 8
ja case.0x43c42e.4
jmp dword [ebx*4 + 0x43c90c]
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [edi], 0
jne 0x43c45b
mov edi, 0x100
jmp 0x43c4e6
push str.CDRom
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c472
lea edi, [eax + 5]
jmp 0x43c4e6
push str.Removable
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c489
lea edi, [eax + 2]
jmp 0x43c4e6
push str.Fixed
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c4a0
lea edi, [eax + 3]
jmp 0x43c4e6
push str.Network
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c4b7
lea edi, [eax + 4]
jmp 0x43c4e6
push str.Ramdisk
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c4ce
lea edi, [eax + 6]
jmp 0x43c4e6
push str.Unknown
push edi
call fcn.00486339
add esp, 8
test eax, eax
jne 0x43c57e
xor edi, edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0x10], 0
mov bl, 0x41
jmp 0x43c500
movzx esi, bl
lea ecx, [esp + 0x278]
xor eax, eax
push ecx
mov word [esp + 0x27c], si
mov dword [esp + 0x27e], 0x5c003a
mov word [esp + 0x282], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, edi
je 0x43c53f
cmp edi, 0x100
jne 0x43c54d
cmp eax, 1
je 0x43c54d
mov eax, dword [esp + 0x10]
mov word [esp + eax*2 + 0x28], si
inc eax
mov dword [esp + 0x10], eax
inc bl
cmp bl, 0x5a
jbe 0x43c500
mov eax, dword [esp + 0x10]
push 1
xor edx, edx
push edx
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + eax*2 + 0x38], dx
call fcn.0046dd60
cmp word [esp + 0x28], 0
jne case.0x43c42e.4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x103
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.00488d24
add esp, 0xc
xor eax, eax
mov word [esp + 0x26e], ax
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c5b0
sub eax, edx
sar eax, 1
je 0x43c5d5
cmp word [esp + eax*2 + 0x66], 0x5c
lea eax, [esp + eax*2 + 0x68]
je 0x43c5d5
mov ecx, 0x5c
mov word [eax], cx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0xff
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push 0xff
lea eax, [esp + 0x890]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x43c42e.0
mov eax, ebx
sub eax, 2
je 0x43c651
dec eax
je 0x43c643
sub eax, 2
jne case.0x43c42e.4
mov edx, dword [esp + 0x10]
push 0x18
push eax
push edx
mov eax, esi
call fcn.004010e0
jmp case.0x43c42e.4
lea eax, [esp + 0x878]
mov ecx, esi
jmp 0x43c8e2
push 1
push 0
lea ecx, [esp + 0x480]
push 0xffffffffffffffff
push ecx
mov ecx, esi
jmp 0x43c8e9
push 0x103
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.00488d24
add esp, 0xc
xor eax, eax
mov word [esp + 0x26e], ax
lea eax, [esp + 0x68]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c690
sub eax, edx
sar eax, 1
je 0x43c6b5
cmp word [esp + eax*2 + 0x66], 0x5c
lea eax, [esp + eax*2 + 0x68]
je 0x43c6b5
mov ecx, 0x5c
mov word [eax], cx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x43c42e.0
jmp dword [eax*4 + 0x43c930]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.Removable
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.Network
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
mov ecx, esi
jmp 0x43c8e9
push 0x103
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x68]
mov word [esp + 0x26e], cx
lea edx, [eax + 2]
jmp 0x43c770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c770
sub eax, edx
sar eax, 1
je 0x43c795
cmp word [esp + eax*2 + 0x66], 0x5c
lea eax, [esp + eax*2 + 0x68]
je 0x43c795
mov edx, 0x5c
mov word [eax], dx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x43c7c4
xor eax, eax
jmp 0x43c7d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x43c6d1.0
movzx edx, byte [eax + 0x43c960]
jmp dword [edx*4 + 0x43c94c]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
mov ecx, esi
jmp 0x43c8e9
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
mov ecx, esi
jmp 0x43c8e9
cmp word [edi], 0
jne 0x43c867
push 0
push 0x80
lea eax, [esp + 0x380]
push eax
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
je 0x43c8d7
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0046dd60
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 + 0x680]
call fcn.0046b300
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
je 0x43c8ae
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
lea edx, [esp + 0x380]
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 0x43c896
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x378]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret