Function at 0x1014efe
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x4f8], esi
mov dword [ebp - 0x4b4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014f5b
test dword [eax + 0x1c], 0x20000000
je 0x1014f5b
push 0x1002e14
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd3c
push 1
push 0x8b
push 0x1002ea0
lea ecx, [ebp - 0x4e8]
call fcn.01014882
or dword [ebp - 0x4c4], 0xffffffff
or dword [ebp - 0x4b0], 0xffffffff
xor edi, edi
mov dword [ebp - 0x4b8], edi
mov dword [ebp - 0x4c0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4f4], 0x10032b8
mov dword [ebp - 0x4f0], edi
mov dword [ebp - 0x4ec], edi
mov eax, 0x9b
cmp ebx, edi
jne 0x1014fcf
mov dword [ebp - 0x4e8], 0x80070057
mov word [ebp - 0x4e2], ax
jmp 0x10151df
mov word [ebp - 0x4e4], ax
mov eax, 0x9c
cmp esi, edi
je 0x1014fb9
mov ecx, dword [ebp - 0x4bc]
mov word [ebp - 0x4e4], ax
inc eax
cmp ecx, edi
je 0x1014fb9
mov word [ebp - 0x4e4], ax
mov eax, dword [ebp - 0x4b4]
cmp eax, edi
jne 0x1015009
mov eax, 0x9e
jmp 0x1014fb9
mov dword [esi], edi
mov esi, 0x250
mov dword [ecx], edi
push esi
mov dword [eax], edi
lea eax, [ebp - 0x254]
mov edx, 0x9e
push edi
push eax
mov dword [ebp - 0x4e8], edi
mov word [ebp - 0x4e4], dx
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4a4]
push edi
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1002e34
push esi
push ebx
lea eax, [ebp - 0x4f4]
push 0x1002e90
push eax
call fcn.0101728e
add esp, 0x28
mov dword [ebp - 0x4e8], eax
cmp eax, edi
mov eax, 0xaa
jl 0x1014fc3
mov word [ebp - 0x4e4], ax
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4c4], eax
cmp eax, 0xffffffff
je 0x10150a5
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4c0], 1
push esi
push ebx
lea eax, [ebp - 0x4f4]
push 0x1002e7c
push eax
call fcn.0101728e
add esp, 0x10
mov dword [ebp - 0x4e8], eax
cmp eax, edi
mov eax, 0xb5
jl 0x1014fc3
mov word [ebp - 0x4e4], ax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xffffffff
je 0x10151b5
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1015100
sub eax, edx
sar eax, 1
push 7
lea esi, [ebp + eax*2 - 0x232]
pop ebx
movzx eax, word [esi]
sub eax, 0x30
cmp eax, dword [ebp - 0x4a8]
jbe 0x101512c
mov dword [ebp - 0x4a8], eax
inc dword [ebp - 0x4ac]
cmp dword [ebp - 0x4a8], ebx
ja 0x10151a9
cmp dword [ebp - 0x4ac], ebx
ja 0x10151a9
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101517e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4b8], eax
cmp eax, 0x12
jne 0x101518b
mov ecx, pe_nt_image_headers32
mov dword [ebp - 0x4e8], edi
mov word [ebp - 0x4e4], cx
jmp 0x1015184
mov eax, dword [ebp - 0x4b8]
cmp eax, 0x12
jne 0x1015118
jmp 0x10151b5
cmp eax, edi
jle 0x1015199
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4e8], eax
mov eax, pe_nt_image_headers32
jmp 0x1014fc3
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4a8], ebx
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [ebp - 0x4f8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [ebp - 0x4ac]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4a8]
mov dword [eax], ecx
push dword [ebp - 0x4c4]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
push dword [ebp - 0x4b0]
call esi
mov esi, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4f4]
call fcn.01016fc9
lea ecx, [ebp - 0x4e8]
call fcn.01014a83
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010141f3
leave
ret 0x10