Function at 0x4a97a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4a97b0
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9af1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
add edx, 0x42
call fcn.00403d9c
lea eax, [ebp - 0x38]
mov edx, 0x4a9b08
call fcn.00403e7c
mov eax, dword [ebp - 0x38]
call fcn.00404038
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4a980f
inc dword [ebp - 0xc]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jne 0x4a97d5
xor ebx, ebx
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4a988e
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
add edx, 0x43
call fcn.00403d9c
lea eax, [ebp - 0x3c]
mov edx, 0x4a9b08
call fcn.00403e7c
mov eax, dword [ebp - 0x3c]
call fcn.00404038
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.004a585c
fild qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.00409fbc
mov eax, dword [ebp - 0x1c]
call fcn.00403e74
test eax, eax
jle 0x4a9886
mov edx, 1
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edx - 1]
add ebx, ecx
sub ebx, 0x30
inc edx
dec eax
jne 0x4a9875
inc dword [ebp - 8]
dec dword [ebp - 0x34]
jne 0x4a9824
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00409284
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x4a9b14
call fcn.00403ec0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403e74
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 0x18]
call fcn.0040407c
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5fcdc]
mov ecx, 1
mov edx, 1
call fcn.0040407c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x10]
call fcn.00408ec4
lea eax, [ebp - 0x14]
call fcn.00403bf4
cmp dword [ebp - 0xc], 1
jne 0x4a9911
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5fd00]
lea eax, [ebp - 0x14]
mov edx, 0x4a9b20
call fcn.00403ec0
cmp dword [ebp - 0xc], 2
jne 0x4a9982
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, 5
mov edx, 0x4a9b2c
mov eax, dword [ebp - 4]
call fcn.004a95f4
mov eax, dword [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, 4
mov edx, 0x4a9b20
mov eax, dword [ebp - 4]
call fcn.004a95f4
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00403ec0
push 0x4a9b20
push dword [ebp - 0x10]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00409284
push dword [ebp - 0x50]
push 0x4a9b38
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
cmp dword [ebp - 0xc], 3
jne 0x4a9a15
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, 3
mov edx, 0x4a9b20
mov eax, dword [ebp - 4]
call fcn.004a95f4
push dword [ebp - 0x54]
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, 3
mov edx, 0x4a9b2c
mov eax, dword [ebp - 4]
call fcn.004a95f4
push dword [ebp - 0x58]
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, 3
mov edx, 0x4a9b44
mov eax, dword [ebp - 4]
call fcn.004a95f4
push dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403f34
push 0x4a9b20
push dword [ebp - 0x10]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.00409284
push dword [ebp - 0x60]
push 0x4a9b38
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
cmp dword [ebp - 0xc], 3
jle 0x4a9ab9
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, 3
mov edx, 0x4a9b20
mov eax, dword [ebp - 4]
call fcn.004a95f4
push dword [ebp - 0x64]
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, 3
mov edx, 0x4a9b2c
mov eax, dword [ebp - 4]
call fcn.004a95f4
push dword [ebp - 0x68]
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403f34
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00409284
cmp dword [ebp - 0xc], 9
jle 0x4a9a86
lea eax, [ebp - 0x1c]
mov edx, 0x4b
sub edx, dword [ebp - 0xc]
call fcn.00403d9c
cmp dword [ebp - 0xc], 0x19
jle 0x4a9a99
lea eax, [ebp - 0x1c]
mov edx, 0x4a9b50
call fcn.00403c8c
push 0x4a9b20
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push 0x4a9b38
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
mov eax, dword [ebp - 4]
add eax, 0x5fcf4
mov edx, dword [ebp - 0x14]
call fcn.00403c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9af8
lea eax, [ebp - 0x68]
mov edx, 0xd
call fcn.00403c18
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403c18
ret