Function at 0x4a9320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4a9328
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a963d
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, 0x4a9654
call fcn.00403e7c
mov eax, dword [ebp - 0x38]
call fcn.00404038
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4a9388
inc dword [ebp - 0xc]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jne 0x4a934e
xor ebx, ebx
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4a9407
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, 0x4a9654
call fcn.00403e7c
mov eax, dword [ebp - 0x3c]
call fcn.00404038
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.004a5568
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 0x4a93ff
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 0x4a93ee
inc dword [ebp - 8]
dec dword [ebp - 0x34]
jne 0x4a939d
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00409284
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x4a9660
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 + 0x50248]
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 0x4a948a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5026c]
lea eax, [ebp - 0x14]
mov edx, 0x4a966c
call fcn.00403ec0
cmp dword [ebp - 0xc], 2
jne 0x4a94fb
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, 5
mov edx, 0x4a9678
mov eax, dword [ebp - 4]
call fcn.004a916c
mov eax, dword [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, 4
mov edx, 0x4a966c
mov eax, dword [ebp - 4]
call fcn.004a916c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00403ec0
push 0x4a966c
push dword [ebp - 0x10]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00409284
push dword [ebp - 0x50]
push 0x4a9684
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
cmp dword [ebp - 0xc], 3
jne 0x4a958e
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, 3
mov edx, 0x4a966c
mov eax, dword [ebp - 4]
call fcn.004a916c
push dword [ebp - 0x54]
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, 3
mov edx, 0x4a9678
mov eax, dword [ebp - 4]
call fcn.004a916c
push dword [ebp - 0x58]
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, 3
mov edx, 0x4a9690
mov eax, dword [ebp - 4]
call fcn.004a916c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403f34
push 0x4a966c
push dword [ebp - 0x10]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.00409284
push dword [ebp - 0x60]
push 0x4a9684
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
cmp dword [ebp - 0xc], 3
jle 0x4a9605
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, 3
mov edx, 0x4a966c
mov eax, dword [ebp - 4]
call fcn.004a916c
push dword [ebp - 0x64]
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, 3
mov edx, 0x4a9678
mov eax, dword [ebp - 4]
call fcn.004a916c
push dword [ebp - 0x68]
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403f34
push 0x4a966c
push dword [ebp - 0x10]
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.00409284
push dword [ebp - 0x6c]
push 0x4a9684
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f34
mov eax, dword [ebp - 4]
add eax, 0x50260
mov edx, dword [ebp - 0x14]
call fcn.00403c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9644
lea eax, [ebp - 0x6c]
mov edx, 0xe
call fcn.00403c18
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403c18
ret