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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096aa1
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x100c6394]
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.100569b0
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 0x100185fb
call fcn.10006af0
mov ecx, eax
test ecx, ecx
je 0x10018629
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 0x10018448
push 0x104
lea ecx, [ebp - 0x470]
call fcn.10007ba0
mov esi, dword [ebp - 0x470]
push 0x1009f244
lea eax, [ebp - 0x218]
push eax
push esi
call edi
push dword [esi - 8]
push esi
call fcn.1005d668
add esp, 8
test eax, eax
js 0x1001861f
cmp eax, dword [esi - 8]
jg 0x1001861f
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 0x100185df
nop
test byte [ebp - 0x468], 0x10
je 0x1001859a
cmp word [ebp - 0x43c], 0x2e
jne 0x100184db
mov ax, word [ebp - 0x43a]
test ax, ax
je 0x1001859a
cmp ax, 0x2e
jne 0x100184db
cmp word [ebp - 0x438], 0
je 0x1001859a
call fcn.10006af0
test eax, eax
je 0x10018629
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.10005ea0
test al, al
jne 0x10018542
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018520
sub eax, edx
lea ecx, [ebp - 0x474]
sar eax, 1
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10008270
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.10015f80
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 0x100185b7
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10018594
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 0x100185d3
mov ecx, dword [ebp - 0x46c]
jmp 0x100184a0
mov dword [ebp - 0x478], 1
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100185d3
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 0x100185fb
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.1004d00a
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.10005e80
push 0x80004005
call fcn.10005e80
int3