Function at 0x58d1e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x88
push 0
push 0
dec ecx
jne 0x58d1ec
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x58d5f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x7d3404]
call fcn.0058d6a0
mov dl, 1
mov eax, dword [0x424da0]
call fcn.00424ea0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x58d5c6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.00424f40
lea edx, [ebp - 0x420]
mov eax, 0x58d1d4
call fcn.00407780
mov edx, dword [ebp - 0x420]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00424fa4
test al, al
jne 0x58d285
lea edx, [ebp - 0x424]
mov eax, 0x58d1dc
call fcn.00407780
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00424fa4
test al, al
je 0x58d413
lea ecx, [ebp - 4]
mov edx, 0x58d60c
mov eax, dword [ebp - 8]
call fcn.00425330
cmp dword [ebp - 4], 0
je 0x58d307
mov edx, dword [0x58a8a0]
mov eax, 0x1c
call fcn.004064fc
mov esi, eax
mov byte [esi + 0x10], 1
lea eax, [esi + 4]
mov edx, 0x58d61c
call fcn.00405288
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x58d61c
call fcn.00405288
lea edx, [ebp - 0x428]
mov eax, dword [ebp - 4]
call fcn.0058d02c
mov edx, dword [ebp - 0x428]
lea eax, [esi + 0xc]
call fcn.00405288
mov al, 1
call fcn.0058c9d0
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x7d3404]
call fcn.0041b0d8
lea ecx, [ebp - 4]
mov edx, 0x58d62c
mov eax, dword [ebp - 8]
call fcn.00425330
cmp dword [ebp - 4], 0
je 0x58d389
mov edx, dword [0x58a8a0]
mov eax, 0x1c
call fcn.004064fc
mov esi, eax
mov byte [esi + 0x10], 3
lea eax, [esi + 4]
mov edx, 0x58d640
call fcn.00405288
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x58d640
call fcn.00405288
lea edx, [ebp - 0x42c]
mov eax, dword [ebp - 4]
call fcn.0058d02c
mov edx, dword [ebp - 0x42c]
lea eax, [esi + 0xc]
call fcn.00405288
mov al, 3
call fcn.0058c9d0
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x7d3404]
call fcn.0041b0d8
lea ecx, [ebp - 4]
mov edx, 0x58d654
mov eax, dword [ebp - 8]
call fcn.00425330
cmp dword [ebp - 4], 0
je 0x58d40b
mov edx, dword [0x58a8a0]
mov eax, 0x1c
call fcn.004064fc
mov esi, eax
mov byte [esi + 0x10], 2
lea eax, [esi + 4]
mov edx, 0x58d668
call fcn.00405288
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x58d668
call fcn.00405288
lea edx, [ebp - 0x430]
mov eax, dword [ebp - 4]
call fcn.0058d02c
mov edx, dword [ebp - 0x430]
lea eax, [esi + 0xc]
call fcn.00405288
mov al, 2
call fcn.0058c9d0
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x7d3404]
call fcn.0041b0d8
mov eax, dword [ebp - 8]
call fcn.00424f10
lea eax, [ebp - 0x41c]
push eax
push 0x400
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, eax
mov eax, 0xff
call fcn.00402f80
mov dword [ebp - 0xc], eax
mov eax, 0x64
call fcn.00402f80
mov dword [ebp - 0x10], eax
mov edi, ebx
test edi, edi
jns 0x58d449
add edi, 3
sar edi, 2
dec edi
test edi, edi
jl 0x58d5a0
inc edi
lea ebx, [ebp - 0x41c]
push ebx
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jae 0x58d596
mov edx, dword [0x58a8a0]
mov eax, 0x1c
call fcn.004064fc
mov esi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0xff
call fcn.0047eb7c
push 0x64
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xff
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x58d4c5
lea eax, [ebp - 4]
mov edx, 0x58d67c
call fcn.004052cc
jmp 0x58d4d0
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040ad6c
cmp dword [ebp - 4], 0
jne 0x58d4e3
lea eax, [ebp - 4]
mov edx, 0x58d67c
call fcn.004052cc
mov byte [esi + 0x10], 5
push dword [ebp - 4]
push 0x58d690
lea eax, [ebp - 0x434]
movzx edx, byte [ebx]
call fcn.0040541c
push dword [ebp - 0x434]
lea eax, [ebp - 0x438]
movzx edx, byte [ebx + 1]
call fcn.0040541c
push dword [ebp - 0x438]
push 0x58d69c
lea eax, [esi + 8]
mov edx, 5
call fcn.004055d8
lea ecx, [ebp - 0x43c]
lea edx, [esi + 0x18]
mov eax, dword [esi + 8]
call fcn.0058d0c0
mov edx, dword [ebp - 0x43c]
lea eax, [esi + 4]
call fcn.00405288
lea eax, [ebp - 0x444]
mov edx, ebx
mov ecx, 4
call fcn.004054b4
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x440]
call fcn.0058d02c
mov edx, dword [ebp - 0x440]
lea eax, [esi + 0xc]
call fcn.00405288
mov al, 5
call fcn.0058c9d0
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x7d3404]
call fcn.0041b0d8
add ebx, 4
dec edi
jne 0x58d45c
mov eax, dword [ebp - 0xc]
call fcn.00402f9c
mov eax, dword [ebp - 0x10]
call fcn.00402f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58d5cd
mov eax, dword [ebp - 8]
call fcn.00404328
ret