Function at 0x57b37c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x57b68a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x57b658
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x105
lea eax, [ebp - 0x121]
push eax
lea eax, [ebp - 0x128]
mov edx, ebx
call fcn.004057f8
lea eax, [ebp - 0x128]
mov edx, 0x57b6a4
call fcn.004058dc
mov eax, dword [ebp - 0x128]
call fcn.00405aa0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x57b5d3
lea eax, [ebp - 0x121]
call fcn.0040b674
mov ecx, eax
lea edx, [ebp - 0x121]
mov eax, esi
call fcn.00405700
mov eax, dword [esi]
call fcn.004058d0
test eax, eax
jle 0x57b490
lea edx, [ebp - 0x12c]
mov eax, dword [esi]
call fcn.0040ffb0
mov edx, dword [ebp - 0x12c]
mov eax, esi
call fcn.00405664
mov eax, dword [esi]
movzx eax, byte [eax]
call fcn.00403548
push eax
mov eax, esi
call fcn.00405b00
pop edx
mov byte [eax], dl
lea eax, [ebp - 0x130]
mov edx, ebx
call fcn.004057f8
lea eax, [ebp - 0x130]
mov edx, 0x57b6a4
call fcn.004058dc
mov eax, dword [ebp - 0x130]
call fcn.00405aa0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp al, 4
jne 0x57b59a
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0057b230
movzx eax, byte [ebp - 9]
sub al, 1
jb 0x57b4e7
je 0x57b531
dec al
je 0x57b566
jmp 0x57b5cc
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0057b300
push dword [esi]
push 0x57b6b0
push dword [ebp - 8]
push 0x57b6c0
mov eax, ebx
call fcn.00403548
mov edx, eax
lea eax, [ebp - 0x134]
call fcn.004057f8
push dword [ebp - 0x134]
push 0x57b6cc
mov eax, esi
mov edx, 6
call fcn.004059a4
jmp 0x57b5cc
push dword [ebp - 4]
push 0x57b6d8
mov eax, ebx
call fcn.00403548
mov edx, eax
lea eax, [ebp - 0x138]
call fcn.004057f8
push dword [ebp - 0x138]
push 0x57b6cc
mov eax, esi
mov edx, 4
call fcn.004059a4
jmp 0x57b5cc
push dword [esi]
push 0x57b6d8
mov eax, ebx
call fcn.00403548
mov edx, eax
lea eax, [ebp - 0x13c]
call fcn.004057f8
push dword [ebp - 0x13c]
push 0x57b6cc
mov eax, esi
mov edx, 4
call fcn.004059a4
jmp 0x57b5cc
push dword [esi]
push 0x57b6d8
mov eax, ebx
call fcn.00403548
mov edx, eax
lea eax, [ebp - 0x140]
call fcn.004057f8
push dword [ebp - 0x140]
push 0x57b6cc
mov eax, esi
mov edx, 4
call fcn.004059a4
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
jmp 0x57b641
mov edx, 0x57b6dc
lea eax, [ebp - 0x144]
call fcn.00403a48
mov eax, ebx
call fcn.00403548
mov edx, eax
lea eax, [ebp - 0x148]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x148]
lea eax, [ebp - 0x144]
mov cl, 2
call fcn.00403a18
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x150]
call fcn.00403a48
mov edx, 0x57b6e0
lea eax, [ebp - 0x150]
mov cl, 4
call fcn.00403a18
lea edx, [ebp - 0x150]
mov eax, esi
call fcn.00405874
mov dword [edi], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b65f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
ret