Function at 0x43d260
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 edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ecx, edi
call fcn.00430300
mov esi, eax
cmp esi, 9
jne 0x43d29b
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0xc]
call fcn.0043ce00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, 4
jne 0x43d327
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00488ae0
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d2c8
sub ecx, edx
je 0x43d2df
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43d2df
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [edi + 9]
mov cl, byte [eax]
cmp cl, 0x20
je 0x43d2ee
cmp cl, 9
jne 0x43d2f1
inc eax
jmp 0x43d2e2
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push 1
test eax, eax
mov edx, 0x4a09f8
push 0
mov ecx, 0x49e080
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4af094]
call fcn.004759c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [0x4b0840]
mov ecx, edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov dword [esp + 0x20], edi
call fcn.004759c0
cmp esi, 8
ja case.0x43d349.4
jmp dword [esi*4 + 0x43d758]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
jne 0x43d362
mov esi, 0x100
jmp 0x43d3e9
push str.CDRom
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x43d379
lea esi, [eax + 5]
jmp 0x43d3e9
push str.Removable
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x43d390
lea esi, [eax + 2]
jmp 0x43d3e9
push str.Fixed
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x43d3a7
lea esi, [eax + 3]
jmp 0x43d3e9
push str.Network
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x43d3be
lea esi, [eax + 4]
jmp 0x43d3e9
push str.Ramdisk
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x43d3d5
lea esi, [eax + 6]
jmp 0x43d3e9
push str.Unknown
push esi
call fcn.004855c8
add esp, 8
test eax, eax
jne case.0x43d349.0
xor esi, esi
xor edi, edi
mov bl, 0x41
lea ecx, [ecx]
lea eax, [esp + 0x150]
mov byte [esp + 0x150], bl
push eax
mov word [esp + 0x155], 0x5c3a
mov byte [esp + 0x157], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
je 0x43d428
cmp esi, 0x100
jne 0x43d42d
cmp eax, 1
je 0x43d42d
mov byte [esp + edi + 0x28], bl
inc edi
inc bl
cmp bl, 0x5a
jbe 0x43d3f0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 1
push 0
push 0xffffffffffffffff
push eax
mov byte [esp + edi + 0x38], 0
call fcn.004759c0
cmp byte [esp + 0x28], 0
jne case.0x43d349.4
mov ecx, dword [esp + 0xc]
call fcn.00430720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00488ae0
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d490
sub ecx, edx
je 0x43d4a7
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43d4a7
mov byte [esp + ecx + 0x48], 0x5c
push 0xff
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push 0xff
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je case.0x43d349.0
sub esi, 2
je 0x43d534
dec esi
je 0x43d500
sub esi, 2
jne case.0x43d349.4
push 0x18
push esi
push dword [esp + 0x18]
mov ecx, edi
call fcn.00402370
jmp case.0x43d349.4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x45c]
push eax
mov ecx, edi
call fcn.004759c0
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x49e080
call fcn.004759c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x25c]
jmp 0x43d50d
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00488ae0
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d567
sub ecx, edx
je 0x43d57e
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43d57e
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x43d349.0
jmp dword [eax*4 + 0x43d77c]
push 1
push 0
push 0xffffffffffffffff
push str.Unknown
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.Removable
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.Fixed
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.Network
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.CDROM
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.RAMDisk
jmp 0x43d50e
push 0x103
push dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.00488ae0
lea ecx, [esp + 0x54]
mov byte [esp + 0x157], 0
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d620
sub ecx, edx
je 0x43d637
cmp byte [esp + ecx + 0x47], 0x5c
je 0x43d637
mov byte [esp + ecx + 0x48], 0x5c
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43d65e
xor eax, eax
jmp 0x43d66d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja case.0x43d592.72
movzx eax, byte [eax + 0x43d7ac]
jmp dword [eax*4 + 0x43d798]
push 1
push 0
push 0xffffffffffffffff
push str.Ready
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.Invalid
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.NotReady
jmp 0x43d50e
push 1
push 0
push 0xffffffffffffffff
push str.ReadOnly
jmp 0x43d50e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x43d6e1
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
jmp 0x43d740
push eax
push str.open__s_type_cdaudio_alias_cd_wait_shareable
lea eax, [esp + 0x358]
push 0x100
push eax
call fcn.00472ab0
mov ebx, dword [sym.imp.WINMM.dll_mciSendStringA]
lea eax, [esp + 0x360]
add esp, 0x10
push 0
push 0
push 0
push eax
call ebx
test eax, eax
jne case.0x43d349.0
push eax
push 0x80
lea eax, [esp + 0x1d8]
push eax
push str.status_cd_mode
call ebx
push 0
push 0
push 0
push str.close_cd_wait
mov esi, eax
call ebx
test esi, esi
jne case.0x43d349.0
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1dc]
jmp 0x43d50d