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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cf85
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x10047810]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x280], edi
cmp ebx, 0xffffffff
jne 0x10018e05
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10018d26
mov eax, dword [esi]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x27c], ebx
cmp ebx, 0xffffffff
jne 0x10018e2e
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.1001b280
add esp, 8
test al, al
je 0x10018d96
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x10018d80
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x10018dd7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018dcd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019006
push ecx
push edx
call fcn.100308ca
add esp, 8
cmp ebx, 0xffffffff
jne 0x10018e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10018dfb
cmp eax, 3
je 0x10018dfb
cmp eax, 0x12
je 0x10018dfb
mov al, 1
mov byte [edi + 0x5c], al
jmp 0x10018fe1
xor al, al
mov byte [edi + 0x5c], al
jmp 0x10018fe1
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10018e2e
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x5c], al
jmp 0x10018fe1
push esi
mov ecx, edi
call fcn.1000ecf0
lea esi, [ebp - 0x24c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea ecx, [esi + 2]
mov dword [ebp - 0x14], 0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10018e54
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x1001900b
mov dword [ebp - 0x14], 7
cmp esi, 8
jae 0x10018e9d
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x24c]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100321a0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x10018ef1
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x10018eb1
mov ebx, SysReAllocString
jmp 0x10018ebb
cmp ebx, 0xa
jae 0x10018ebb
mov ebx, 0xa
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007610
mov edi, eax
mov dword [ebp - 0x18], esi
add esi, esi
mov dword [ebp - 0x28], edi
push esi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x14], ebx
push eax
push edi
call fcn.100321a0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x280]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.1001cb30
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x10018f46
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018f3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019010
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp - 0x25c]
xor eax, eax
mov word [ebp - 0x28], ax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.100234b0
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.100234b0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.100234b0
mov ebx, dword [ebp - 0x27c]
mov dword [edi + 0x58], 0
mov eax, ebx
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.100308d8
mov esp, ebp
pop ebp
ret
call fcn.1003442e
call fcn.10003930
call fcn.1003442e
int3