Function at 0x4255c7
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
push ebx
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x14]
mov ebx, dword [sym.imp.USER32.DLL_SendMessageW]
xor edi, edi
push edi
push edi
push 0x406
push dword [eax]
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
jne 0x425606
mov dword [ebp + 0xc], 0x43301c
push dword [ebp + 0xc]
push esi
call sub.MSVCRT.dll_wcscpy
movzx eax, word [esi]
pop ecx
pop ecx
cmp eax, 0x61
jb 0x42561c
add eax, 0xffffffe0
mov word [esi], ax
cmp ax, di
je 0x42564d
push esi
call sub.MSVCRT.dll_wcslen
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
je 0x42564d
push 0x43331c
push esi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x42564d
push edi
push edi
push 0x144
push dword [eax]
call ebx
push edi
push edi
push 0x146
push dword [ebp - 4]
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jne 0x425642
mov eax, dword [eax + 0x10]
test al, al
jns 0x42578d
movzx eax, word [esi]
sub eax, 0x41
mov dword [ebp - 8], eax
cmp eax, 0x19
ja 0x425691
push 0x433314
push esi
call sub.MSVCRT.dll_wcscpy
movsx ax, byte [ebp - 8]
pop ecx
pop ecx
add ax, 0x41
jmp 0x425697
or dword [ebp - 8], 0xffffffff
xor eax, eax
or dword [ebp + 0xc], 0xffffffff
mov word [esi], ax
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x30], 0x37
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x240]
push 0x433314
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, 0x2b4
xor eax, eax
inc eax
shl eax, cl
test dword [ebp - 0x34], eax
je 0x425778
lea eax, [ebp - 0x2e0]
add ecx, 0x41
push str.Drive
push eax
mov word [ebp - 0x240], cx
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push 0x4001
push esi
lea eax, [ebp - 0x4f4]
push eax
push edi
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov eax, dword [ebp - 0x4f0]
push 0x200
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x4f4]
push eax
push edi
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push edi
push 0x40b
push dword [eax]
call ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x425775
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0xc], eax
inc dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 0x1f
jle 0x4256da
jmp 0x425c08
mov dword [ebp - 4], edi
test eax, 0x200
jne 0x4257f8
lea eax, [ebp - 0x240]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
cmp word [ebp - 0x240], di
pop ecx
lea esi, [ebp - 0x240]
jmp 0x4257c6
movzx eax, word [esi]
push eax
call sub.MSVCRT.dll_tolower
mov word [esi], ax
add esi, 2
cmp word [esi], di
pop ecx
jne 0x4257b4
cmp dword [0x43ba84], edi
je 0x4257f8
mov esi, 0x43bca0
push esi
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [ebp - 0x240]
push esi
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0x10
test eax, eax
jne 0x4257f8
mov dword [ebp - 4], 1
mov eax, dword [0x43ba8c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push edi
push 0x40b
push dword [eax]
mov dword [ebp - 0x30], 0x37
mov dword [ebp - 0x28], 0x43ba98
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0xff
call ebx
inc dword [ebp - 0x2c]
inc dword [ebp - 0x14]
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x28], eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov dword [ebp - 0x34], eax
mov esi, 0x2b4
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
test dword [ebp - 0x34], eax
je 0x425a4c
lea eax, [ebp - 0x240]
push 0x433314
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp - 0xc]
add eax, 0x41
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x2e0]
push str.Drive
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 0x10
push 0x4001
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0x4f0]
push 0x200
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x40b
push dword [eax]
call ebx
push 6
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x425a49
cmp dword [ebp - 4], eax
jne 0x425a49
mov eax, dword [ebp - 8]
lea ecx, [eax + 6]
cmp word [ecx], 0
mov dword [ebp + 0xc], 3
je 0x425a3c
mov dword [ebp - 0x38], 0x100fd
movzx ecx, word [ecx]
jmp 0x42594f
test cx, cx
je 0x425954
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [eax + ecx*2]
cmp ecx, 0x5c
jne 0x425940
mov ecx, dword [ebp + 0xc]
add ecx, ecx
cmp word [ecx + eax], 0
je 0x425a29
lea eax, [ebp - 0x2e0]
push str.Unknown
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add eax, eax
xor ecx, ecx
mov word [ebp + eax - 0x240], cx
add esp, 0x14
lea eax, [ebp - 0x744]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x425a26
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x2c]
inc dword [ebp - 0x14]
push 0x4001
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0x4f0]
push 0x200
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x40b
push dword [eax]
call ebx
add dword [ebp - 0x38], 0x10000
mov eax, dword [ebp - 8]
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*2]
cmp word [ecx], 0
jne 0x42593b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 1
mov dword [ebp + 0xc], eax
inc dword [ebp - 0x2c]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x1f
jle 0x425858
xor edx, edx
cmp dword [0x43ba84], edx
je 0x425a99
mov ecx, dword [ebp + 8]
test dword [ecx + 0x10], 0x200
jne 0x425a99
mov eax, dword [0x43ba90]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push edx
push 0x40b
push dword [ecx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], 0x43c0b0
mov dword [ebp - 0x10], 0xfe
call ebx
cmp dword [ebp - 4], 0
je 0x425c06
and dword [ebp - 4], 0
and dword [ebp + 0xc], 0
push 0x43bea8
call sub.MSVCRT.dll_wcslen
pop ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp word [eax + ecx*2], 0x5c
jne 0x425ac6
inc dword [ebp - 4]
inc dword [ebp + 0xc]
push 0x43bea8
call sub.MSVCRT.dll_wcslen
pop ecx
cmp dword [ebp + 0xc], eax
jbe 0x425ab6
inc dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2]
test ax, ax
je 0x425c00
mov edx, dword [ebp - 4]
shl edx, 0x10
add edx, 0xfd
mov dword [ebp - 4], edx
cmp ax, 0x5c
je 0x425b18
test ax, ax
je 0x425b18
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0x5c
jne 0x425b04
mov eax, dword [ebp + 0xc]
add eax, eax
cmp word [eax + ecx], 0
je 0x425bed
lea eax, [ebp - 0x2e0]
push str.Unknown
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x240]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add eax, eax
xor ecx, ecx
mov word [ebp + eax - 0x240], cx
add esp, 0x14
lea eax, [ebp - 0x744]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x425bea
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x2c]
inc dword [ebp - 0x14]
push 0x4001
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0x4f0]
push 0x200
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x4f4]
push eax
push 0
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x40b
push dword [eax]
call ebx
add dword [ebp - 4], 0x10000
mov ecx, dword [ebp - 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x425afe
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0xc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push 0x14e
push dword [eax]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8