Function at 0x10008a80
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 0x1018d1cc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x318
mov eax, dword [0x101f62b4]
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 - 0x2f8], edx
mov edi, ecx
mov dword [ebp - 0x2f4], edi
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov dword [ebp - 4], eax
call fcn.1004cb70
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10008af5
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.parsing_all_files_in_directory:_ls
push 0x101aee58
mov esi, dword [esi + 0x44]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
push 0x101ace08
mov edx, edi
lea ecx, [ebp - 0x328]
call fcn.1000b090
add esp, 0x14
push 1
push 0x101b02a8
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10001e70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x78]
movq qword [ebp - 0x2f0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001d00
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [ebp - 0x2f0]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x314]
movq qword [ebp - 0x68], xmm0
cmp edx, 8
jb 0x10008bbf
mov ecx, dword [ebp - 0x328]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008bb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x2e0]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2ec], eax
cmp eax, 0xffffffff
jne 0x10008c07
push str.Failed_to_get_handle_n
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
mov byte [ebp - 0x2e1], 0
jmp 0x10009215
mov eax, dword [ebp - 0x2f8]
mov esi, dword [ebp - 0x2ec]
mov byte [ebp - 0x2e1], 1
mov dword [eax], 0
mov ecx, 0x101afe34
lea eax, [ebp - 0x2b4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008c56
test dx, dx
je 0x10008c52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008c56
add eax, 4
add ecx, 4
test dx, dx
jne 0x10008c30
xor eax, eax
jmp 0x10008c5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000905e
mov eax, 0x101afe38
lea ecx, [ebp - 0x2b4]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10008c96
test dx, dx
je 0x10008c92
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10008c96
add ecx, 4
add eax, 4
test dx, dx
jne 0x10008c70
xor eax, eax
jmp 0x10008c9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000905e
test byte [ebp - 0x2e0], 0x10
je 0x1000905e
xor eax, eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008cd0
sub ecx, edx
lea eax, [ebp - 0x2b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10001d60
push 0x101ace08
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x328]
call fcn.1000b090
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.10001e70
mov dword [ebp - 0x300], 0
xor ecx, ecx
mov dword [ebp - 0x2fc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x310], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x300], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0xd
push str.RefCount.txt
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 4
call fcn.10001e70
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2fc]
cmp edx, 8
jb 0x10008dec
mov ecx, dword [ebp - 0x310]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008de2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 7
mov word [ebp - 0x310], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x314]
cmp edx, 8
jb 0x10008e4d
mov ecx, dword [ebp - 0x328]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008e43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x318], 0
push 7
push str..aamref
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x314], 7
mov word [ebp - 0x328], ax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.10001d60
mov byte [ebp - 4], 8
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov edx, ecx
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp ecx, edx
jb 0x10009279
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x90]
lea eax, [eax + edx*2]
push eax
call fcn.10001d60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea esi, [ebp - 0x90]
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x90]
cmovae ecx, edi
cmp dword [ebp - 0x7c], 8
mov edx, dword [ebp - 0x80]
cmovae esi, eax
mov dword [ebp - 0x2e8], eax
cmp edx, dword [ebp - 0x50]
jne 0x10008f41
test edx, edx
je 0x10008f21
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x10008f3b
add ecx, 2
sub edx, 1
jne 0x10008f10
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009079
mov eax, dword [ebp - 0x2e8]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x10008f88
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x10008f7e
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x2e8], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000926f
mov eax, dword [ebp - 0x2e8]
push ecx
push eax
call fcn.1015cbd5
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x10008fc3
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10008fb9
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push ecx
push edi
call fcn.1015cbd5
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10009001
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008ff7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x10009052
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009048
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov esi, dword [ebp - 0x2ec]
mov edi, dword [ebp - 0x2f4]
lea eax, [ebp - 0x2e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10008c20
jmp 0x100091ce
call fcn.1004cb70
mov ecx, dword [ebp - 0x2f4]
cmp dword [ecx + 0x14], 8
jb 0x1000908c
mov ecx, dword [ecx]
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x2b4]
push ecx
mov esi, dword [esi + 0x54]
mov ecx, esi
push str.AAMRef_file_:_ls_exists_at_path_:_ls
push 0x101aee58
push eax
call dword [0x1019a4f8]
call esi
mov eax, dword [ebp - 0x2f8]
add esp, 0x14
mov byte [ebp - 4], 8
mov dword [eax], 1
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x100090fe
mov ecx, dword [ebp - 0x2e8]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100090f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x10009139
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000912f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push ecx
push edi
call fcn.1015cbd5
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10009177
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000916d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x100091c8
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100091be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000926f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov esi, dword [ebp - 0x2ec]
mov edi, dword [ebp - 0x2f8]
cmp dword [edi], 0
jne 0x1000920e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000920e
push eax
push str.Last_Error_Incurred:_d
push 0x101aee58
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004dbb0
add esp, 0x10
mov dword [edi], 0xffffffff
mov byte [ebp - 0x2e1], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x1000924b
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009241
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009274
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, byte [ebp - 0x2e1]
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.1015c875
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.101686f5
call fcn.101686f5
call fcn.1000b080
int3