Function at 0x46d300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe566
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f0], ecx
lea ecx, [ebp - 0x4a8]
call fcn.00406c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4cc]
call fcn.00470190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c0]
call fcn.00470020
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4b4], ecx
cmp dword [ebp - 0x4b4], 0
jne 0x46d3a8
mov dword [ebp - 0x4d8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4cc]
call fcn.00470140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.004739d0
mov eax, dword [ebp - 0x4d8]
jmp 0x46d7dc
cmp dword [ebp + 0xc], 0
jne 0x46d3e4
mov dword [ebp - 0x4dc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4cc]
call fcn.00470140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.004739d0
mov eax, dword [ebp - 0x4dc]
jmp 0x46d7dc
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x4f4], eax
push 0x200
lea ecx, [ebp - 0x4a8]
call fcn.00473960
lea ecx, [ebp - 0x4a8]
call fcn.004038a0
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x4a8]
call fcn.004038a0
mov dword [ebp - 0x4ac], eax
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b8], edx
mov eax, dword [ebp - 0x4b8]
add eax, 2
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4b8]
mov dx, word [ecx]
mov word [ebp - 0x4c2], dx
add dword [ebp - 0x4b8], 2
cmp word [ebp - 0x4c2], 0
jne 0x46d448
mov eax, dword [ebp - 0x4b8]
sub eax, dword [ebp - 0x4e0]
sar eax, 1
mov dword [ebp - 0x4e4], eax
je 0x46d57f
mov ecx, dword [ebp - 0x4ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x4d0], eax
cmp dword [ebp - 0x4d0], 0
je 0x46d4a8
cmp dword [ebp - 0x4d0], 1
jne 0x46d4aa
jmp 0x46d514
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x4ac]
movzx edx, word [ecx + eax]
sub edx, 0x41
push edx
call fcn.0046a050
add esp, 4
test eax, eax
je 0x46d4ce
jmp 0x46d514
push 0x208
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x54c]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x4ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x46d50c
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.00470040
xor ecx, ecx
jne 0x46d483
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4bc], edx
mov eax, dword [ebp - 0x4bc]
add eax, 2
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4bc]
mov dx, word [ecx]
mov word [ebp - 0x4c4], dx
add dword [ebp - 0x4bc], 2
cmp word [ebp - 0x4c4], 0
jne 0x46d52f
mov eax, dword [ebp - 0x4bc]
sub eax, dword [ebp - 0x4e8]
sar eax, 1
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4ec]
mov edx, dword [ebp - 0x4ac]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 0x4ac], eax
jmp 0x46d42d
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x4b4]
call dword [sym.imp.DuiLib.dll_public:_struct_DuiLib::DTV_ITEM_INFO____thiscall_DuiLib::CTreeViewExUI::GetChild_struct_DuiLib::DTV_ITEM_INFO__]
mov dword [ebp - 0x4b0], eax
lea edx, [ebp - 0x550]
push edx
lea ecx, [ebp - 0x4cc]
call fcn.004700d0
mov eax, dword [eax]
mov dword [ebp - 0x4c0], eax
jmp 0x46d5c5
push 0
lea ecx, [ebp - 0x554]
push ecx
lea ecx, [ebp - 0x4c0]
call fcn.0046ffd0
lea edx, [ebp - 0x558]
push edx
lea ecx, [ebp - 0x4cc]
call fcn.00470070
push eax
lea ecx, [ebp - 0x4c0]
call fcn.0041a350
movzx eax, al
test eax, eax
je 0x46d79e
cmp dword [ebp - 0x4b0], 0
je 0x46d728
mov dword [ebp - 0x520], 0
xor ecx, ecx
mov dword [ebp - 0x51c], ecx
mov dword [ebp - 0x518], ecx
mov dword [ebp - 0x514], ecx
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x50c], ecx
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x504], ecx
mov dword [ebp - 0x500], ecx
mov dword [ebp - 0x4fc], ecx
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004d43c0
add esp, 0xc
mov ecx, dword [ebp - 0x520]
or ecx, 1
mov dword [ebp - 0x520], ecx
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x510], edx
mov dword [ebp - 0x50c], 0x104
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x51c], eax
lea ecx, [ebp - 0x520]
push ecx
mov ecx, dword [ebp - 0x4b4]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CTreeViewExUI::GetItem_struct_DuiLib::DTV_ITEM__]
mov edx, dword [ebp - 0x510]
push edx
lea ecx, [ebp - 0x4c0]
call fcn.00470000
mov eax, dword [eax]
push eax
call fcn.004dccb6
add esp, 8
mov dword [ebp - 0x4d4], eax
cmp dword [ebp - 0x4d4], 0
jle 0x46d6e6
mov ecx, dword [ebp - 0x4b0]
push ecx
mov ecx, dword [ebp - 0x4b4]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CTreeViewExUI::RemoveItem_struct_DuiLib::DTV_ITEM_INFO__]
jmp 0x46d5b1
cmp dword [ebp - 0x4d4], 0
jne 0x46d70f
mov edx, dword [ebp - 0x4b0]
push edx
mov ecx, dword [ebp - 0x4b4]
call dword [sym.imp.DuiLib.dll_public:_struct_DuiLib::DTV_ITEM_INFO____thiscall_DuiLib::CTreeViewExUI::GetNextSibItem_struct_DuiLib::DTV_ITEM_INFO__]
mov dword [ebp - 0x4b0], eax
jmp 0x46d5b1
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [ebp - 0x4b4]
call dword [sym.imp.DuiLib.dll_public:_struct_DuiLib::DTV_ITEM_INFO____thiscall_DuiLib::CTreeViewExUI::GetPrevSibItem_struct_DuiLib::DTV_ITEM_INFO__]
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x548], 0
xor ecx, ecx
mov dword [ebp - 0x544], ecx
mov dword [ebp - 0x540], ecx
mov dword [ebp - 0x53c], ecx
mov dword [ebp - 0x538], ecx
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x52c], ecx
mov dword [ebp - 0x528], ecx
mov dword [ebp - 0x524], ecx
mov edx, dword [ebp - 0x4b0]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x548]
push ecx
lea ecx, [ebp - 0x4c0]
call fcn.00470000
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4f0]
call fcn.0046d800
jmp 0x46d5b1
mov ecx, dword [ebp - 0x4f4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x4f8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4cc]
call fcn.00470140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.004739d0
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret 8