Function at 0x47ecc0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9607
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x4c4], eax
push ebx
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
je 0x47edfe
test eax, eax
je 0x47edfe
push 0x208
lea eax, [esp + 0x2c2]
push 0
push eax
mov word [esp + 0x2c8], 0
call fcn.004863a0
push 0x104
lea ecx, [esp + 0x2cc]
push edi
push ecx
call fcn.00486dcb
add esp, 0x18
test eax, eax
je 0x47edfe
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x38]
call fcn.00418aa0
lea ecx, [esp + 0x34]
mov dword [esp + 0x4e0], 0
call fcn.00420780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47edf5
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x54]
call fcn.00418aa0
lea edi, [esp + 0x50]
mov byte [esp + 0x4e0], 1
call fcn.00481430
push 0x4bf5b0
mov ebx, edi
call fcn.00481660
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.00420780
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [esp + 0x14]
call fcn.0044a3f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e0], 2
call fcn.00434a40
test eax, eax
jne 0x47ee30
lea ecx, [esp + 0x10]
call fcn.00434a60
mov ecx, edi
call fcn.00418c50
lea ecx, [esp + 0x34]
call fcn.00418c50
xor eax, eax
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x4c4]
xor ecx, esp
call fcn.004851ae
mov esp, ebp
pop ebp
ret
mov ecx, 0x4bf0a8
lea eax, [esp + 0x98]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ee66
test dx, dx
je 0x47ee62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ee66
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ee40
xor eax, eax
jmp 0x47ee6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ef62
mov ecx, 0x4bf0ac
lea eax, [esp + 0x98]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47eea6
test dx, dx
je 0x47eea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47eea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ee80
xor eax, eax
jmp 0x47eeab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ef62
test byte [esp + 0x6c], 0x10
je 0x47ef10
cmp dword [ebp + 0x10], 0
je 0x47ef5b
lea edx, [esp + 0x2bc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00418aa0
lea edi, [esp + 0x18]
mov byte [esp + 0x4e0], 3
call fcn.00481430
lea eax, [esp + 0x98]
push eax
mov ebx, edi
call fcn.00481660
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.00420780
push eax
call fcn.0047ecc0
add esp, 0xc
jmp 0x47ef4a
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00418a70
lea edi, [esp + 0x18]
mov byte [esp + 0x4e0], 4
call fcn.00481430
lea ecx, [esp + 0x98]
push ecx
mov ebx, edi
call fcn.00481660
mov ecx, dword [esp + 0x14]
mov edx, edi
push edx
call fcn.004348c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e0], 2
call fcn.00418c50
lea eax, [esp + 0x6c]
push eax
jmp 0x47ef67
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040f0f0
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47ee30
lea ecx, [esp + 0x10]
call fcn.00434a60
lea ecx, [esp + 0x50]
call fcn.00418c50
lea ecx, [esp + 0x34]
call fcn.00418c50
mov eax, 1
jmp 0x47ee00