Function at 0x5c7900
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x438], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x10]
push 0x21c
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x218], eax
push ebx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x5c79a1
lea ecx, [esi*2 + 2]
push 0x4c435351
push ecx
call fcn.004f3590
add esp, 8
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x5c7988
lea edi, [ebx + 0xc]
jmp 0x5c79fb
push eax
lea eax, [esi + 1]
push eax
call edi
test eax, eax
jne 0x5c79a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
jmp 0x5c79e8
mov esi, dword [ebp - 0x220]
cmp word [esi], bx
je 0x5c79dc
nop dword [eax]
push 0
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.005c8f70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5c79f5
push esi
call fcn.004f36b0
add esp, 4
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], bx
jne 0x5c79b0
lea eax, [ebp - 0x220]
push eax
call fcn.005c93d0
mov edi, eax
add esp, 4
test edi, edi
je 0x5c7a9e
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov esi, edx
test esi, esi
je 0x5c7a89
nop dword [eax + eax]
mov ebx, dword [esi + 8]
mov eax, dword [edx + 8]
cmp edx, esi
jne 0x5c7a32
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x5c7a5b
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], eax
jmp 0x5c7a5b
cmp eax, esi
je 0x5c7a3f
mov edx, eax
mov eax, dword [edx + 8]
cmp eax, esi
jne 0x5c7a36
mov eax, dword [edx + 8]
add edx, 8
mov eax, dword [eax + 8]
test eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0x218]
cmove ecx, edx
mov dword [ebp - 0x218], ecx
push dword [esi]
call fcn.004f3570
push dword [esi + 4]
call fcn.004f3570
push esi
call fcn.004f3570
add esp, 0xc
mov esi, ebx
test ebx, ebx
je 0x5c7a81
mov edx, dword [ebp - 0x21c]
jmp 0x5c7a10
mov eax, dword [ebp - 0x220]
xor ebx, ebx
test eax, eax
je 0x5c7a96
push eax
call fcn.004f3570
add esp, 4
test edi, edi
jne 0x5c7b92
mov esi, dword [ebp - 0x438]
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.005c9550
add esp, 8
test eax, eax
je 0x5c7b05
cmp eax, 0x3f0
jne 0x5c7b0b
xor edi, edi
mov edx, dword [ebp - 0x21c]
mov esi, edx
test esi, esi
je 0x5c7b80
mov ebx, dword [esi + 8]
mov eax, dword [edx + 8]
cmp edx, esi
jne 0x5c7b2e
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x5c7b57
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], eax
jmp 0x5c7b57
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x224], 0
je 0x5c7ab0
push dword [ebp - 0x434]
push dword [ebp - 0x43c]
push ebx
call esi
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5c7ab0
jmp 0x5c7ad3
cmp eax, esi
je 0x5c7b3b
mov edx, eax
mov eax, dword [edx + 8]
cmp eax, esi
jne 0x5c7b32
mov eax, dword [edx + 8]
add edx, 8
mov eax, dword [eax + 8]
test eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0x218]
cmove ecx, edx
mov dword [ebp - 0x218], ecx
push dword [esi]
call fcn.004f3570
push dword [esi + 4]
call fcn.004f3570
push esi
call fcn.004f3570
add esp, 0xc
mov esi, ebx
test ebx, ebx
je 0x5c7b80
mov edx, dword [ebp - 0x21c]
jmp 0x5c7ae3
push dword [ebp - 0x220]
call fcn.004f3570
add esp, 4
test edi, edi
je 0x5c7ba2
cmp edi, 0x3fb
je 0x5c7ba2
mov eax, dword [ebp - 0x434]
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063c972
mov esp, ebp
pop ebp
ret