Function at 0x4c5df0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6f
push 0
push 0
dec ecx
jne 0x4c5df8
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6271
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x4c6284
call fcn.004d0e40
mov byte [ebp - 9], 0
cmp dword [ebp - 8], 0
je 0x4c5f0c
lea edx, [ebp - 0x150]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xc9
call fcn.004097d0
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00404bf4
lea eax, [ebp - 0x14c]
push eax
push 0x4c6298
push 0x4c6298
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xcd
call fcn.004097d0
mov eax, dword [ebp - 0x258]
xor edx, edx
mov dl, byte [ebp - 9]
mov dword [ebp - 0x260], edx
mov byte [ebp - 0x25c], 0
lea edx, [ebp - 0x260]
xor ecx, ecx
call fcn.0040a348
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
mov ecx, 0xff
call fcn.00404bf4
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp - 0x364]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xcb
call fcn.004097d0
mov edx, dword [ebp - 0x364]
lea eax, [ebp - 0x360]
mov ecx, 0xff
call fcn.00404bf4
lea edx, [ebp - 0x360]
mov eax, dword [0x4d7f44]
mov eax, dword [eax]
pop ecx
call fcn.004c47d0
mov eax, dword [0x4d7f68]
mov eax, dword [eax]
call fcn.004d11f0
lea edx, [ebp - 0x34]
mov al, byte [ebp - 9]
call fcn.00490280
test al, al
je 0x4c5fd3
mov dl, 1
mov eax, dword [0x4c49e0]
call fcn.004c4cb0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.00419d00
mov eax, dword [ebp - 0x14]
mov word [eax + 0x16], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc], 0
mov al, byte [ebp - 9]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov ax, word [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov word [edx + 0x14], ax
cmp word [ebp - 0x34], 1
je 0x4c5f83
mov eax, dword [ebp - 0x14]
inc word [eax + 0x16]
mov ax, word [ebp - 0x34]
sub ax, 1
jb 0x4c5f9b
je 0x4c5fa4
dec ax
je 0x4c5fad
dec ax
je 0x4c5fb6
jmp 0x4c5fbd
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 0
jmp 0x4c5fbd
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 1
jmp 0x4c5fbd
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 2
jmp 0x4c5fbd
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 3
test byte [ebp - 0x32], 1
je 0x4c5fcb
mov eax, dword [ebp - 0x14]
or word [eax + 0xe], 1
mov eax, dword [ebp - 0x14]
call fcn.004c4d74
inc byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x4c5e24
mov byte [ebp - 0xa], 1
lea edx, [ebp - 0x4c]
mov al, byte [ebp - 0xa]
call fcn.00490910
test al, al
je 0x4c61d3
lea eax, [ebp - 0x368]
xor edx, edx
mov dl, byte [ebp - 0xa]
add edx, 0x41
dec edx
call fcn.00404b40
mov edx, dword [ebp - 0x368]
lea eax, [ebp - 0x10]
mov ecx, 0x4c62a4
call fcn.00404c64
cmp dword [ebp - 8], 0
je 0x4c6106
lea edx, [ebp - 0x36c]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xc9
call fcn.004097d0
mov edx, dword [ebp - 0x36c]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00404bf4
lea eax, [ebp - 0x14c]
push eax
push 0x4c6298
push 0x4c6298
lea eax, [ebp - 0x370]
push eax
lea edx, [ebp - 0x374]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xce
call fcn.004097d0
mov eax, dword [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x260], eax
mov byte [ebp - 0x25c], 0xb
lea edx, [ebp - 0x260]
xor ecx, ecx
pop eax
call fcn.0040a348
mov edx, dword [ebp - 0x370]
lea eax, [ebp - 0x250]
mov ecx, 0xff
call fcn.00404bf4
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp - 0x378]
mov eax, dword [0x4d81c0]
mov eax, dword [eax]
add eax, 0xcb
call fcn.004097d0
mov edx, dword [ebp - 0x378]
lea eax, [ebp - 0x360]
mov ecx, 0xff
call fcn.00404bf4
lea edx, [ebp - 0x360]
mov eax, dword [0x4d7f44]
mov eax, dword [eax]
pop ecx
call fcn.004c47d0
mov eax, dword [0x4d7f68]
mov eax, dword [eax]
call fcn.004d11f0
mov dl, 1
mov eax, dword [0x4c49e0]
call fcn.004c4cb0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.00419d00
mov eax, dword [ebp - 0x14]
mov word [eax + 0x16], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc], 1
mov al, byte [ebp - 0xa]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 0x10]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4c615b.0
jmp dword [eax*4 + 0x4c6162]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 2
jmp case.0x4c615b.0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 3
jmp case.0x4c615b.0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 4
jmp case.0x4c615b.0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 5
jmp case.0x4c615b.0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xd], 6
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov ax, word [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov word [edx + 0x14], ax
test byte [ebp - 0x4a], 1
je 0x4c61cb
mov eax, dword [ebp - 0x14]
or word [eax + 0xe], 1
mov eax, dword [ebp - 0x14]
call fcn.004c4d74
inc byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0x1b
jne 0x4c5fe4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c6230
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004c5ad8
add eax, 8
push eax
lea eax, [ebp - 0x37c]
push eax
mov cl, 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004c5afc
mov edx, dword [ebp - 0x37c]
pop eax
call fcn.004049ac
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x4c61f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6278
lea eax, [ebp - 0x37c]
mov edx, 7
call fcn.0040497c
lea eax, [ebp - 0x258]
mov edx, 2
call fcn.0040497c
lea eax, [ebp - 0x150]
call fcn.00404958
lea eax, [ebp - 0x10]
call fcn.00404958
ret