Function at 0x4c6c50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x430]
mov esi, 0x41c
xor ebx, ebx
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, ebx
je 0x4c6e42
sub eax, 1
jne 0x4c6fc1
push esi
lea eax, [ebp - 0x430]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x430], esi
inc eax
lea ecx, [edi + 0xc]
add esp, 0xc
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x420], eax
or ebx, 0xffffffff
lea eax, [ebp - 0x430]
mov dword [ebp - 0x428], ebx
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 2
lea ecx, [edi + 0x18]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 0xa
lea ecx, [edi + 0x30]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 7
lea ecx, [edi + 0x48]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
mov eax, dword [0x545180]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [0x545184]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x43]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4c6e33
push 0x41c
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], 0x41c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x42c], 5
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.00418e21
xor eax, eax
lea ecx, [edi + 0x60]
inc eax
or dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x430]
push eax
call fcn.004c585e
inc esi
cmp esi, 0x18
jl 0x4c6db0
jmp 0x4c6fc1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], esi
or ebx, 0xffffffff
mov dword [ebp - 0x42c], 1
push eax
lea ecx, [edi + 0xc]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 2
lea ecx, [edi + 0x18]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 0xa
lea ecx, [edi + 0x30]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x430], esi
inc eax
mov dword [ebp - 0x42c], 6
or dword [ebp - 0x418], eax
lea ecx, [edi + 0x3c]
add esp, 0xc
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x428], ebx
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 7
lea ecx, [edi + 0x48]
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push eax
call fcn.004c585e
push esi
lea eax, [ebp - 0x430]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x42c], 0xe
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], 1
push ecx
lea ecx, [edi + 0x84]
call fcn.004c585e
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00522d04
leave
ret 0xc