Function at 0x4aa8e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x581
push 0
push 0
dec ecx
jne 0x4aa8e8
push ecx
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2ac8]
mov edx, dword [0x407c34]
call fcn.00404f44
xor eax, eax
push ebp
push 0x4aaeb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
mov edx, 0x4aaecc
call fcn.004045c8
lea eax, [ebp - 0x48]
mov edx, 0x4aaecc
call fcn.004045c8
lea eax, [ebp - 0x50]
mov edx, 0x4aaecc
call fcn.004045c8
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x24]
dec ecx
mov eax, dword [ebp - 0xc]
shr eax, cl
and eax, 1
cmp eax, 1
jne 0x4aae5a
lea eax, [ebp - 0x4c]
call fcn.00404530
lea eax, [ebp - 0x48]
call fcn.00404530
lea eax, [ebp - 0x50]
call fcn.00404530
lea eax, [ebp - 0x2acc]
mov edx, dword [ebp - 0x24]
add edx, 0x40
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2acc]
lea eax, [ebp - 0x2ad0]
call fcn.00402c7c
mov edx, 0x4aaed4
lea eax, [ebp - 0x2ad0]
mov cl, 2
call fcn.00402c4c
lea edx, [ebp - 0x2ad0]
lea eax, [ebp - 0x3c]
call fcn.00404794
lea eax, [ebp - 0x2ad4]
mov ecx, 0x4aaee0
mov edx, dword [ebp - 0x3c]
call fcn.0040483c
mov eax, dword [ebp - 0x2ad4]
call fcn.004049f0
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 6
ja case.0x4aa9ed.0
jmp dword [eax*4 + 0x4aa9f4]
lea eax, [ebp - 0x40]
mov edx, 0x4aaeec
call fcn.004045c8
jmp 0x4aaa68
lea eax, [ebp - 0x40]
mov edx, 0x4aaf04
call fcn.004045c8
jmp 0x4aaa68
lea eax, [ebp - 0x40]
mov edx, 0x4aaf18
call fcn.004045c8
jmp 0x4aaa68
lea eax, [ebp - 0x40]
mov edx, 0x4aaf30
call fcn.004045c8
jmp 0x4aaa68
lea eax, [ebp - 0x40]
mov edx, 0x4aaf48
call fcn.004045c8
jmp 0x4aaa68
lea eax, [ebp - 0x40]
mov edx, 0x4aaecc
call fcn.004045c8
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 8], ax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x24], 2
setg al
cmp byte [ebp - 5], 0
jne 0x4aaaac
test al, al
je 0x4aaaa6
cmp dword [ebp - 0x14], 3
je 0x4aaaaa
xor eax, eax
jmp 0x4aaaac
mov al, 1
test al, al
je 0x4aac7e
lea eax, [ebp - 0x2ad8]
mov ecx, 0x4aaf5c
mov edx, dword [ebp - 0x3c]
call fcn.0040483c
mov eax, dword [ebp - 0x2ad8]
lea ecx, [ebp - 0x2ac8]
mov edx, 0x3f
call fcn.004092d4
cmp eax, 0x35
je 0x4aaaec
cmp eax, 0x36
je 0x4aaaec
cmp eax, 0x37
jne 0x4aab1d
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
mov edx, 0x4aaf6c
call fcn.0040483c
jmp 0x4aac7e
xor eax, eax
push ebp
push 0x4aac58
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, byte [ebp - 0x24]
mov eax, ebx
call fcn.004095e8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, ebx
call fcn.004095b4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x286a]
xor ecx, ecx
mov edx, 0x105
call fcn.00402f04
lea eax, [ebp - 0x296f]
xor ecx, ecx
mov edx, 0x105
call fcn.00402f04
push 0x104
lea eax, [ebp - 0x286a]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x104
lea eax, [ebp - 0x296f]
push eax
lea eax, [ebp - 0x2adc]
mov ecx, 0x4aaee0
mov edx, dword [ebp - 0x3c]
call fcn.0040483c
mov eax, dword [ebp - 0x2adc]
call fcn.004049f0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4aac4e
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x296f]
call fcn.00409808
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x286a]
call fcn.00409808
mov eax, dword [ebp - 0x18]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x2ae0]
mov eax, 4
call fcn.00408edc
push dword [ebp - 0x2ae0]
push 0x4aaf6c
mov eax, dword [ebp - 0x18]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x2ae4]
mov eax, 4
call fcn.00408edc
push dword [ebp - 0x2ae4]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004048b0
mov eax, dword [ebp - 0x48]
mov edx, 0x4aaf78
call fcn.0040493c
jne 0x4aac4e
test byte [ebp - 0x20], 0x40
jne 0x4aac4e
lea eax, [ebp - 0x48]
mov edx, 0x4aaf88
call fcn.004047f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aac7e
cmp dword [ebp - 0x2c], 0
jne 0x4aac98
cmp dword [ebp - 0x30], 0
jne 0x4aac98
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
cmp byte [ebp - 5], 0
je 0x4aace8
cmp dword [ebp - 0x14], 4
jne 0x4aace8
lea eax, [ebp - 0x2765]
xor ecx, ecx
mov edx, 0x2711
call fcn.00402f04
mov dword [ebp - 0x10], 0x2710
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2765]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.004049f0
push eax
call sub.mpr.dll_WNetGetConnectionA
test eax, eax
jne 0x4aace8
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x2765]
call fcn.00409808
movzx eax, word [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
push 0
push 0x400
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00405424
push edx
push eax
lea eax, [ebp - 0x2be4]
call fcn.004055dc
lea edx, [ebp - 0x2be4]
lea eax, [ebp - 0x54]
call fcn.00404794
push 0
push 0x400
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00405424
push edx
push eax
lea eax, [ebp - 0x2be4]
call fcn.004055dc
lea edx, [ebp - 0x2be4]
lea eax, [ebp - 0x44]
call fcn.00404794
lea ecx, [ebp - 0x2bec]
mov edx, dword [ebp - 0x3c]
mov eax, 0x4aaf98
call fcn.004bebbc
push dword [ebp - 0x2bec]
lea ecx, [ebp - 0x2bf0]
mov edx, dword [ebp - 0x40]
mov eax, 0x4aafa8
call fcn.004bebbc
push dword [ebp - 0x2bf0]
lea ecx, [ebp - 0x2bf4]
mov edx, dword [ebp - 0x4c]
mov eax, 0x4aafb8
call fcn.004bebbc
push dword [ebp - 0x2bf4]
lea ecx, [ebp - 0x2bf8]
mov edx, dword [ebp - 0x48]
mov eax, 0x4aafcc
call fcn.004bebbc
push dword [ebp - 0x2bf8]
lea ecx, [ebp - 0x2bfc]
mov edx, dword [ebp - 0x50]
mov eax, 0x4aafdc
call fcn.004bebbc
push dword [ebp - 0x2bfc]
lea ecx, [ebp - 0x2c00]
mov edx, dword [ebp - 0x54]
mov eax, 0x4aafec
call fcn.004bebbc
push dword [ebp - 0x2c00]
lea ecx, [ebp - 0x2c04]
mov edx, dword [ebp - 0x44]
mov eax, 0x4ab000
call fcn.004bebbc
push dword [ebp - 0x2c04]
fild qword [ebp - 0x38]
fild qword [ebp - 0x30]
call fcn.00402da0
fmul dword [0x4ab00c]
call fcn.00402b54
push edx
push eax
lea eax, [ebp - 0x2c0c]
call fcn.00408e8c
mov edx, dword [ebp - 0x2c0c]
lea ecx, [ebp - 0x2c08]
mov eax, 0x4ab018
call fcn.004bebbc
push dword [ebp - 0x2c08]
lea eax, [ebp - 0x2be8]
mov edx, 8
call fcn.004048b0
mov edx, dword [ebp - 0x2be8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x1b
jne 0x4aa94e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aaeba
lea eax, [ebp - 0x2c0c]
mov edx, 0xa
call fcn.00404554
lea eax, [ebp - 0x2ae4]
mov edx, 5
call fcn.00404554
lea eax, [ebp - 0x2ac8]
mov edx, dword [0x407c34]
call fcn.00405014
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.00404554
ret