Function at 0x584d4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x88
push 0
push 0
dec ecx
jne 0x584d54
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x58515b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6e8db8]
call fcn.00585208
mov dl, 1
mov eax, dword [0x423b8c]
call fcn.00423c8c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x58512e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.00423d2c
lea edx, [ebp - 0x420]
mov eax, 0x584d3c
call fcn.004075cc
mov edx, dword [ebp - 0x420]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00423d90
test al, al
jne 0x584ded
lea edx, [ebp - 0x424]
mov eax, 0x584d44
call fcn.004075cc
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00423d90
test al, al
je 0x584f7b
lea ecx, [ebp - 4]
mov edx, 0x585174
mov eax, dword [ebp - 8]
call fcn.0042411c
cmp dword [ebp - 4], 0
je 0x584e6f
mov edx, dword [0x582488]
mov eax, 0x1c
call fcn.00406310
mov esi, eax
mov byte [esi + 0x10], 1
lea eax, [esi + 4]
mov edx, 0x585184
call fcn.004051ac
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x585184
call fcn.004051ac
lea edx, [ebp - 0x428]
mov eax, dword [ebp - 4]
call fcn.00584b94
mov edx, dword [ebp - 0x428]
lea eax, [esi + 0xc]
call fcn.004051ac
mov al, 1
call fcn.00584538
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x6e8db8]
call fcn.0041a1b0
lea ecx, [ebp - 4]
mov edx, 0x585194
mov eax, dword [ebp - 8]
call fcn.0042411c
cmp dword [ebp - 4], 0
je 0x584ef1
mov edx, dword [0x582488]
mov eax, 0x1c
call fcn.00406310
mov esi, eax
mov byte [esi + 0x10], 3
lea eax, [esi + 4]
mov edx, 0x5851a8
call fcn.004051ac
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x5851a8
call fcn.004051ac
lea edx, [ebp - 0x42c]
mov eax, dword [ebp - 4]
call fcn.00584b94
mov edx, dword [ebp - 0x42c]
lea eax, [esi + 0xc]
call fcn.004051ac
mov al, 3
call fcn.00584538
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x6e8db8]
call fcn.0041a1b0
lea ecx, [ebp - 4]
mov edx, 0x5851bc
mov eax, dword [ebp - 8]
call fcn.0042411c
cmp dword [ebp - 4], 0
je 0x584f73
mov edx, dword [0x582488]
mov eax, 0x1c
call fcn.00406310
mov esi, eax
mov byte [esi + 0x10], 2
lea eax, [esi + 4]
mov edx, 0x5851d0
call fcn.004051ac
mov byte [esi + 0x18], 0
lea eax, [esi + 8]
mov edx, 0x5851d0
call fcn.004051ac
lea edx, [ebp - 0x430]
mov eax, dword [ebp - 4]
call fcn.00584b94
mov edx, dword [ebp - 0x430]
lea eax, [esi + 0xc]
call fcn.004051ac
mov al, 2
call fcn.00584538
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x6e8db8]
call fcn.0041a1b0
mov eax, dword [ebp - 8]
call fcn.00423cfc
lea eax, [ebp - 0x41c]
push eax
push 0x400
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, eax
mov eax, 0xff
call fcn.00402f54
mov dword [ebp - 0xc], eax
mov eax, 0x64
call fcn.00402f54
mov dword [ebp - 0x10], eax
mov edi, ebx
test edi, edi
jns 0x584fb1
add edi, 3
sar edi, 2
dec edi
test edi, edi
jl 0x585108
inc edi
lea ebx, [ebp - 0x41c]
push ebx
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jae 0x5850fe
mov edx, dword [0x582488]
mov eax, 0x1c
call fcn.00406310
mov esi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0xff
call fcn.004883d0
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 0x58502d
lea eax, [ebp - 4]
mov edx, 0x5851e4
call fcn.004051f0
jmp 0x585038
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040abd8
cmp dword [ebp - 4], 0
jne 0x58504b
lea eax, [ebp - 4]
mov edx, 0x5851e4
call fcn.004051f0
mov byte [esi + 0x10], 5
push dword [ebp - 4]
push 0x5851f8
lea eax, [ebp - 0x434]
movzx edx, byte [ebx]
call fcn.00405340
push dword [ebp - 0x434]
lea eax, [ebp - 0x438]
movzx edx, byte [ebx + 1]
call fcn.00405340
push dword [ebp - 0x438]
push 0x585204
lea eax, [esi + 8]
mov edx, 5
call fcn.004054fc
lea ecx, [ebp - 0x43c]
lea edx, [esi + 0x18]
mov eax, dword [esi + 8]
call fcn.00584c28
mov edx, dword [ebp - 0x43c]
lea eax, [esi + 4]
call fcn.004051ac
lea eax, [ebp - 0x444]
mov edx, ebx
mov ecx, 4
call fcn.004053d8
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x440]
call fcn.00584b94
mov edx, dword [ebp - 0x440]
lea eax, [esi + 0xc]
call fcn.004051ac
mov al, 5
call fcn.00584538
mov dword [esi], eax
mov dword [esi + 0x14], 1
mov edx, esi
mov eax, dword [0x6e8db8]
call fcn.0041a1b0
add ebx, 4
dec edi
jne 0x584fc4
mov eax, dword [ebp - 0xc]
call fcn.00402f70
mov eax, dword [ebp - 0x10]
call fcn.00402f70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585135
mov eax, dword [ebp - 8]
call fcn.0040432c
ret