Function at 0x43ee20
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.004305f0
mov ebx, eax
cmp ebx, 9
jne 0x43ee55
mov eax, dword [ebp + 8]
push eax
xor bl, bl
mov ecx, edi
call fcn.0043e9a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 4
jne 0x43eef7
push 0x103
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.00490814
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 0x43ee82
sub eax, edx
sar eax, 1
je 0x43eea7
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43eea7
mov ecx, 0x5c
mov word [eax], cx
lea ecx, [esi + 0x12]
lea ebx, [ebx]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x43eebd
cmp eax, 9
jne 0x43eec2
add ecx, 2
jmp 0x43eeb0
push ecx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
mov eax, 0x4a1918
jne 0x43eedc
mov eax, 0x4a4440
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c8ca8]
push eax
call fcn.00477430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4c83f0]
mov dword [esp + 0x10], ecx
call fcn.004133a0
cmp ebx, 8
ja case.0x43ef0f.4
jmp dword [ebx*4 + 0x43f3a8]
cmp word [edi], 0
jne 0x43ef26
mov edi, 0x100
jmp 0x43efb1
push str.CDRom
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne 0x43ef3d
lea edi, [eax + 5]
jmp 0x43efb1
push str.Removable
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne 0x43ef54
lea edi, [eax + 2]
jmp 0x43efb1
push str.Fixed
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne 0x43ef6b
lea edi, [eax + 3]
jmp 0x43efb1
push str.Network
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne 0x43ef82
lea edi, [eax + 4]
jmp 0x43efb1
push str.Ramdisk
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne 0x43ef99
lea edi, [eax + 6]
jmp 0x43efb1
push str.Unknown
push edi
call fcn.0048db19
add esp, 8
test eax, eax
jne case.0x43ef0f.0
xor edi, edi
mov dword [esp + 0x14], 0
mov bl, 0x41
jmp 0x43efc0
movzx esi, bl
lea ecx, [esp + 0x280]
xor eax, eax
push ecx
mov word [esp + 0x284], si
mov dword [esp + 0x286], 0x5c003a
mov word [esp + 0x28a], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, edi
je 0x43efff
cmp edi, 0x100
jne 0x43f00d
cmp eax, 1
je 0x43f00d
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 0x43efc0
mov eax, dword [esp + 0x14]
push 1
xor edx, edx
push edx
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
mov word [esp + eax*2 + 0x3c], dx
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00477430
cmp word [esp + 0x30], 0
je case.0x43ef0f.0
jmp case.0x43ef0f.4
push 0x103
lea eax, [esp + 0x74]
push edi
push eax
call fcn.00490814
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x70]
mov word [esp + 0x276], cx
lea edx, [eax + 2]
jmp 0x43f070
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f070
sub eax, edx
sar eax, 1
je 0x43f095
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43f095
mov edx, 0x5c
mov word [eax], dx
push 0xff
lea eax, [esp + 0x884]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0xff
lea ecx, [esp + 0x498]
push ecx
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x43ef0f.0
mov eax, ebx
sub eax, 2
je 0x43f115
dec eax
je 0x43f0fd
sub eax, 2
jne case.0x43ef0f.4
push 0x18
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
call fcn.004010e0
jmp case.0x43ef0f.4
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x48c]
push ecx
push edx
jmp 0x43f313
lea eax, [esp + 0x880]
jmp 0x43f307
push 0x103
lea edx, [esp + 0x74]
push edi
push edx
call fcn.00490814
add esp, 0xc
xor eax, eax
mov word [esp + 0x276], ax
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f145
sub eax, edx
sar eax, 1
je 0x43f16a
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43f16a
mov ecx, 0x5c
mov word [eax], cx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x43ef0f.0
jmp dword [eax*4 + 0x43f3cc]
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
push eax
jmp 0x43f313
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x43f30e
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
push edx
jmp 0x43f313
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Network
push eax
jmp 0x43f313
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x43f30e
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
push edx
jmp 0x43f313
push 0x103
lea eax, [esp + 0x74]
push edi
push eax
call fcn.00490814
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x70]
mov word [esp + 0x276], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f220
sub eax, edx
sar eax, 1
je 0x43f245
cmp word [esp + eax*2 + 0x6e], 0x5c
lea eax, [esp + eax*2 + 0x70]
je 0x43f245
mov edx, 0x5c
mov word [eax], dx
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 0x43f26f
xor eax, eax
jmp 0x43f27a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x43f281.1
movzx edx, byte [eax + 0x43f3fc]
jmp dword [edx*4 + 0x43f3e8]
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
push eax
jmp 0x43f313
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x43f30e
mov edx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
push edx
jmp 0x43f313
mov eax, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
push eax
jmp 0x43f313
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x43f30e
cmp word [edi], 0
jne 0x43f338
push 0
push 0x80
lea edx, [esp + 0x388]
push edx
push str.status_cdaudio_mode
call dword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x43ef0f.0
lea eax, [esp + 0x380]
push 1
push 0
push 0xffffffffffffffff
push eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00477430
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1918
push edx
call fcn.00477430
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.00474620
mov esi, dword [sym.imp.WINMM.dll_mciSendStringW]
add esp, 8
push 0
push 0
push 0
mov eax, edi
push eax
call esi
test eax, eax
jne case.0x43ef0f.0
push eax
push 0x80
lea ecx, [esp + 0x388]
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 0x43f300
mov edx, dword [ebp + 8]
push edx
call fcn.00430a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4