Function at 0x100e4c60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c
call fcn.101ebae0
mov eax, dword [0x102ab2c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100e4edd
test ebx, ebx
je 0x100e4edd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x100e4f30
mov esi, ebx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100e4cb0
sub esi, ecx
je 0x100e4f23
cmp esi, 0x7ffffffc
ja 0x100e4f23
push 0x354
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x100e4cee
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xc
jmp 0x100e4ee8
push 0x354
push 0
push eax
call fcn.101eec70
add esp, 0xc
mov dword [ebp - 8], 0xfde9
lea eax, [esi + 1]
push 0
push 0
push eax
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x100e4ea3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x459
jne 0x100e4d58
push 0
push 0
lea eax, [esi + 1]
push eax
push ebx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
test eax, eax
jg 0x100e4ea3
lea eax, [esi + 1]
mov dword [ebp - 0x10], eax
lea eax, [eax*2 + 4]
call fcn.101ec4c0
lea edx, [esi + 1]
mov ecx, esp
xor eax, eax
mov dword [ebp - 0xc], ecx
test edx, edx
je 0x100e4e76
cmp edx, 4
jb 0x100e4e5f
lea ecx, [ecx + esi*2]
mov dword [ebp - 8], ecx
lea ecx, [esi + ebx]
cmp esp, ecx
ja 0x100e4d9b
cmp dword [ebp - 8], ebx
jae 0x100e4e5f
cmp edx, 0x20
jb 0x100e4e34
mov ecx, edx
mov edi, edx
and ecx, 0x1f
sub edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebx + 0x10]
mov edi, dword [ebp - 0xc]
add edi, 0x20
mov dword [ebp - 0x14], ecx
mov ebx, ecx
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
nop word [eax + eax]
movq xmm0, qword [ebx - 0x10]
lea ecx, [ecx + 0x40]
punpcklbw xmm0, xmm0
lea ebx, [ebx + 0x20]
psraw xmm0, 8
add eax, 0x20
movups xmmword [ecx - 0x60], xmm0
movq xmm0, qword [ebx - 0x28]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ecx - 0x50], xmm0
movq xmm0, qword [ebx - 0x20]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ecx - 0x40], xmm0
movq xmm0, qword [ebx - 0x18]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ecx - 0x30], xmm0
cmp eax, dword [ebp - 0x18]
jb 0x100e4dd0
cmp dword [ebp - 0x1c], 4
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
jb 0x100e4e5b
jmp 0x100e4e37
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
and dword [ebp - 8], 0xfffffffc
nop
movd xmm0, dword [ebx + eax]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movq qword [ecx + eax*2], xmm0
add eax, 4
cmp eax, dword [ebp - 8]
jb 0x100e4e40
cmp eax, edx
jae 0x100e4e76
mov edi, dword [ebp - 0xc]
movsx cx, byte [ebx + eax]
mov word [edi + eax*2], cx
inc eax
cmp eax, edx
jb 0x100e4e62
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
dec eax
lea edx, [ecx + eax*2]
movzx eax, word [edx - 2]
cmp eax, 0x2a
je 0x100e4f04
cmp eax, 0x2f
je 0x100e4efe
cmp eax, 0x5c
je 0x100e4efe
mov eax, dword [0x1022fd6c]
mov dword [edx], eax
mov ax, word [0x1022fd70]
mov word [edx + 4], ax
jmp 0x100e4f04
lea eax, [eax*2 + 4]
call fcn.101ec4c0
mov ecx, dword [ebp - 0x10]
mov eax, esp
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 1]
push eax
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100e4e73
push dword [edi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [edi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101ebfaa
mov esp, ebp
pop ebp
ret
mov dword [edx], 0x2a
push dword [edi]
push ecx
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 0x100e4f41
push eax
jmp 0x100e4ecf
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 2
jmp 0x100e4ee8
push eax
push dword [eax + 0x250]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x100e4ee8
mov eax, dword [edi]
xor esi, esi
cmp word [eax + 0x2c], si
lea ebx, [eax + 0x2c]
je 0x100e4f60
nop
cmp esi, 0xff
jae 0x100e4f60
inc esi
cmp word [ebx + esi*2], 0
jne 0x100e4f50
push 0
push 0
push pe_nt_image_headers32
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 0x100e4fa1
xor edx, edx
test esi, esi
je 0x100e4fa1
nop dword [eax]
mov ecx, dword [edi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, esi
jb 0x100e4f90
mov eax, dword [edi]
mov byte [eax + 0x353], 0
mov eax, dword [edi]
add eax, 0x254
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101ebfaa
mov esp, ebp
pop ebp
ret