Function at 0x46806b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ff8fa
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x5415b0]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004691eb
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.004db6f0
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.00409679
mov edi, eax
mov dword [esp + 0x3c], edi
xor eax, eax
mov dword [esp + 0x478], eax
cmp dword [esp + 0x14], eax
jle 0x4681a5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x468175
push esi
lea ecx, [esp + 0x28]
call fcn.00404e83
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.0046964f
mov edx, dword [esp + 0x40]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4681e9
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.00403030
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x2c]
jne 0x46817a
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 0x46810c
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 0x4682a3
lea eax, [ebx + 0x4a0]
push eax
lea ecx, [esp + 0x34]
call fcn.00412d49
mov esi, dword [edi]
jmp 0x468216
push str.list_T__too_long
call fcn.004f6421
push eax
push 2
mov ecx, ebx
call fcn.00469075
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.00468353
mov esi, dword [esi]
xor eax, eax
cmp esi, edi
jne 0x4681f3
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 0x468292
push dword [ebx + 0x498]
push dword [ebx + 0x494]
call fcn.0040ccc9
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.004689d1
xor eax, eax
mov ecx, ebx
push eax
call fcn.004690a7
mov eax, dword [esp + 0x1c]
inc esi
sub eax, dword [esp + 0x18]
sar eax, 2
cmp esi, eax
jb 0x468241
lea ecx, [esp + 0x48]
mov byte [esp + 0x478], 3
call fcn.00411042
push dword [ebx + 0x498]
push dword [ebx + 0x494]
call fcn.0040ccc9
mov eax, dword [ebx + 0x494]
mov dword [ebx + 0x498], eax
mov esi, dword [edi]
jmp 0x4682e7
xor eax, eax
push eax
push 2
call fcn.00469075
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.004689d1
mov esi, dword [esi]
mov ecx, ebx
cmp esi, edi
jne 0x4682c4
push 1
call fcn.004690a7
lea ecx, [esp + 0x18]
call fcn.00411042
lea ecx, [esp + 0x30]
call fcn.00411042
mov ebx, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp ebx, edi
je 0x468328
mov esi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.00403030
push ebx
call fcn.004d5e25
mov ebx, esi
pop ecx
cmp esi, edi
jne 0x468311
push edi
call fcn.004d5e25
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.004d5e2a
mov esp, ebp
pop ebp
ret