Function at 0x4c7f14
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4c7f1d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404570
mov eax, dword [ebp - 8]
call fcn.00404570
xor eax, eax
push ebp
push 0x4c8267
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
je 0x4c8225
cmp dword [ebp - 4], 0
je 0x4c8225
mov eax, dword [ebp - 4]
call fcn.00404380
test eax, eax
jle 0x4c8225
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
mov eax, dword [0x4d8564]
cmp byte [eax], 0
je 0x4c806b
lea eax, [ebp - 0x20]
call fcn.004040c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4c7fbb
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4c803b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4c803b
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, ebx
call fcn.0041b6cc
cmp dword [ebp - 0x2c], 0
je 0x4c8037
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, ebx
call fcn.0041b6cc
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
cmp al, byte [edx + ecx - 1]
jne 0x4c8037
lea ecx, [ebp - 0x20]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, ebx
call fcn.0041aacc
jmp 0x4c803b
inc ebx
dec esi
jne 0x4c7fe5
cmp dword [ebp - 0x20], 0
jne 0x4c8057
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx - 1]
xor edx, edx
call fcn.0048e244
mov dword [ebp - 0x18], eax
jmp 0x4c807f
xor ecx, ecx
mov edx, 0x4c8284
mov eax, dword [ebp - 0x20]
call fcn.0048e24c
mov dword [ebp - 0x18], eax
jmp 0x4c807f
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx - 1]
xor edx, edx
call fcn.0048e244
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4c8219
xor edx, edx
push ebp
push 0x4c8212
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004c9204
cmp dword [ebp - 0x1c], 0
jne 0x4c80b8
call fcn.00403b8c
jmp 0x4c8219
cmp dword [ebp - 0xc], 1
jne 0x4c8117
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.00402c08
mov edx, 0x4c82ac
lea eax, [ebp - 0x3c]
mov cl, 2
call fcn.00402bd8
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x34]
call fcn.00404324
mov eax, dword [ebp - 0x34]
call fcn.00404580
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
je 0x4c81a0
call fcn.00403b8c
jmp 0x4c8219
cmp dword [ebp - 0xc], 2
je 0x4c8123
cmp dword [ebp - 0xc], 3
jne 0x4c8196
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.00402c08
mov edx, 0x4c82ac
lea eax, [ebp - 0x3c]
mov cl, 2
call fcn.00402bd8
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call fcn.00404324
mov eax, dword [ebp - 0x40]
call fcn.00404580
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c8178
call fcn.00403b8c
jmp 0x4c8219
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx - 1]
call fcn.0048ead8
cmp eax, dword [ebp + 8]
je 0x4c81a0
call fcn.00403b8c
jmp 0x4c8219
call fcn.00403b8c
jmp 0x4c8225
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.00408644
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00408428
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.00408644
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00408428
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.004044cc
jne 0x4c81ef
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx - 1]
mov byte [ebp - 0xd], al
call fcn.00403b8c
jmp 0x4c8225
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8219
mov eax, dword [0x4d8564]
mov al, byte [eax]
xor al, 1
neg al
sbb edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0048e460
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x4c7f83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c826e
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.004040e4
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004040e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040e4
ret