Function at 0x6adc59c0
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 0x6adc5a1a
mov dword [esp + 0x18], 0
test eax, eax
je 0x6adc5a2a
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 0x6adc5a52
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 0x6adc5c58
cmp esi, 3
ja 0x6adc5c30
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 0x6adc5c80
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 0x6adc5b4a
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 0x6adc5b80
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 0x6adc5bf0
mov eax, dword [ebx]
cmp dword [esp + 0x14], eax
jne 0x6adc5ac0
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 0x6adc5b80
mov dword [ebx + 4], eax
jmp 0x6adc5ac0
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 0x6adc5bcd
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 0x6adc5bb8
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 0x6adc5be0
mov ebp, dword [sym.imp.msvcrt.dll__errno]
call ebp
mov esi, eax
mov eax, edi
call fcn.6adc4ed0
mov dword [esi], eax
mov esi, 2
jmp 0x6adc5ba3
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 0x6adc5a67
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 0x6adc5a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x6adc5cb0
call dword [sym.imp.msvcrt.dll__errno]
mov esi, eax
mov eax, ebx
call fcn.6adc4ed0
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 0x6adc5be0