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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2e8], esi
mov dword [ebp - 0x30c], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9972
test byte [eax + 0x1c], 1
je 0x10c9972
cmp byte [eax + 0x19], 5
jb 0x10c9972
push 0x100f634
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2f0], edi
call fcn.010be9e0
lea ecx, [ebp - 0x8c]
call fcn.010be9e0
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x2f8], edi
shr eax, 1
and al, 1
push 0x250
mov byte [ebp - 0x2de], al
lea eax, [ebp - 0x2dc]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
and eax, 4
mov byte [esi], 0
mov dword [ebp - 0x314], eax
jne 0x10c99e2
cmp dword [ebx + 8], 0x64
jbe 0x10c99e2
mov edi, 0x80070057
jmp 0x10c9ef4
test dword [ebx], 0x400
mov byte [ebx + 0xc], 1
je 0x10c9a2c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9ef4
test byte [eax + 0x1c], 1
je 0x10c9ef4
cmp byte [eax + 0x19], 5
jb 0x10c9ef4
push dword [ebx + 4]
push 0x100f634
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x10c9ef4
mov ecx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x2f4]
push eax
call fcn.010c98b1
mov edi, eax
test edi, edi
jge 0x10c9a80
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9ef4
test byte [eax + 0x1c], 1
je 0x10c9ef4
cmp byte [eax + 0x19], 2
jb 0x10c9ef4
push edi
push 0x100f634
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10c9ef4
lea eax, [ebp - 0x8c]
push eax
push 0
push dword [ebx + 4]
lea ecx, [ebp - 0x3a0]
call fcn.010bec70
push eax
push 0
push dword [ebp - 0x2f4]
lea ecx, [ebp - 0x35c]
call fcn.010bec70
push eax
call fcn.010c7743
lea ecx, [ebp - 0x35c]
call fcn.010be803
lea ecx, [ebp - 0x3a0]
call fcn.010be803
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.010ca774
mov edi, eax
test edi, edi
jl 0x10c9ef4
mov eax, dword [ebp - 0x2e4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10c9aed
sub eax, edx
sar eax, 1
add eax, 0x106
lea esi, [eax + eax]
push esi
mov dword [ebp - 0x308], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
mov dword [ebp - 0x2ec], ebx
test ebx, ebx
jne 0x10c9b26
mov edi, 0x8007000e
jmp 0x10c9ee9
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x2e4]
push dword [ebp - 0x308]
push ebx
call fcn.01025872
mov edi, eax
test edi, edi
jl 0x10c9ee9
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10c9b53
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
mov word [ebx + eax*2], cx
lea esi, [ebx + eax*2 + 2]
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x2e4]
lea ecx, [ebp - 0x48]
call fcn.010be9f9
push 0x100793c
lea ecx, [ebp - 0x48]
call fcn.010bea52
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x304], eax
cmp eax, 0xffffffff
jne 0x10c9c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10c9bfb
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9be2
test byte [eax + 0x1c], 1
je 0x10c9be2
cmp byte [eax + 0x19], 2
jb 0x10c9be2
push esi
push dword [ebp - 0x40]
push 0x100f634
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test esi, esi
jg 0x10c9bed
mov edi, esi
jmp 0x10c9ee9
and esi, 0xffff
or esi, 0x80070000
jmp 0x10c9be6
xor edi, edi
jmp 0x10c9ee9
mov ecx, 0x1007938
lea eax, [ebp - 0x2b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10c9c33
test dx, dx
je 0x10c9c2f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10c9c33
add eax, 4
add ecx, 4
test dx, dx
jne 0x10c9c0d
xor eax, eax
jmp 0x10c9c38
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10c9e66
mov ecx, 0x1007930
lea eax, [ebp - 0x2b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10c9c71
test dx, dx
je 0x10c9c6d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10c9c71
add eax, 4
add ecx, 4
test dx, dx
jne 0x10c9c4b
xor eax, eax
jmp 0x10c9c76
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10c9e66
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x308]
push ebx
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10c9ece
test byte [ebp - 0x2dc], 0x10
je 0x10c9dc0
test dword [ebp - 0x2dc], 0x400
jne 0x10c9dc0
cmp dword [ebp - 0x314], 0
jne 0x10c9d16
mov eax, dword [ebp - 0x300]
cmp dword [eax + 8], 0x64
jne 0x10c9d16
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9e66
test byte [eax + 0x1c], 1
je 0x10c9e66
cmp byte [eax + 0x19], 3
jb 0x10c9e66
push 0x64
lea ecx, [ebp - 0x2b0]
push ecx
push 0x100f634
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10c9e66
test byte [ebp + 0xc], 8
jne 0x10c9d65
cmp dword [ebp - 0x2f8], 0x64
jb 0x10c9d65
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9d57
test byte [eax + 0x1c], 1
je 0x10c9d57
cmp byte [eax + 0x19], 4
jb 0x10c9d57
push dword [ebp - 0x2e4]
push 0x64
push 0x100f634
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010194be
mov eax, dword [ebp - 0x310]
mov byte [eax], 1
jmp 0x10c9e66
lea eax, [ebp - 0x2f0]
push eax
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 8]
inc eax
push eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2b0]
push eax
call fcn.010c97f3
mov edi, eax
test edi, edi
jl 0x10c9ece
push dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2fc]
call fcn.010c9741
mov edi, eax
test edi, edi
jl 0x10c9ece
and dword [ebp - 0x2f0], 0
inc dword [ebp - 0x2f8]
jmp 0x10c9e66
lea eax, [ebp - 0x2dd]
push eax
lea eax, [ebp - 0x2dc]
push eax
push ebx
mov byte [ebp - 0x2dd], 1
call fcn.010c9293
mov edi, eax
test edi, edi
jge 0x10c9e59
cmp dword [ebp - 0x30c], 0
mov bl, byte [ebp - 0x2dd]
mov eax, dword [ebp - 0x2e8]
mov byte [eax], bl
je 0x10c9e09
push dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x30c]
mov eax, dword [ecx]
push edi
call dword [eax]
cmp byte [ebp - 0x2de], 0
je 0x10c9f6d
test bl, bl
je 0x10c9f6d
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9e4f
test byte [eax + 0x1c], 1
je 0x10c9e4f
cmp byte [eax + 0x19], 4
jb 0x10c9e4f
push edi
push dword [ebp - 0x2ec]
push 0x100f634
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov ebx, dword [ebp - 0x2ec]
xor edi, edi
jmp 0x10c9e66
mov eax, dword [ebp - 0x318]
add dword [eax], 1
adc dword [eax + 4], 0
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c9c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x10c9ed7
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9ebc
test byte [eax + 0x1c], 1
je 0x10c9ebc
cmp byte [eax + 0x19], 2
jb 0x10c9ebc
push esi
push dword [ebp - 0x40]
push 0x100f634
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test esi, esi
jle 0x10c9ecc
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov eax, dword [ebp - 0x2e8]
mov byte [eax], 0
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2ec]
test ebx, ebx
je 0x10c9ef4
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x2f4]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x2e4]
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2f0]
test ecx, ecx
je 0x10c9f1d
push 1
call fcn.010c950e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9f47
test byte [eax + 0x1c], 1
je 0x10c9f47
cmp byte [eax + 0x19], 5
jb 0x10c9f47
push 0x100f634
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea ecx, [ebp - 0x8c]
call fcn.010be803
lea ecx, [ebp - 0x48]
call fcn.010be803
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x1c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c9ed7
test byte [eax + 0x1c], 1
je 0x10c9ed7
cmp byte [eax + 0x19], 2
jb 0x10c9ed7
push edi
push dword [ebp - 0x2ec]
push 0x100f634
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10c9ed7