Function at 0x46c052
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503920
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5475b0]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046d1e6
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x5c], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5e]
push eax
call fcn.004deff0
add esp, 0xc
lea esi, [esp + 0x54]
mov eax, esi
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push eax
mov dword [esp + 0x48], eax
call fcn.00409789
mov edi, eax
mov dword [esp + 0x3c], edi
xor eax, eax
mov dword [esp + 0x478], eax
cmp dword [esp + 0x14], eax
jle 0x46c18c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46c15c
push esi
lea ecx, [esp + 0x28]
call fcn.00404fa0
mov byte [esp + 0x478], 1
lea ecx, [esp + 0x24]
mov eax, dword [edi]
push ecx
mov dword [esp + 0x48], eax
push dword [eax + 4]
push eax
call fcn.0046d835
mov edx, dword [esp + 0x40]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x46c1d0
mov ecx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x40], edx
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
xor eax, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x478], al
call fcn.00403080
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x2c]
jne 0x46c161
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x14]
sub ecx, eax
lea esi, [esi + eax*2]
mov dword [esp + 0x14], ecx
test ecx, ecx
jg 0x46c0f3
xor eax, eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x478], 3
cmp dword [ebx], eax
jne 0x46c28a
lea eax, [ebx + 0x4a0]
push eax
lea ecx, [esp + 0x34]
call fcn.004132e6
mov esi, dword [edi]
jmp 0x46c1fd
push str.list_T__too_long
call fcn.004f9d31
push eax
push 2
mov ecx, ebx
call fcn.0046d070
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 8]
call fcn.0046c33a
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
jne 0x46c1da
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov esi, eax
mov byte [esp + 0x478], 4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
test eax, eax
je 0x46c279
push dword [ebx + 0x498]
push dword [ebx + 0x494]
call fcn.0046d50f
mov eax, dword [ebx + 0x494]
lea ecx, [esp + 0x48]
push 1
push ecx
mov dword [ebx + 0x498], eax
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, ebx
push dword [eax + esi*4]
call fcn.0046c9cc
xor eax, eax
mov ecx, ebx
push eax
call fcn.0046d0a2
mov eax, dword [esp + 0x1c]
inc esi
sub eax, dword [esp + 0x18]
sar eax, 2
cmp esi, eax
jb 0x46c228
lea ecx, [esp + 0x48]
mov byte [esp + 0x478], 3
call fcn.004114d2
push dword [ebx + 0x498]
push dword [ebx + 0x494]
call fcn.0046d50f
mov eax, dword [ebx + 0x494]
mov dword [ebx + 0x498], eax
mov esi, dword [edi]
jmp 0x46c2ce
xor eax, eax
push eax
push 2
call fcn.0046d070
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esi + 8]
call fcn.0046c9cc
mov esi, dword [esi]
mov ecx, ebx
cmp esi, edi
jne 0x46c2ab
push 1
call fcn.0046d0a2
lea ecx, [esp + 0x18]
call fcn.004114d2
lea ecx, [esp + 0x30]
call fcn.004114d2
mov ebx, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp ebx, edi
je 0x46c30f
mov esi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.00403080
push ebx
call fcn.004d972c
mov ebx, esi
pop ecx
cmp esi, edi
jne 0x46c2f8
push edi
call fcn.004d972c
pop ecx
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.004d9731
mov esp, ebp
pop ebp
ret