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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x27c
mov eax, dword [esp + 0x290]
mov dword [esp + 4], 0x5c
mov edi, dword [esp + 0x294]
mov ebx, dword [esp + 0x29c]
mov dword [esp], eax
call sub.msvcrt.dll_wcsrchr
mov dword [esp + 4], 0x2f
mov esi, eax
mov eax, dword [esp + 0x290]
mov dword [esp], eax
call sub.msvcrt.dll_wcsrchr
cmp esi, eax
cmovae eax, esi
xor esi, esi
test eax, eax
je 0x6adc09a1
sub eax, dword [esp + 0x290]
mov esi, eax
sar esi, 1
add esi, 1
mov edx, dword [esp + 0x298]
test edx, edx
je 0x6adc09c9
mov dword [esp + 8], 0x28b
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.errfunc____void__0_
call dword [0x6ae132b8]
test edi, 1
je 0x6adc0bb0
and edi, 0xfffffffc
jne 0x6adc0b88
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x290]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x6adc0c00
lea edx, [esi + 1]
mov dword [ebx], 0
lea ebp, [esi + esi]
xor eax, eax
mov dword [ebx + 4], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
jmp 0x6adc0ab5
lea eax, [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, esi
add eax, eax
mov dword [esp], eax
call fcn.6adab620
mov edi, eax
test eax, eax
je 0x6adc0bd8
mov eax, dword [esp + 0x290]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea ecx, [esi + esi + 2]
lea edx, [esp + 0x4c]
lea eax, [edi + ebp]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea esi, [eax + 1]
mov dword [ebx], esi
mov dword [ecx + eax*4], edi
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x6adc0af0
mov eax, dword [ebx]
cmp dword [esp + 0x14], eax
jne 0x6adc0a30
mov eax, dword [esp + 0x14]
lea eax, [eax + eax + 1]
mov dword [esp + 0x14], eax
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.6adab660
test eax, eax
je 0x6adc0bd8
mov dword [ebx + 4], eax
jmp 0x6adc0a30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
cmp edi, 0x12
jne 0x6adc0b20
add esp, 0x27c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov esi, 2
call ebp
mov ecx, eax
mov eax, edi
call fcn.6adbfec0
mov dword [ecx], eax
call ebp
xor edi, edi
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
test eax, eax
je 0x6adc0b65
lea esi, [esi]
nop
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
add edi, 1
mov dword [esp], eax
call fcn.6adab650
cmp edi, dword [ebx]
jb 0x6adc0b50
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.6adab650
call ebp
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
add esp, 0x27c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x28d
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str._flags___0x2__0x1____0
call dword [0x6ae132b8]
jmp 0x6adc09de
mov dword [esp + 8], 0x28c
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str._flags__0x1___0x1
call dword [0x6ae132b8]
jmp 0x6adc09d5
mov eax, dword [esp + 0x18]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.msvcrt.dll__errno]
sub esp, 4
call ebp
mov dword [eax], 0xc
jmp 0x6adc0b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x6adc0c30
call dword [sym.imp.msvcrt.dll__errno]
mov esi, 2
mov ecx, eax
mov eax, ebx
call fcn.6adbfec0
mov dword [ecx], eax
add esp, 0x27c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov esi, 3
mov dword [eax], 0
jmp 0x6adc0b0f