Function at 0x4f1cec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8b7610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
mov al, byte [ecx + 5]
mov dword [ebp - 0x18], ecx
test al, al
je 0x4f1e71
mov esi, ecx
mov al, byte [esi + 4]
test al, al
je 0x4f1db3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ebx, 0x43
mov eax, 0x43
mov edx, 1
lea ecx, [eax - 0x41]
shl edx, cl
test edx, esi
je 0x4f1da3
lea edx, [ebp - 0xd4]
push eax
push 0xa0eb64
push edx
call fcn.0089882d
add esp, 0xc
lea edi, [ebp - 0xd4]
mov ecx, 3
xor edx, edx
push edx
push edx
push ecx
push edx
push ecx
push DirectSoundCreate
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f1da3
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0xd4]
push ebx
push edx
push edi
call fcn.004f098c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
movsx eax, bl
cmp eax, 0x5a
jle 0x4f1d43
jmp 0x4f1e81
mov eax, ecx
call dword [eax + 8]
movzx edx, al
mov dword [ebp - 0x48], edx
mov dword [esi + 0x6c], edx
xor eax, eax
mov dword [ebp - 0x3c], eax
test edx, edx
jle 0x4f1ee3
mov ebx, esi
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x1c4]
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x40], ecx
lea esi, [ebx + 0x74]
mov dword [ebp - 0x44], esi
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x30], eax
movzx ecx, dl
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x14], eax
movzx ecx, dl
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x230]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x22e], bl
mov byte [ebp - 0x230], 1
movzx ebx, dl
mov byte [ebp - 0x228], al
mov byte [ebp - 0x227], bl
lea ecx, [ebp - 0x230]
push ecx
call dword [esi + 0xc]
pop ecx
mov al, byte [ebp - 0x22f]
cmp al, 1
je 0x4f1eff
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp eax, 8
jl 0x4f1e0d
jmp 0x4f2424
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor edx, edx
lea eax, [ebp - 0x94]
push edx
push 0xa0ebb4
push eax
call fcn.0089882d
add esp, 0xc
lea ecx, [ebp - 0x94]
mov edx, 3
xor eax, eax
push eax
push eax
push edx
push eax
push edx
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f1ee3
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x94]
push 0
push edx
push esi
call fcn.004f098c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
movsx edx, bl
cmp edx, 0x7f
jle 0x4f1e85
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x226]
cmp al, 5
je 0x4f1f11
test al, al
jne 0x4f1e5e
lea edx, [ebp - 0x224]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x224], 2
mov cl, 0
mov byte [ebp - 0x221], 0x48
mov byte [ebp - 0x222], al
mov byte [ebp - 0x21c], dl
mov byte [ebp - 0x210], 0xe
mov byte [ebp - 0x21b], bl
mov byte [ebp - 0x20f], 6
mov ebx, 0x60
mov byte [ebp - 0x1f4], 0x12
mov dword [ebp - 0x218], ebx
lea esi, [ebp - 0x1d4]
mov dword [ebp - 0x214], esi
mov byte [ebp - 0x1f2], cl
mov byte [ebp - 0x1f1], cl
mov byte [ebp - 0x1f0], bl
mov byte [ebp - 0x1ef], cl
mov ecx, dword [ebp - 0x18]
lea edi, [ebp - 0x224]
push edi
call fcn.004f0728
mov dword [ebp - 0x10c], 0
push 0x38
call fcn.00898760
mov dword [ebp - 0x24], eax
add esp, 4
mov dword [ebp - 0x108], eax
test eax, eax
je 0x4f241a
mov dword [ebp - 0x10c], 1
mov dword [ebp - 4], 0
mov edi, eax
mov dword [edi + 0x28], 0x1f
mov esi, 0xa0ea90
mov dword [edi + 4], esi
mov byte [edi + 0x2d], 1
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], eax
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], eax
mov dword [edi], eax
mov dword [ebp - 0x10c], eax
mov byte [edi + 0x2c], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], edx
lea edi, [ebp - 0x104]
mov dword [ebx + 0x20], ecx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov edx, dword [ebp - 0x38]
lea ebx, [ebp - 0x104]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebp - 0xe4], 0xa0ea90
mov dword [ebp - 0xe0], 0
lea edi, [ebp - 0x104]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f20ba
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f20ae
add eax, 1
push eax
call fcn.00898760
pop ecx
mov dword [ebp - 0xe0], eax
lea edi, [ebp - 0x104]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f20d2
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0xe0]
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
test edi, edi
je 0x4f2152
mov eax, edx
mov eax, dword [eax + 4]
test eax, eax
je 0x4f2110
push eax
call fcn.00888fb0
pop ecx
mov edi, dword [ebp - 0xe0]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f2126
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f211a
add eax, 1
push eax
call fcn.00898760
pop ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov edi, dword [ebp - 0xe0]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f213e
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xe4], 0xa0ea90
test edi, edi
je 0x4f216e
push edi
call fcn.00888fb0
pop ecx
mov dword [ebp - 0xe0], 0
lea edx, [ebp - 0x104]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov ebx, dword [ebp - 0x34]
lea edi, [ebp - 0x104]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [ebp - 0x238], 0xa0ea90
mov dword [ebp - 0x234], 0
lea edi, [ebp - 0x104]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f21e6
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f21da
add eax, 1
push eax
call fcn.00898760
pop ecx
mov dword [ebp - 0x234], eax
lea edi, [ebp - 0x104]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f21fe
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x234]
lea edx, [eax + 0xc]
mov dword [ebp - 0x28], edx
test edi, edi
je 0x4f227e
mov eax, edx
mov eax, dword [eax + 4]
test eax, eax
je 0x4f223c
push eax
call fcn.00888fb0
pop ecx
mov edi, dword [ebp - 0x234]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f2252
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f2246
add eax, 1
push eax
call fcn.00898760
pop ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov edi, dword [ebp - 0x234]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f226a
mov edi, dword [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x238], 0xa0ea90
test edi, edi
je 0x4f229a
push edi
call fcn.00888fb0
pop ecx
mov dword [ebp - 0x234], 0
lea edx, [ebp - 0x104]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x104]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [ebp - 0xdc], 0xa0ea90
mov dword [ebp - 0xd8], 0
lea edi, [ebp - 0x104]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f2300
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f22f4
add eax, 1
push eax
call fcn.00898760
pop ecx
mov dword [ebp - 0xd8], eax
lea edi, [ebp - 0x104]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f2318
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0xd8]
lea ebx, [eax + 0x14]
test edi, edi
je 0x4f2390
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f2351
push eax
call fcn.00888fb0
pop ecx
mov edi, dword [ebp - 0xd8]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4f2367
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4f235b
add eax, 1
push eax
call fcn.00898760
pop ecx
mov dword [ebx + 4], eax
mov edi, dword [ebp - 0xd8]
mov esi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4f237c
mov edi, dword [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xdc], 0xa0ea90
test edi, edi
je 0x4f23ac
push edi
call fcn.00888fb0
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
push eax
mov dword [ebp - 0xd8], 0
push edx
push ebx
mov ebx, dword [ebp - 0x2c]
push ecx
push ebx
call fcn.004efb14
add esp, 0x14
mov ebx, dword [ebp - 0x24]
mov byte [ebx + 0x2c], al
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4f23ee
mov eax, dword [eax + 0x7c]
mov ebx, eax
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f23e5
mov eax, dword [ebp - 0x24]
push 0xc
mov dword [ebx + 4], eax
call fcn.00898760
pop ecx
test eax, eax
je 0x4f2416
mov dword [eax], 0xa0ea98
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [ebx + 8], eax
jmp 0x4f1e5e
xor eax, eax
jmp 0x4f240e
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4f203c
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp eax, 0xf
jl 0x4f1dff
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp eax, edx
jl 0x4f1df1
jmp 0x4f1ee3