Function at 0x4a21bba4
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, 0x470
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x46c], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a21bbcc
sub eax, edx
sar eax, 1
add eax, 2
cmp eax, dword [ebp + 0xc]
ja 0x4a225b21
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a21bbeb
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push esi
mov dword [ebp - 0x464], eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a225b28
test al, 0x10
jne 0x4a225b3a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret 0xc
xor eax, eax
jmp 0x4a21bc1f
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4a216d44
pop ecx
pop ecx
jmp 0x4a225b21
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a225b3f
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4a225b65
push 0x2a
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x4a225b78
push 0x5c
pop ecx
mov word [eax], cx
push 0x2a
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x4a225baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
je 0x4a21bc1c
jmp 0x4a225d44
push edi
xor edi, edi
inc edi
mov esi, 0x104
mov ecx, 0x4a212ec4
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a225be9
test dx, dx
je 0x4a225be5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a225be9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a225bc3
xor eax, eax
jmp 0x4a225bee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a225d0a
mov ecx, 0x4a212ebc
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a225c27
test dx, dx
je 0x4a225c23
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a225c27
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a225c01
xor eax, eax
jmp 0x4a225c2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a225d0a
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a225c3d
sub eax, edx
sar eax, 1
je 0x4a225d0a
test byte [ebp - 0x45c], 0x10
jne 0x4a225cd0
push dword [ebp - 0x46c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4a21185a
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a225c76
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4a2120a9
lea eax, [ebp - 0x468]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4a21bba4
test eax, eax
je 0x4a225d27
mov ecx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x468]
add eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jg 0x4a225ced
jmp 0x4a225d08
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a225cd9
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x4a225cf1
mov eax, ecx
jmp 0x4a225d08
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a225cfa
sub eax, edx
sar eax, 1
mov dword [ebx], eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x4a225bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x460]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
pop edi
jne 0x4a225b21
cmp esi, 0x12
je 0x4a21bc1c
push 0
push esi
call fcn.4a216d44
pop ecx
xor eax, eax
pop ecx
jmp 0x4a21bc1f