Function at 0x4c0208
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x4c0210
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c0912
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x38], eax
mov esi, 1
lea eax, [ebp - 0x3c]
lea edx, [esi + 0x42]
call fcn.00403e74
lea eax, [ebp - 0x3c]
mov edx, 0x4c0928
call fcn.00403f54
mov eax, dword [ebp - 0x3c]
call fcn.00404110
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4c0269
inc dword [ebp - 0x38]
inc esi
cmp esi, 0x15
jne 0x4c0235
lea eax, [ebp - 0x44]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x153fc]
call fcn.00404154
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040909c
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0xa54]
call fcn.00403d20
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, 0x4c092c
call fcn.004bc7d4
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4c092c
call sub.kernel32.dll_GetVolumeInformationA
mov edi, dword [ebp - 0x14]
add edi, 0x3039
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00409458
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x1540c]
call fcn.00403d20
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4c0930
call sub.kernel32.dll_GetVolumeInformationA
mov edi, dword [ebp - 0x14]
sub edi, 0x3039
test edi, edi
jae 0x4c032c
lea eax, [ebx + 0x15414]
mov edx, dword [ebx + 0x1540c]
call fcn.00403d20
jmp 0x4c0348
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00409458
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x15414]
call fcn.00403d20
xor edi, edi
lea eax, [ebx + 0x15408]
mov edx, dword [ebx + 0x15414]
call fcn.00403d20
mov eax, dword [ebx + 0xa54]
mov edx, 0x4c093c
call fcn.0040405c
jne 0x4c037d
lea eax, [ebp - 0x30]
mov edx, dword [ebx + 0x15408]
call fcn.00403d64
jmp 0x4c038b
lea eax, [ebp - 0x30]
mov edx, dword [ebx + 0x1540c]
call fcn.00403d64
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
test eax, eax
jle 0x4c03b3
mov esi, 1
mov edx, dword [ebx + 0x15414]
movzx edx, byte [edx + esi - 1]
add edi, edx
sub edi, 0x30
inc esi
dec eax
jne 0x4c039f
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
lea edx, [ebp - 0x20]
call fcn.00409428
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404154
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.00409458
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 0x4c0948
call fcn.00403f98
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x34]
call fcn.00404154
lea eax, [ebp - 0x54]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x54]
push dword [ebp - 0x20]
push dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x58]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040400c
lea eax, [ebp - 0x5c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040400c
fild qword [ebp - 8]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x64]
call fcn.0040a24c
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x15414]
call fcn.00403d20
xor edi, edi
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
test eax, eax
jle 0x4c0509
mov esi, 1
mov edx, dword [ebx + 0x15414]
movzx edx, byte [edx + esi - 1]
add edi, edx
sub edi, 0x30
inc esi
dec eax
jne 0x4c04f5
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
lea edx, [ebp - 0x20]
call fcn.00409428
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404154
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.00409458
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x34]
mov edx, 0x4c0948
call fcn.00403f98
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x34]
call fcn.00404154
lea eax, [ebp - 0x6c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x6c]
push dword [ebp - 0x20]
push dword [ebp - 0x34]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x70]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040400c
lea eax, [ebx + 0x15414]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00403f98
lea eax, [ebx + 0x1540c]
mov ecx, dword [ebx + 0x1540c]
mov edx, 0x4c0954
call fcn.00403f98
lea eax, [ebx + 0x15408]
mov ecx, dword [ebx + 0x15408]
mov edx, 0x4c0954
call fcn.00403f98
lea eax, [ebx + 0x15410]
mov ecx, dword [ebx + 0x15414]
mov edx, 0x4c0960
call fcn.00403f98
push dword [ebx + 0xa54]
push 0x4c096c
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
lea eax, [ebx + 0x15418]
mov edx, 4
call fcn.0040400c
mov edi, 5
mov eax, dword [ebp - 0x30]
call fcn.00403f4c
test eax, eax
jle 0x4c065f
mov esi, 1
mov edx, dword [ebp - 0x30]
movzx edx, byte [edx + esi - 1]
add edi, edx
sub edi, 0x30
inc esi
dec eax
jne 0x4c064e
mov eax, dword [ebp - 0x30]
call fcn.00403f4c
lea edx, [ebp - 0x20]
call fcn.00409428
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404154
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x74]
call fcn.00409458
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x34]
mov edx, 0x4c0948
call fcn.00403f98
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x34]
call fcn.00404154
lea eax, [ebp - 0x78]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404154
push dword [ebp - 0x78]
push dword [ebp - 0x34]
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404154
push dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040400c
push dword [ebx + 0xa54]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x38]
call fcn.00409428
push dword [ebp - 0x80]
push 0x4c0978
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
lea eax, [ebx + 0x1541c]
mov edx, 5
call fcn.0040400c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, 0x4e51ac0
adc edx, 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
fild qword [ebp - 0x8c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x84]
call fcn.0040a24c
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x15414]
call fcn.00403d20
xor edi, edi
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
test eax, eax
jle 0x4c07a8
mov esi, 1
mov edx, dword [ebx + 0x15414]
movzx edx, byte [edx + esi - 1]
add edi, edx
sub edi, 0x30
inc esi
dec eax
jne 0x4c0794
mov eax, dword [ebx + 0x15414]
call fcn.00403f4c
lea edx, [ebp - 0x20]
call fcn.00409428
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403f4c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404154
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.00409458
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x34]
mov edx, 0x4c0948
call fcn.00403f98
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403f4c
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x34]
call fcn.00404154
lea eax, [ebp - 0x94]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x94]
push dword [ebp - 0x20]
push dword [ebp - 0x34]
lea eax, [ebp - 0x98]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebx + 0x15414]
call fcn.00404154
push dword [ebp - 0x98]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040400c
push dword [ebx + 0xa54]
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x38]
call fcn.00409428
push dword [ebp - 0x9c]
push 0x4c0984
push dword [ebp - 0x28]
lea eax, [ebx + 0x15420]
mov edx, 4
call fcn.0040400c
cmp dword [ebp - 0x38], 1
jle 0x4c08b8
lea eax, [ebx + 0x15414]
mov edx, dword [ebx + 0x1541c]
call fcn.00403d20
jmp 0x4c08c9
lea eax, [ebx + 0x15414]
mov edx, dword [ebx + 0x15420]
call fcn.00403d20
mov eax, ebx
call fcn.004c0b3c
mov eax, ebx
call fcn.004c0ee8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0919
lea eax, [ebp - 0x9c]
mov edx, 4
call fcn.00403cf0
lea eax, [ebp - 0x84]
mov edx, 0x13
call fcn.00403cf0
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00403cf0
ret