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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101815cc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x310
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x318], edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 4], eax
call fcn.10002de0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1003c3cf
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.parsing_all_files_in_directory:_ls
push 0x101a53f8
mov esi, dword [esi + 0x44]
mov ecx, esi
push eax
call dword [0x1018a4d4]
call esi
push 0x101a4ae8
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.10019410
add esp, 0x1c
push 1
push 0x101bb9d0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10001d30
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x60]
movq qword [ebp - 0x320], xmm0
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001bc0
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x48], ax
movq xmm0, qword [ebp - 0x320]
movq qword [ebp - 0x50], xmm0
call fcn.10001bc0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.10001bc0
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x310]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x31c], esi
cmp esi, 0xffffffff
jne 0x1003c4d3
push str.Failed_to_get_handle_n
push 0x101a55a8
call fcn.10002de0
push eax
call fcn.100037f0
add esp, 0xc
mov byte [ebp - 0x311], 0
jmp 0x1003c7bd
mov eax, dword [ebp - 0x318]
mov byte [ebp - 0x311], 1
mov dword [eax], 0
nop word [eax + eax]
mov ecx, 0x101bb564
lea eax, [ebp - 0x2e4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003c526
test dx, dx
je 0x1003c522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003c526
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003c500
xor eax, eax
jmp 0x1003c52b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003c760
mov eax, 0x101bb568
lea ecx, [ebp - 0x2e4]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1003c566
test dx, dx
je 0x1003c562
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1003c566
add ecx, 4
add eax, 4
test dx, dx
jne 0x1003c540
xor eax, eax
jmp 0x1003c56b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003c760
test byte [ebp - 0x310], 0x10
je 0x1003c760
xor eax, eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c5a0
sub ecx, edx
lea eax, [ebp - 0x2e4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10001c20
push 0x101a4ae8
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.10019410
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.10001d30
mov dword [ebp - 0x98], 0
xor ecx, ecx
mov dword [ebp - 0x94], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x98], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0xd
push str.RefCount.txt
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.10001d30
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xa8]
call fcn.10001bc0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 7
call fcn.10001bc0
push 7
xor eax, eax
mov dword [ebp - 0x80], 0
push str..aamref
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call fcn.10001c20
mov byte [ebp - 4], 8
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, ecx
sub edx, dword [ebp - 0x80]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, edx
jb 0x1003c859
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x48]
lea eax, [eax + edx*2]
push eax
call fcn.10001c20
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10004950
add esp, 8
test al, al
je 0x1003c739
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003c7e9
lea ecx, [ebp - 0x48]
call fcn.10001bc0
lea ecx, [ebp - 0x90]
call fcn.10001bc0
lea ecx, [ebp - 0x78]
call fcn.10001bc0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10001bc0
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003c4f0
mov edi, dword [ebp - 0x318]
cmp dword [edi], 0
jne 0x1003c7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1003c7b6
push eax
push str.Last_Error_Incurred:_d
push 0x101a53f8
push ecx
call fcn.10002de0
add esp, 4
push eax
call fcn.10003e20
add esp, 0x10
mov dword [edi], 0xffffffff
mov byte [ebp - 0x311], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x60]
call fcn.10001bc0
mov al, byte [ebp - 0x311]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10002de0
cmp dword [edi + 0x14], 8
jb 0x1003c7f6
mov edi, dword [edi]
mov esi, dword [eax]
lea ecx, [ebp - 0x2e4]
push edi
push ecx
push str.AAMRef_file_:_ls_exists_at_path_:_ls
mov esi, dword [esi + 0x54]
mov ecx, esi
push 0x101a53f8
push eax
call dword [0x1018a4d4]
call esi
mov edi, dword [ebp - 0x318]
lea ecx, [ebp - 0x48]
add esp, 0x14
mov dword [edi], 1
call fcn.10001bc0
lea ecx, [ebp - 0x90]
call fcn.10001bc0
lea ecx, [ebp - 0x78]
call fcn.10001bc0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10001bc0
mov esi, dword [ebp - 0x31c]
jmp 0x1003c77c
call fcn.10004290
int3