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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100de408
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x10115034]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x10115034]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x320], 0
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
mov byte [esp + 0x320], 1
cmp dword [ecx + 0x14], 8
jb 0x100025c3
mov ecx, dword [ecx]
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x100025ce
mov eax, dword [eax]
push ecx
push eax
lea eax, [esp + 0x94]
push 0x100e822c
push eax
call fcn.1002e5f0
add esp, 0x10
mov byte [esp + 0x320], 3
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10002603
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
lea eax, [esp + 0x8c]
push 0x100e82e8
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x2c], 0
push eax
call fcn.10005c80
push 0x24c
lea eax, [esp + 0xd0]
mov byte [esp + 0x330], 4
push 0
push eax
mov dword [esp + 0xd4], 0
call sub.MSVCR120.dll_memset
add esp, 0x18
lea ecx, [esp + 0xbc]
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1000269d
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x10002838
mov edi, dword [esp + 0x10]
test byte [esp + 0xbc], 0x10
je 0x100027ff
cmp word [esp + 0xe8], 0x2e
je 0x100027ff
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10005c80
push 0x100e8300
mov edx, eax
mov byte [esp + 0x330], 5
lea ecx, [esp + 0x60]
call fcn.10005d70
push 0x100e82f0
mov edx, eax
mov byte [esp + 0x334], 6
lea ecx, [esp + 0xb8]
call fcn.10005d70
add esp, 0x14
cmp dword [esp + 0x64], 8
jb 0x1000271e
push dword [esp + 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov byte [esp + 0x320], 9
cmp dword [esp + 0x48], 8
jb 0x1000274d
push dword [esp + 0x34]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x3c], ax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 7
call fcn.10001a60
lea ecx, [esp + 0x14]
mov byte [esp + 0x320], 0xa
call fcn.1002f390
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [esp + 0x320], 9
setne bl
cmp dword [esp + 0x28], 8
jb 0x100027cc
push dword [esp + 0x14]
call esi
add esp, 4
test bl, bl
je 0x100027e1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x6c]
call fcn.10005640
mov byte [esp + 0x320], 4
cmp dword [esp + 0xb8], 8
jb 0x100027ff
push dword [esp + 0xa4]
call esi
add esp, 4
lea eax, [esp + 0xbc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100026a1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x70]
mov dword [edi + 8], eax
cmp dword [esp + 0x88], 8
jb 0x1000284b
push dword [esp + 0x74]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
cmp dword [esp + 0xa0], 8
mov word [esp + 0x74], ax
mov dword [esp + 0x84], eax
jb 0x1000287a
push dword [esp + 0x8c]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 4