Function at 0x404190
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]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], edx
lea edx, [ebx + 0x4b8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0x6b8]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x40438a
mov dword [ebx + 0x8b8], 0
mov esi, ecx
mov dword [edi], 0x5c
mov eax, dword [0x417020]
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 - 0x2c]
mov dword [ebx + 0x8bc], 0
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x4b5
mov dword [esp], eax
call edi
mov dword [ebp - 0x34], ebx
sub esp, 0x10
mov dword [ebp - 0x1c], 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 - 0x44], eax
call eax
mov dword [ebx + 0x2a0], 1
mov edi, dword [0x417870]
mov dword [ebp - 0x40], eax
sub esp, 4
mov dword [ebx + 0x2a4], esi
mov dword [ebx + 0x2a8], edi
movzx eax, word [esi]
test ax, ax
je 0x404371
nop
mov edx, dword [0x417874]
add eax, 2
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x30]
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 - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x412598
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 0x404371
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
xor edx, edx
mov ecx, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, edi
call dbg.read_directory
mov esi, dword [edi + 4]
test esi, esi
je 0x404371
mov dword [edi + 0xc], 1
movzx eax, word [ebx]
mov dword [ebp - 0x2c], eax
mov edi, eax
jmp 0x404326
mov esi, dword [esi]
test esi, esi
je 0x404371
mov eax, dword [esi + 0x2a4]
cmp word [eax], di
jne 0x404320
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcmp
test eax, eax
jne 0x404320
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 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 - 0x30], edx
test ax, ax
jne 0x404290
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
mov eax, dword [ebp - 0x34]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x34]
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 0x4043b9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4043b0
xor eax, eax
mov ecx, 0x5c
jmp 0x4043cf
movzx ecx, word [eax + 0x40d2b4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4043c8
mov eax, dword [ebp - 0x2c]
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 - 0x40]
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 0x404428
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
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