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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x670], ecx
mov dword [ebp - 0x66c], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x1012942c
push esi
call eax
push 0x1f
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x1012943f
call eax
jmp 0x10129445
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
je 0x10129452
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1012946c
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
push 0x250
lea eax, [ebp - 0x664]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x20c]
mov esi, ebx
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101294c6
movzx eax, word [esi + ecx]
test ax, ax
je 0x101294c6
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x101294a6
jmp 0x101294ca
test edx, edx
jne 0x101294cd
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push 0x10204524
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003180
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101294fc
push esi
call edi
push 0x16
call fcn.10003680
add esp, 4
test eax, eax
je 0x1012951c
lea ecx, [ebp - 0x664]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x10129530
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test esi, esi
je 0x1012953d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
cmp ebx, 0xffffffff
je 0x1012968a
mov dword [ebp - 0x668], eax
test byte [ebp - 0x664], 0x10
jne 0x101295e9
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x66c]
lea eax, [ebp - 0x414]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x101295b0
movzx ecx, word [esi + eax]
test cx, cx
je 0x101295b0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10129590
jmp 0x101295b4
test edx, edx
jne 0x101295b7
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x670]
lea edx, [ebp - 0x414]
push dword [ebp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x1012963f
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101295fb
push esi
call edi
push 0x18
call fcn.10003680
add esp, 4
test eax, eax
je 0x10129615
lea ecx, [ebp - 0x664]
push ecx
push ebx
call eax
jmp 0x10129623
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test esi, esi
je 0x10129630
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10129649
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x10129551
mov dword [ebp - 0x668], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10129660
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call eax
push 0x19
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x10129673
call eax
jmp 0x10129679
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x10129684
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x668]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8