Function at 0x415f81
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, 0x488
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x47c], eax
mov esi, edi
xor ebx, ebx
mov dword [ebp - 0x478], ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x415fb1
sub esi, ecx
sar esi, 1
lea eax, [esi + 2]
cmp eax, edx
ja 0x420ee1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x415fd0
mov esi, dword [ebp - 0x47c]
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx - 2]
mov dword [ebp - 0x488], eax
mov dword [esi], eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420ed2
test al, 0x10
jne 0x420ee8
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ce0
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push eax
call fcn.00414802
pop ecx
pop ecx
xor eax, eax
jmp 0x41600b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x420eed
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
push 0x2a
cmp word [edi + ecx*2 - 2], ax
jne 0x420f16
pop eax
mov word [edi + ecx*2], ax
xor eax, eax
mov word [edi + ecx*2 + 2], ax
jmp 0x420f27
mov word [edi + ecx*2], ax
pop eax
mov word [edi + ecx*2 + 2], ax
xor eax, eax
mov word [edi + ecx*2 + 4], ax
lea eax, [ebp - 0x474]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x420f68
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
cmp esi, 2
je 0x416008
cmp esi, 0x12
je 0x416008
push ebx
jmp 0x42115b
xor ebx, ebx
inc ebx
mov ecx, 0x402358
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420f9c
test dx, dx
je 0x420f98
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420f9c
add eax, 4
add ecx, 4
test dx, dx
jne 0x420f76
xor eax, eax
jmp 0x420fa1
sbb eax, eax
or eax, 1
test eax, eax
je 0x421102
mov ecx, 0x402378
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420fda
test dx, dx
je 0x420fd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420fda
add eax, 4
add ecx, 4
test dx, dx
jne 0x420fb4
xor eax, eax
jmp 0x420fdf
sbb eax, eax
or eax, 1
test eax, eax
je 0x421102
lea ecx, [ebp - 0x448]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x420ff0
sub ecx, edx
sar ecx, 1
je 0x421102
test byte [ebp - 0x474], 0x10
jne 0x4210f8
xor eax, eax
mov byte [ebp - 0x18], 1
mov esi, 0x104
mov dword [ebp - 0x1c], eax
push esi
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x224]
add esp, 0xc
cmp byte [ebp - 0x18], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040fba0
test eax, eax
js 0x421121
push edi
lea ecx, [ebp - 0x224]
call fcn.0040fcb9
mov edx, dword [ebp - 0x1c]
mov ecx, edx
test edx, edx
jne 0x421077
lea ecx, [ebp - 0x224]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x42107a
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x421097
lea edx, [ebp - 0x224]
xor eax, eax
mov word [edx + ecx*2 - 2], ax
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040fc22
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4210bd
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x484]
push eax
call fcn.00415f81
test eax, eax
je 0x421129
mov esi, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x488]
add ecx, dword [ebp - 0x484]
mov eax, dword [esi]
cmp eax, ecx
jg 0x4210ea
mov eax, ecx
push dword [ebp - 0x1c]
mov dword [esi], eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x421102
mov eax, dword [esi]
cmp eax, ecx
jg 0x421100
mov eax, ecx
mov dword [esi], eax
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x420f6b
jmp 0x421133
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push dword [ebp - 0x480]
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
test ebx, ebx
jne 0x420ee1
cmp esi, 0x12
je 0x416008
xor eax, eax
push eax
push esi
call fcn.00414802
pop ecx
xor eax, eax
pop ecx
jmp 0x41600b