Function at 0x6adc59b0
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 esi, dword [esp + 0x294]
mov ebx, dword [esp + 0x29c]
mov dword [esp], eax
call sub.msvcrt.dll_wcsrchr
mov dword [esp + 4], 0x2f
mov edi, eax
mov eax, dword [esp + 0x290]
mov dword [esp], eax
call sub.msvcrt.dll_wcsrchr
cmp eax, edi
jb 0x6adc5a0a
mov dword [esp + 0x18], 0
test eax, eax
je 0x6adc5a1a
mov edi, eax
sub edi, dword [esp + 0x290]
sar edi, 1
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x298]
test edx, edx
je 0x6adc5a42
mov dword [esp + 8], 0x27b
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str.errfunc____void__0_
call dword [0x6add9074]
test esi, 1
je 0x6adc5c48
cmp esi, 3
ja 0x6adc5c20
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 + 0x1c], eax
cmp eax, 0xffffffff
je 0x6adc5c70
mov eax, dword [esp + 0x18]
mov dword [ebx], 0
lea edi, [esp + 0x4c]
mov dword [ebx + 4], 0
add eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
xor eax, eax
jmp 0x6adc5b3a
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov esi, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + esi + 1]
add eax, eax
mov dword [esp], eax
call fcn.6adaeec0
mov ebp, eax
test eax, eax
je 0x6adc5b70
mov edx, dword [esp + 0x290]
mov eax, dword [esp + 0x10]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi + 2]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
add eax, ebp
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], ebp
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x6adc5be0
mov eax, dword [ebx]
cmp dword [esp + 0x14], eax
jne 0x6adc5ab0
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.6adaef00
test eax, eax
je 0x6adc5b70
mov dword [ebx + 4], eax
jmp 0x6adc5ab0
mov eax, dword [esp + 0x1c]
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
call ebp
xor edi, edi
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x6adc5bbd
lea esi, [esi]
nop
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
add edi, 1
mov dword [esp], eax
call fcn.6adaeef0
cmp edi, dword [ebx]
jb 0x6adc5ba8
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.6adaeef0
call ebp
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add esp, 0x27c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
cmp edi, 0x12
je 0x6adc5bd0
mov ebp, dword [sym.imp.msvcrt.dll__errno]
call ebp
mov esi, eax
mov eax, edi
call fcn.6adc4ec0
mov dword [esi], eax
mov esi, 2
jmp 0x6adc5b93
mov dword [esp + 8], 0x27d
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str._flags___0x2__0x1____0
call dword [0x6add9074]
jmp 0x6adc5a57
mov dword [esp + 8], 0x27c
mov dword [esp + 4], str.src_win32_replacements.c
mov dword [esp], str._flags__0x1___0x1
call dword [0x6add9074]
jmp 0x6adc5a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x6adc5ca0
call dword [sym.imp.msvcrt.dll__errno]
mov esi, eax
mov eax, ebx
call fcn.6adc4ec0
mov dword [esi], eax
add esp, 0x27c
mov esi, 2
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov esi, 3
mov dword [eax], 0
jmp 0x6adc5bd0