Function at 0x403fc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
je 0x4041bb
mov dword [ebx + 0x8b8], 0
lea eax, [ebx + 0x4b8]
mov dword [edi], 0x5c
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4b4
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
lea eax, [ebx + 0x6b8]
mov dword [ebx + 0x8bc], 0
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4b5
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
mov dword [ebp - 0x34], ebx
sub esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call sym._LoadCursorW_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x2a0], 1
mov edi, dword [0x414870]
mov dword [ebp - 0x40], eax
sub esp, 4
mov dword [ebx + 0x2a4], ecx
mov dword [ebx + 0x2a8], edi
movzx eax, word [ecx]
test ax, ax
je 0x4041a3
mov dword [ebp - 0x30], ecx
mov edx, dword [0x414874]
add eax, 2
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0xc]
mov ebx, dword [ebp - 0x30]
mov esi, eax
sub esp, 8
movzx eax, word [ebx]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._memcpy
movzx eax, word [ebx]
xor edx, edx
mov word [esi + eax], dx
mov eax, dword [edi]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x411e48
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0x14
test eax, eax
js 0x4041a0
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [esp], eax
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, edi
call dbg.read_directory
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4041a0
mov dword [edi + 0xc], 1
movzx eax, word [esi]
mov dword [ebp - 0x2c], eax
mov edi, eax
jmp 0x40414e
mov ebx, dword [ebx]
test ebx, ebx
je 0x4041a0
mov eax, dword [ebx + 0x2a4]
cmp word [eax], di
jne 0x404148
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcmp
test eax, eax
jne 0x404148
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
movzx eax, word [edx]
mov dword [ebx + 0x2a4], esi
mov dword [ebx + 0x2a8], edi
add edx, eax
movzx eax, word [edx]
mov dword [ebp - 0x30], edx
test ax, ax
je 0x4041a3
mov dword [ebp - 0x34], ebx
jmp 0x4040b0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._SetCursor_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov esi, edx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, edi
mov dword [ebx + 0x8b8], eax
sub esp, 4
cmp word [edi], 0
je 0x4041e9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4041e0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x40d2d4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4041f0
lea eax, [ebx + 0x6b8]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x8bc]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x4b8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
xor eax, eax
sub esp, 0x20
nop
movzx edx, word [edi + eax]
mov word [ebx + eax + 0x2b0], dx
add eax, 2
test dx, dx
jne 0x404250
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.read_tree_win