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

Disassembly:
sub esp, 0x740
push ebx
push ebp
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebp, dword [esp + 0x754]
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push eax
mov esi, dword [ebp + 0x14]
push 0x406
push dword [ebp]
mov dword [esp + 0x20], esi
call ebx
mov ecx, dword [esp + 0x758]
mov edi, eax
test ecx, ecx
jne 0x58eeda
mov ecx, 0x6ef070
push ecx
push esi
call sub.MSVCRT.dll_wcscpy
movzx eax, word [esi]
pop ecx
pop ecx
cmp eax, 0x61
jb 0x58eeee
sub eax, 0x20
mov word [esi], ax
test ax, ax
je 0x58ef14
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
push 0x5c
pop ecx
cmp word [esi + eax*2 - 2], cx
je 0x58ef14
push 0x705e38
push esi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push 0x146
push edi
call ebx
test eax, eax
je 0x58ef44
xor esi, esi
push esi
push esi
push 0x144
push dword [ebp]
call ebx
push esi
push esi
push 0x146
push edi
call ebx
test eax, eax
jne 0x58ef26
mov esi, dword [esp + 0x10]
test byte [ebp + 0x10], 0x80
je 0x58f073
movzx ebx, word [esi]
push 0x41
pop edi
sub ebx, edi
cmp ebx, 0x19
ja 0x58ef71
push 0x705e00
push esi
call sub.MSVCRT.dll_wcscpy
movsx ax, bl
pop ecx
pop ecx
add ax, di
jmp 0x58ef76
or ebx, 0xffffffff
xor eax, eax
mov word [esi], ax
or edi, 0xffffffff
lea eax, [esp + 0x258]
mov dword [esp + 0x14], 0x37
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x44]
push 0x705e00
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test dword [esp + 0x38], eax
je 0x58f064
lea eax, [esi + 0x41]
mov word [esp + 0x44], ax
lea eax, [esp + 0x460]
push str.Drive
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
push 0x4001
push 0x2b4
lea eax, [esp + 0x254]
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x250]
push 0x200
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x250]
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x258]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push 0x40b
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x18]
cmp esi, ebx
jne 0x58f05f
mov edi, eax
inc eax
mov dword [esp + 0x18], eax
inc esi
cmp esi, 0x1f
jle 0x58efb4
jmp 0x58f516
xor edi, edi
test dword [ebp + 0x10], 0x200
mov dword [esp + 0x38], edi
jne 0x58f0eb
lea eax, [esp + 0x44]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
cmp word [esp + 0x4c], 0
lea edi, [esp + 0x4c]
pop ecx
pop ecx
je 0x58f0b6
xor esi, esi
movzx eax, word [edi]
push eax
call sub.MSVCRT.dll_tolower
mov word [edi], ax
lea edi, [edi + 2]
pop ecx
cmp word [edi], si
jne 0x58f09d
mov esi, dword [esp + 0x10]
cmp dword [0x7c6d48], 0
je 0x58f0e9
mov edi, 0x7c6930
push edi
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0x10
xor edi, edi
test eax, eax
jne 0x58f0eb
mov dword [esp + 0x38], 1
jmp 0x58f0eb
xor edi, edi
mov eax, dword [0x7c6d40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x40b
push dword [ebp]
mov dword [esp + 0x24], 0x37
mov dword [esp + 0x2c], 0x7c6b38
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0xff
call ebx
inc dword [esp + 0x18]
lea eax, [esp + 0x258]
inc dword [esp + 0x30]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor eax, eax
mov dword [esp + 0x40], edx
mov ecx, eax
mov dword [esp + 0x3c], eax
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x58f367
lea eax, [esp + 0x44]
push 0x705e00
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x44]
add eax, 0x41
mov word [esp + 0x4c], ax
lea eax, [esp + 0x468]
push str.Drive
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 0x10
lea eax, [esp + 0x24c]
push 0x4001
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x250]
push 0x200
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x250]
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x258]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push 0x40b
push dword [ebp]
call ebx
push 6
lea eax, [esp + 0x48]
push esi
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x58f356
cmp dword [esp + 0x38], eax
jne 0x58f356
lea eax, [esi + 6]
xor ecx, ecx
push 3
pop edi
cmp word [eax], cx
je 0x58f346
push 0x5c
mov dword [esp + 0x14], 0x100fd
pop edx
movzx eax, word [eax]
jmp 0x58f24d
test ax, ax
je 0x58f252
inc edi
movzx eax, word [esi + edi*2]
cmp ax, dx
jne 0x58f243
lea eax, [edi + edi]
cmp word [eax + esi], cx
je 0x58f339
lea eax, [esp + 0x460]
push 0x706168
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [edi + edi]
push eax
lea eax, [esp + 0x50]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x14
lea eax, [edi + edi]
xor ecx, ecx
mov word [esp + eax + 0x44], cx
lea eax, [esp + 0x500]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x58f334
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [esp + 0x18]
lea eax, [esp + 0x24c]
inc dword [esp + 0x30]
push 0x4001
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x250]
push 0x200
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x250]
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x258]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push 0x40b
push dword [ebp]
call ebx
add dword [esp + 0x10], 0x10000
push 0x5c
pop edx
xor ecx, ecx
inc edi
lea eax, [esi + edi*2]
cmp word [eax], cx
jne 0x58f23e
mov eax, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x30], 1
jmp 0x58f35a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
inc eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, 0x1f
jle 0x58f14f
cmp dword [0x7c6d48], 0
je 0x58f3ba
test dword [ebp + 0x10], 0x200
jne 0x58f3ba
mov eax, dword [0x7c651c]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push ecx
push 0x40b
push dword [ebp]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], 0x7c6520
mov dword [esp + 0x44], 0xfe
call ebx
cmp dword [esp + 0x38], 0
je 0x58f51c
xor eax, eax
push 0x7c6728
mov ebx, eax
mov edi, eax
call sub.MSVCRT.dll_wcslen
pop ecx
push 0x5c
pop ebp
cmp word [esi + edi*2], bp
jne 0x58f3e0
inc ebx
push 0x7c6728
inc edi
call sub.MSVCRT.dll_wcslen
pop ecx
cmp edi, eax
jbe 0x58f3d9
mov ebp, dword [esp + 0x754]
inc edi
movzx eax, word [esi + edi*2]
test ax, ax
je 0x58f512
shl ebx, 0x10
add ebx, 0xfd
push 0x5c
pop ecx
jmp 0x58f41d
test ax, ax
je 0x58f422
inc edi
movzx eax, word [esi + edi*2]
cmp ax, cx
jne 0x58f413
lea eax, [edi + edi]
xor ecx, ecx
cmp word [eax + esi], cx
je 0x58f504
lea eax, [esp + 0x460]
push 0x706168
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [edi + edi]
push eax
lea eax, [esp + 0x50]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x14
lea eax, [edi + edi]
xor ecx, ecx
mov word [esp + eax + 0x44], cx
lea eax, [esp + 0x500]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x58f504
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [esp + 0x18]
lea eax, [esp + 0x24c]
inc dword [esp + 0x30]
push 0x4001
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x250]
push 0x200
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x250]
push 0x2b4
push eax
xor eax, eax
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x258]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push 0x40b
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
add ebx, 0x10000
inc edi
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x58f40e
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
push 0x14e
push dword [ebp]
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x740
ret 8