Function at 0x4131ec
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
xor edi, edi
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], edx
mov esi, ecx
mov dword [ebp - 0x27c], edi
push edi
push eax
mov dword [ebp - 0x264], esi
call sub.msvcrt.dll_memset
mov ecx, esi
mov dword [ebp - 0x280], edi
add esp, 0xc
or dword [ebp - 0x274], 0xffffffff
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41324a
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 0x106]
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x270], eax
test eax, eax
jne 0x413286
push 8
pop ebx
mov edi, eax
jmp 0x41364a
mov ecx, dword [ebp - 0x260]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413291
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x106]
mov dword [ebp - 0x278], eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x26c], esi
test esi, esi
jne 0x4132d4
push 8
pop ebx
xor edi, edi
jmp 0x413609
push dword [ebp - 0x264]
push 0x404df8
push edi
mov edi, dword [ebp - 0x270]
push edi
call fcn.004124a5
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x27c]
jne 0x4132f4
push dword [ebp - 0x260]
sub ecx, edx
sar ecx, 1
push 0x404df8
push dword [ebp - 0x278]
lea eax, [edi + ecx*2]
push esi
mov dword [ebp - 0x264], eax
call fcn.004124a5
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x27c]
jne 0x41332f
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx*2]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x268]
test eax, eax
jne 0x413360
mov eax, 0x404e00
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x264]
mov edx, 0x105
push eax
call fcn.0041158f
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x4133cb
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x41339d
mov ecx, eax
call fcn.0041bd34
jmp 0x4133a7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov edi, eax
test edi, edi
jne 0x4133cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x404e08
push 4
call fcn.0041944e
add esp, 0x10
jmp 0x413609
cmp dword [ebp + 0x14], 0
je 0x4133ed
mov ecx, dword [ebp - 0x260]
xor edx, edx
push 0x404588
call fcn.004197b4
mov edi, eax
test edi, edi
je 0x413601
mov ecx, dword [ebp - 0x260]
mov edx, 0x80
call fcn.00413d45
mov edi, eax
test edi, edi
je 0x413601
mov ebx, dword [ebp - 0x270]
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x230]
push eax
mov edx, 0x105
mov ecx, edi
call fcn.0041158f
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x230]
push eax
mov edx, 0x105
call fcn.0041158f
test byte [ebp - 0x25c], 0x10
je 0x4134f8
cmp dword [ebp + 0x20], 0
je 0x4135b2
mov ecx, 0x404e5c
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413487
test dx, dx
je 0x413481
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413487
add eax, 4
add ecx, 4
test dx, dx
jne 0x41345f
xor edi, edi
mov eax, edi
jmp 0x41348e
sbb eax, eax
or eax, 1
xor edi, edi
test eax, eax
je 0x4135b2
mov ecx, 0x404e60
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4134c7
test dx, dx
je 0x4134c3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4134c7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4134a1
mov eax, edi
jmp 0x4134cc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4135b2
push dword [ebp + 0x20]
mov edx, esi
mov ecx, ebx
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x268]
call fcn.004131ec
jmp 0x4135ac
cmp dword [ebp + 0x18], 0
je 0x41350d
mov ecx, edi
call fcn.00413c7d
test eax, eax
je 0x4135b2
cmp dword [ebp + 0x10], 0
je 0x413536
push 0x404120
xor edx, edx
mov ecx, esi
call fcn.004197b4
mov edi, eax
test edi, edi
jne 0x413536
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4135cf
push dword [ebp + 0xc]
mov edx, esi
mov ecx, ebx
call fcn.004137e8
test eax, eax
je 0x413575
call fcn.004118d5
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.00411ea7
mov edx, dword [ebp - 0x26c]
mov ecx, ebx
call fcn.00413664
mov ecx, esi
mov edi, eax
call fcn.00411ea7
mov esi, dword [ebp - 0x26c]
test edi, edi
je 0x4135cf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4135b2
test al, 0x50
jne 0x4135b2
mov edx, 0x80
mov ecx, esi
call fcn.00413d45
mov edi, eax
test edi, edi
je 0x4135cf
cmp dword [ebp + 0x10], 0
je 0x4135b2
xor edx, edx
mov ecx, esi
push 0x404120
inc edx
call fcn.004197b4
mov edi, eax
test edi, edi
je 0x4135cf
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x41340d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x280]
cmp eax, 0x12
jne 0x413601
xor edi, edi
inc edi
cmp dword [ebp + 0x14], ebx
je 0x413609
mov ecx, dword [ebp - 0x260]
xor edx, edx
push 0x404588
inc edx
call fcn.004197b4
mov edi, eax
test edi, edi
jne 0x413609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x270]
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x413634
push esi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x274]
cmp eax, 0xffffffff
je 0x413646
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x413651
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret 0x1c