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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c501
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x100c82c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x478], 0
call fcn.10056110
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1001c58b
call fcn.1000b620
mov ecx, eax
test ecx, ecx
je 0x1001c5b9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x470], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x1001c3d8
push 0x104
lea ecx, [ebp - 0x470]
call fcn.1000bf20
mov esi, dword [ebp - 0x470]
push 0x100a4bb4
lea eax, [ebp - 0x218]
push eax
push esi
call edi
push dword [esi - 8]
push esi
call fcn.1005d5d1
add esp, 8
test eax, eax
js 0x1001c5af
cmp eax, dword [esi - 8]
jg 0x1001c5af
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x46c], eax
mov ecx, eax
cmp ecx, ebx
je 0x1001c56f
nop
test byte [ebp - 0x468], 0x10
je 0x1001c52a
cmp word [ebp - 0x43c], 0x2e
jne 0x1001c46b
mov ax, word [ebp - 0x43a]
test ax, ax
je 0x1001c52a
cmp ax, 0x2e
jne 0x1001c46b
cmp word [ebp - 0x438], 0
je 0x1001c52a
call fcn.1000b620
test eax, eax
je 0x1001c5b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x474]
call fcn.1000ac10
test al, al
jne 0x1001c4d2
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001c4b0
sub eax, edx
lea ecx, [ebp - 0x474]
sar eax, 1
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.1000c450
mov edi, dword [ebp - 0x474]
lea eax, [ebp - 0x218]
push edi
push eax
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 2
push str._s_smanifest.json
push eax
call fcn.1001a0d0
mov esi, dword [ebp - 0x470]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
test eax, eax
mov eax, ebx
jne 0x1001c547
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001c524
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x46c]
lea eax, [ebp - 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1001c563
mov ecx, dword [ebp - 0x46c]
jmp 0x1001c430
mov dword [ebp - 0x478], 1
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001c563
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001c58b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045897
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.1000abf0
push 0x80004005
call fcn.1000abf0
int3