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

Disassembly:
mov eax, 0x1364
call fcn.010204c0
mov eax, dword [0x102806c]
xor eax, esp
mov dword [esp + 0x135c], eax
mov eax, dword [esp + 0x136c]
push ebx
push ebp
mov ebp, dword [esp + 0x1370]
push esi
push edi
push 0x7ff
lea edx, [esp + 0x36d]
push 0
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x374], 0
call fcn.01016120
push 0x800
lea eax, [esp + 0xb78]
push 0
push eax
call fcn.01016120
add esp, 0x18
lea ecx, [esp + 0x168]
push ecx
push 0x1ff
mov byte [esp + 0x170], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10067b5
mov dx, word [0x1024fe8]
mov al, byte [0x1024fea]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edi, [esp + 0x168]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], al
mov dword [esp + 0x14], edi
mov cl, byte [edi]
push edi
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10067a0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xb6c]
push 0x800
push eax
call fcn.01011b01
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0xb78]
push 0x800
push edx
call fcn.01011ef9
add esp, 0x18
lea esi, [ebp + 0x140]
push esi
lea eax, [esp + 0xb6c]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10067a0
test byte [esi], 0x10
je 0x1006775
add ebp, 0x16c
mov edi, 0x1024c7c
mov esi, ebp
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006771
mov edi, 0x1024fec
mov esi, ebp
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006771
lea ecx, [esp + 0xb68]
push ecx
lea edx, [esp + 0x36c]
push 0x800
push edx
call fcn.01011b01
lea eax, [esp + 0x374]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10066c0
sub eax, edx
push ebp
mov byte [esp + eax + 0x36b], cl
lea eax, [esp + 0x36c]
push 0x800
push eax
call fcn.01011ef9
push 0x1024ff0
lea ecx, [esp + 0x378]
push 0x800
push ecx
call fcn.01011ef9
add esp, 0x18
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x36c]
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1006771
test byte [esp + 0x28], 0x10
je 0x100675a
mov edi, 0x1024c7c
lea esi, [esp + 0x54]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100675a
mov edi, 0x1024fec
lea esi, [esp + 0x54]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100675a
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.01011220
add esp, 8
test eax, eax
jne 0x10067d2
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1006715
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea esi, [ebp + 0x140]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1006657
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, edi
mov al, byte [edi]
add edi, 1
test al, al
jne 0x10067a0
cmp byte [edi], al
mov dword [esp + 0x14], edi
jne 0x10065f2
xor eax, eax
mov ecx, dword [esp + 0x136c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0100fd07
add esp, 0x1364
ret 8
lea eax, [esp + 0xb68]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10067e0
sub eax, edx
mov edx, dword [esp + 0x1c]
mov byte [esp + eax + 0xb67], cl
lea ecx, [esp + 0xb68]
push ecx
add edx, 0x28c
push 0x800
push edx
call fcn.01011b01
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0xc
push ebp
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, 1
jmp 0x10067b7