Function at 0x4c2dd8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4c2de0
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3121
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.00403e74
lea eax, [ebp - 0x38]
mov edx, 0x4c3138
call fcn.00403f54
mov eax, dword [ebp - 0x38]
call fcn.00404110
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4c2e3f
inc dword [ebp - 0xc]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jne 0x4c2e05
xor ebx, ebx
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4c2ebe
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.00403e74
lea eax, [ebp - 0x3c]
mov edx, 0x4c3138
call fcn.00403f54
mov eax, dword [ebp - 0x3c]
call fcn.00404110
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x28]
call fcn.004be930
fild qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.0040a24c
mov eax, dword [ebp - 0x1c]
call fcn.00403f4c
test eax, eax
jle 0x4c2eb6
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 0x4c2ea5
inc dword [ebp - 8]
dec dword [ebp - 0x34]
jne 0x4c2e54
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00409428
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x4c3144
call fcn.00403f98
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403f4c
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 0x18]
call fcn.00404154
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15560]
mov ecx, 1
mov edx, 1
call fcn.00404154
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x10]
call fcn.0040909c
lea eax, [ebp - 0x14]
call fcn.00403ccc
cmp dword [ebp - 0xc], 1
jne 0x4c2f41
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x15584]
lea eax, [ebp - 0x14]
mov edx, 0x4c3150
call fcn.00403f98
cmp dword [ebp - 0xc], 2
jne 0x4c2fb2
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, 5
mov edx, 0x4c315c
mov eax, dword [ebp - 4]
call fcn.004c2c24
mov eax, dword [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, 4
mov edx, 0x4c3150
mov eax, dword [ebp - 4]
call fcn.004c2c24
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00403f98
push 0x4c3150
push dword [ebp - 0x10]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00409428
push dword [ebp - 0x50]
push 0x4c3168
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040400c
cmp dword [ebp - 0xc], 3
jne 0x4c3045
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, 3
mov edx, 0x4c3150
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0x54]
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, 3
mov edx, 0x4c315c
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0x58]
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, 3
mov edx, 0x4c3174
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040400c
push 0x4c3150
push dword [ebp - 0x10]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.00409428
push dword [ebp - 0x60]
push 0x4c3168
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040400c
cmp dword [ebp - 0xc], 3
jle 0x4c30e9
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, 3
mov edx, 0x4c3150
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0x64]
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, 3
mov edx, 0x4c315c
mov eax, dword [ebp - 4]
call fcn.004c2c24
push dword [ebp - 0x68]
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040400c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00409428
cmp dword [ebp - 0xc], 9
jle 0x4c30b6
lea eax, [ebp - 0x1c]
mov edx, 0x4b
sub edx, dword [ebp - 0xc]
call fcn.00403e74
cmp dword [ebp - 0xc], 0x19
jle 0x4c30c9
lea eax, [ebp - 0x1c]
mov edx, 0x4c3180
call fcn.00403d64
push 0x4c3150
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push 0x4c3168
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040400c
mov eax, dword [ebp - 4]
add eax, 0x15588
mov edx, dword [ebp - 0x14]
call fcn.00403d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3128
lea eax, [ebp - 0x68]
mov edx, 0xd
call fcn.00403cf0
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403cf0
ret