Function at 0x4216de
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x421819
push eax
push eax
push 0x1009
push dword [ebx + 0x818]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebx + 0x868]
call fcn.00422ce2
mov esi, 0x471844
lea edi, [ebp - 0x258]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x255]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
mov edi, 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4217f6
cmp eax, edi
jg 0x4217f6
lea eax, [ebx + 0x2fd]
lea esi, [ebx + 0xff]
push eax
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push esi
push dword [ebx + 0x820]
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor esi, esi
mov al, byte [ebp + esi - 0x118]
push 0x461eb0
mov byte [ebp - 0x258], al
lea eax, [ebp - 0x18]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0
push eax
lea eax, [ebp - 0x258]
lea ecx, [ebx + 0x868]
push eax
call fcn.00422c82
and byte [ebp - 0x258], 0
add esi, 3
cmp byte [ebp + esi - 0x118], 0
jne 0x4217d1
cmp byte [ebp + esi - 0x117], 0
je 0x4217d6
inc esi
cmp esi, edi
jl 0x42177e
lea esi, [ebx + 0x868]
mov ecx, esi
call fcn.00422cf4
push esi
mov ecx, ebx
push dword [ebx + 0x818]
call fcn.00422612
jmp 0x4219fa
push 1
mov ecx, ebx
call fcn.00422086
lea eax, [ebx + 0xff]
add ebx, 0x2fd
push eax
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x421a03
push 0x471840
push edi
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ecx
pop ecx
push 1
call esi
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
call esi
cmp dword [ebp + 8], 0xffffffff
jne 0x4218d2
cmp dword [ebp - 4], 0
je 0x421882
cmp dword [ebp - 4], 2
je 0x421882
lea eax, [ebx + 0xff]
push eax
lea eax, [ebx + 0x2fd]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4219fa
push edi
call sub.MSVCRT.dll_strlen
and byte [eax + edi - 2], 0
lea eax, [ebx + 0x2fd]
lea esi, [ebx + 0xff]
push eax
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0xc
push esi
push dword [ebx + 0x820]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x1009
push dword [ebx + 0x818]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4219fa
push 0
push 0
push 0x1009
push dword [ebx + 0x818]
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [ebx + 0x868]
mov ecx, esi
call fcn.00422ce2
lea eax, [ebp - 0x12c]
push 0x47183c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x421996
lea eax, [ebp - 0x12c]
push 0x471838
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x421996
test byte [ebp - 0x158], 0x10
jne 0x421972
push dword [ebp - 0x138]
lea eax, [ebp - 0x18]
push 0x46d9a8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
add esp, 0xc
sub eax, 0xd53e8000
sbb ecx, 0x19db1de
push 0
push 0x989680
push ecx
push eax
call fcn.0045d670
mov dword [ebp - 4], edx
push eax
jmp 0x421984
lea eax, [ebp - 0x18]
push 0x461eb0
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00422c82
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4218f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.00422cf4
push esi
mov ecx, ebx
push dword [ebx + 0x818]
call fcn.00422612
push edi
call sub.MSVCRT.dll_strlen
and byte [eax + edi - 2], 0
lea eax, [ebx + 0x2fd]
lea esi, [ebx + 0xff]
push eax
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0xc
push esi
push dword [ebx + 0x820]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
mov ecx, ebx
call fcn.00422086
pop edi
pop esi
pop ebx
leave
ret 4