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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010bd58
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x10152034]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x10152034]
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 + 0x20]
mov ecx, eax
mov byte [esp + 0x320], 1
cmp dword [ecx + 0x14], 8
jb 0x10004103
mov ecx, dword [ecx]
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x1000410e
mov eax, dword [eax]
push ecx
push eax
lea eax, [esp + 0x94]
push 0x10118654
push eax
call fcn.10040660
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 0x10004143
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 0x10118710
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x2c], 0
push eax
call fcn.10007490
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 0x100041dd
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x10004378
mov edi, dword [esp + 0x10]
test byte [esp + 0xbc], 0x10
je 0x1000433f
cmp word [esp + 0xe8], 0x2e
je 0x1000433f
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10007490
push 0x10118728
mov edx, eax
mov byte [esp + 0x330], 5
lea ecx, [esp + 0x60]
call fcn.10007580
push 0x10118718
mov edx, eax
mov byte [esp + 0x334], 6
lea ecx, [esp + 0xb8]
call fcn.10007580
add esp, 0x14
cmp dword [esp + 0x64], 8
jb 0x1000425e
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 0x1000428d
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.10001d60
lea ecx, [esp + 0x14]
mov byte [esp + 0x320], 0xa
call fcn.10041500
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 0x1000430c
push dword [esp + 0x14]
call esi
add esp, 4
test bl, bl
je 0x10004321
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x6c]
call fcn.10006e40
mov byte [esp + 0x320], 4
cmp dword [esp + 0xb8], 8
jb 0x1000433f
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 0x100041e1
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 0x1000438b
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 0x100043ba
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.1010a06b
mov esp, ebp
pop ebp
ret 4