Function at 0x10219e10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10231a20
mov eax, dword [0x102d4008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1021a126
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1021a126
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x1021a096
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10219e60
sub esi, ecx
je 0x1021a084
cmp esi, 0x7ffffffc
ja 0x1021a084
push 0x354
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x10219ea1
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], 0xc
jmp 0x1021a132
push 0x354
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0xfde9
lea ebx, [esi + 1]
push 0
push 0
push ebx
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x1021a000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x10219f06
push 0
push 0
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
jmp 0x10219f09
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x1021a000
lea eax, [ebx*2 + 4]
mov dword [ebp - 0x10], ebx
call fcn.10231a50
mov edx, esp
xor ecx, ecx
mov dword [ebp - 8], edx
test ebx, ebx
je 0x10219fd3
cmp ebx, 0x20
jb 0x10219fb8
lea eax, [edx + esi*2]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [esi + edx]
mov esi, esp
cmp esi, eax
ja 0x10219f4f
cmp dword [ebp - 0xc], edx
jae 0x10219fbe
mov eax, ebx
and eax, 0xffffffe0
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x20]
nop word [eax + eax]
movq xmm0, qword [edx + ecx]
lea eax, [eax + 0x40]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [eax - 0x60], xmm0
movq xmm0, qword [edx + ecx + 8]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [eax - 0x50], xmm0
movq xmm0, qword [edx + ecx + 0x10]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [eax - 0x40], xmm0
movq xmm0, qword [edx + ecx + 0x18]
add ecx, 0x20
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [eax - 0x30], xmm0
cmp ecx, dword [ebp - 0xc]
jb 0x10219f60
jmp 0x10219fbe
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
cmp ecx, ebx
jae 0x10219fd0
movsx ax, byte [ecx + edx]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x10219fc2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
dec eax
lea ecx, [edx + eax*2]
movzx eax, word [ecx - 2]
cmp eax, 0x2a
je 0x1021a04c
cmp eax, 0x2f
je 0x1021a046
cmp eax, 0x5c
je 0x1021a046
mov eax, dword [0x102a31cc]
mov dword [ecx], eax
mov ax, word [0x102a31d0]
mov word [ecx + 4], ax
jmp 0x1021a04c
lea eax, [eax*2 + 4]
call fcn.10231a50
mov ecx, dword [ebp - 0x10]
mov eax, esp
push ecx
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10219fd0
push dword [edi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 4
mov dword [edi], 0
call eax
jmp 0x1021a12c
mov dword [ecx], 0x2a
push dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi]
mov dword [ecx + 0x250], eax
mov eax, dword [edi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x1021a0ab
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 4
mov dword [edi], 0
call eax
jmp 0x1021a12c
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov dword [eax], 2
jmp 0x1021a132
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1021a132
mov eax, dword [edi]
xor esi, esi
cmp word [eax + 0x2c], si
lea ebx, [eax + 0x2c]
je 0x1021a0c8
cmp esi, 0xff
jae 0x1021a0c8
inc esi
cmp word [ebx + esi*2], 0
jne 0x1021a0b8
push 0
push 0
push 0x100
add eax, 0x254
inc esi
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1021a102
xor edx, edx
test esi, esi
je 0x1021a102
mov ecx, dword [edi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, esi
jb 0x1021a0f1
mov eax, dword [edi]
mov byte [eax + 0x353], 0
mov eax, dword [edi]
add eax, 0x254
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret