Function at 0x409660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
lea edx, [ebx + 0x4b8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x6b8]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x40985a
mov dword [ebx + 0x8b8], 0
mov esi, ecx
mov dword [edi], 0x5c
mov eax, dword [0x40c080]
mov dword [esp + 8], edx
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x4b4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x8bc], 0
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x40c080]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x4b5
mov dword [esp], eax
call edi
mov dword [ebp - 0x1c], ebx
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x2c], eax
call eax
mov dword [ebx + 0x2a0], 1
mov edi, dword [0x40c8d0]
mov dword [ebp - 0x28], eax
sub esp, 4
mov dword [ebx + 0x2a4], esi
mov dword [ebx + 0x2a8], edi
movzx eax, word [esi]
test ax, ax
je 0x409841
nop
mov edx, dword [0x40c8d4]
add eax, 2
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x18]
mov ebx, eax
sub esp, 8
movzx eax, word [esi]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memcpy
movzx eax, word [esi]
xor edx, edx
mov word [ebx + eax], dx
mov eax, dword [edi]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x412b9c
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0x14
test eax, eax
js 0x409841
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, edi
call sym._read_directory
mov esi, dword [edi + 4]
test esi, esi
je 0x409841
mov dword [edi + 0xc], 1
movzx eax, word [ebx]
mov dword [ebp - 0x14], eax
mov edi, eax
jmp 0x4097f6
mov esi, dword [esi]
test esi, esi
je 0x409841
mov eax, dword [esi + 0x2a4]
cmp word [eax], di
jne 0x4097f0
mov ecx, dword [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcmp
test eax, eax
jne 0x4097f0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
movzx eax, word [edx]
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a8], edi
add edx, eax
movzx eax, word [edx]
mov dword [ebp - 0x18], edx
test ax, ax
jne 0x409760
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov eax, dword [ebp - 0x1c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, edi
mov dword [ebx + 0x8b8], eax
sub esp, 4
cmp word [edi], 0
je 0x409889
lea esi, cs:[esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x409880
xor eax, eax
mov ecx, 0x5c
jmp 0x40989f
movzx ecx, word [eax + 0x415b78]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409898
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x8bc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
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
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax + 0x2b0], dx
add eax, 2
test dx, dx
jne 0x4098f8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._read_tree_win