Function at 0x5b08d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5b0b2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41bc08]
call fcn.00403d78
mov dword [ebp - 0x28], eax
push 0x5b0b44
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x5b0961
push 0x5b0b54
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x5b0b68
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x18], eax
push 0x5b0b78
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x5b0b88
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], 0
je 0x5b09ca
cmp dword [ebp - 0x18], 0
je 0x5b09ca
cmp dword [ebp - 0x1c], 0
je 0x5b09ca
mov eax, 0x104
call fcn.00402e64
mov ebx, eax
push 0x104
push ebx
call dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b09bd
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x5b09af
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.0040d0f0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x104
push ebx
push edi
call dword [ebp - 0x18]
test eax, eax
jne 0x5b098f
push edi
call dword [ebp - 0x1c]
mov eax, ebx
call fcn.00402e94
jmp 0x5b0a3c
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor ebx, ebx
mov eax, ebx
cmp eax, 0x1f
ja 0x5b09dd
bt edi, eax
jae 0x5b0a36
lea eax, [ebp - 0x4c]
lea edx, [ebx + 0x41]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x50]
call fcn.00403510
mov edx, 0x5b0bac
lea eax, [ebp - 0x50]
mov cl, 2
call fcn.004034e0
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x44]
call fcn.00404f38
mov eax, dword [ebp - 0x44]
call fcn.00405194
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 2
je 0x5b0a36
add eax, 0xfffffffe
sub eax, 3
jb 0x5b0a36
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x1a
jne 0x5b09d3
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5b0af4
inc ebx
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.00405194
push eax
mov eax, dword [0x5cfc04]
mov eax, dword [eax]
call eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
add eax, dword [ebp - 0x38]
adc edx, dword [ebp - 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x40]
adc edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0xc]
jne 0x5b0ae0
cmp eax, dword [ebp - 0x10]
jbe 0x5b0aee
jmp 0x5b0ae2
jle 0x5b0aee
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x2c]
dec ebx
jne 0x5b0a7e
mov eax, dword [ebp - 0x28]
call fcn.00403da8
cmp dword [ebp - 0x24], 0
je 0x5b0b0b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b0b35
lea eax, [ebp - 0x54]
call fcn.00404cd4
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404cf8
ret