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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10058
call fcn.01017710
mov eax, dword [0x101b1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1000c], edi
mov dword [ebp - 0x10028], esi
call fcn.01007ff3
and dword [ebp - 0x1001c], 0
cmp dword [ebp + 0x10], 2
jae 0x100c644
xor eax, eax
jmp 0x100cf94
push 0x101c1a0
push 0x103c420
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1002c], eax
cmp eax, 0xffffffff
jne 0x100c6e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
jne 0x100c6b6
mov eax, dword [0x105c4c0]
mov ecx, 0x1005644
test eax, eax
jne 0x100c6af
mov ecx, 0x1004d62
mov eax, 0x1005640
push ecx
push eax
push 0x10000
push 0x101c400
push edi
call fcn.01009b66
push eax
push 0x10054c8
push 0
call fcn.01012331
add esp, 0x14
jmp 0x100c63d
mov eax, 0x10054bc
jmp 0x100c68b
call esi
cmp eax, 2
je 0x100c63d
push 0x10000
push 0x101c400
push edi
call fcn.01009b66
push eax
push 0x100548c
push 0xffffffffffffffff
call fcn.01012331
add esp, 0xc
jmp 0x100c63d
push ebx
mov byte [esi], 0
mov edi, 0x10000
mov ebx, 0x101c400
push 0x101c1cc
call fcn.01009ab6
test eax, eax
jne 0x100ce79
push edi
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x1000c]
call fcn.010085fd
push 0x101c1cc
push edi
lea eax, [ebp - 0x10004]
push eax
call fcn.0100ab6e
lea eax, [ebp - 0x10050]
push eax
push 0
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x100c75c
lea eax, [ebp - 0x10004]
push eax
push 0x1005458
push 0xffffffffffffffff
call fcn.01012331
add esp, 0xc
jmp 0x100ce79
mov eax, dword [ebp - 0x10050]
test al, 2
je 0x100c773
cmp dword [0x105c4c4], 0
je 0x100ce79
shr eax, 4
and eax, 1
push eax
mov dword [ebp - 0x10010], eax
call fcn.01008161
test byte [ebp - 0x10050], 2
mov esi, eax
je 0x100c797
or dword [esi + 0x14], 0x80
mov eax, dword [ebp - 0x1000c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100c7e2
mov ecx, dword [ebp - 0x1003c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10038]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x10044]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10040]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x1004c]
mov eax, dword [esi + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x10048]
mov dword [eax + 0x14], ecx
cmp byte [0x101c2d0], 0
je 0x100c7f2
or dword [esi + 0x14], 0x8000
cmp dword [0x105c4e8], 0
je 0x100c804
cmp dword [0x105c4bc], 0
je 0x100c810
push 0x101c1cc
call dword [sym.imp.msvcrt.dll__strupr]
pop ecx
cmp dword [0x105c4ec], 0
jne 0x100c84c
xor eax, eax
cmp byte [0x101c2d0], al
push 0x101c1cc
setne al
mov dword [ebp - 0x10014], eax
call fcn.01009793
cmp dword [ebp - 0x10014], 0
je 0x100c993
test eax, eax
je 0x100c84c
mov byte [0x101c2d0], 0
push dword [ebp - 0x10010]
mov eax, 0x101c1cc
push eax
mov dword [ebp - 0x10018], eax
call fcn.01009a6c
cmp byte [0x101c2d0], 0
mov dword [ebp - 0x10008], eax
je 0x100c958
cmp eax, 0xdd
ja 0x100c8c0
cmp dword [0x105c4ec], 0
jne 0x100c894
push 0x101c1cc
call fcn.010098a5
test eax, eax
je 0x100c8c0
cmp dword [0x105c4bc], 0
je 0x100c958
cmp dword [ebp - 0x10010], 0
push 0x101c1cc
je 0x100c9d5
call fcn.01009a37
test eax, eax
jne 0x100c958
cmp dword [0x105c4e8], 0
je 0x100c8d2
cmp dword [0x105c4bc], 0
je 0x100c8de
push 0x101c2d0
call dword [sym.imp.msvcrt.dll__strupr]
pop ecx
push dword [ebp - 0x10010]
mov eax, 0x101c2d0
push eax
mov dword [ebp - 0x10018], eax
call fcn.01009a6c
cmp dword [ebp - 0x10010], 0
mov dword [ebp - 0x10008], eax
mov dword [ebp - 0x10014], 0x100544c
jne 0x100c918
mov dword [ebp - 0x10014], 0x1005444
push 0x101c1cc
push edi
push ebx
push dword [ebp - 0x1000c]
call fcn.01009b1a
push eax
push 0x101c2d0
push dword [ebp - 0x10014]
push 0x1004d62
push 0x1005408
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x1c
cmp dword [ebp - 0x10008], 0xdd
jbe 0x100c9df
cmp dword [ebp - 0x10010], 0
mov esi, 0x100499c
jne 0x100c977
mov esi, 0x1004994
push dword [ebp - 0x10018]
push edi
push ebx
push dword [ebp - 0x1000c]
call fcn.01009b1a
push eax
push esi
push 0x10053d8
jmp 0x100c9c6
test eax, eax
jne 0x100c84c
mov esi, 0x100544c
cmp dword [ebp - 0x10010], eax
jne 0x100c9ad
mov esi, 0x1005444
push 0x101c1cc
push edi
push ebx
push dword [ebp - 0x1000c]
call fcn.01009b66
push eax
push esi
push 0x1005390
push 0
call fcn.01012331
add esp, 0x14
jmp 0x100ce79
call fcn.01009a10
jmp 0x100c8b8
push 0x3b
push dword [ebp - 0x10018]
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x100ca22
cmp dword [ebp - 0x10010], 0
mov esi, 0x100499c
jne 0x100ca06
mov esi, 0x1004994
push dword [ebp - 0x10018]
push edi
push ebx
push dword [ebp - 0x1000c]
call fcn.01009b1a
push eax
push esi
push 0x1005338
jmp 0x100c9c6
xor edx, edx
cmp dword [0x105c4ec], edx
je 0x100ccd6
cmp dword [0x105c4bc], edx
jne 0x100ccd6
cmp dword [0x105c4b8], edx
jne 0x100ccd6
push dword [ebp - 0x10018]
cmp dword [ebp - 0x10010], edx
je 0x100ccbf
call fcn.01009a37
test eax, eax
je 0x100ccca
mov eax, dword [ebp - 0x10008]
inc eax
mov dword [ebp - 0x10014], eax
mov ax, word [ebp - 0x10008]
push dword [ebp - 0x10014]
mov word [esi + 0x18], ax
call fcn.0101256d
push dword [ebp - 0x10018]
mov dword [esi], eax
push dword [ebp - 0x10014]
push eax
call fcn.010179a9
add esp, 0xc
push esi
push dword [ebp - 0x1001c]
call fcn.010081c3
cmp dword [0x105c500], 0
mov dword [ebp - 0x1001c], eax
je 0x100cafc
mov eax, dword [ebp - 0x10008]
mov ecx, dword [ebp + 0x14]
add eax, ecx
add eax, dword [ebp + 0x18]
cmp eax, 0xff
jbe 0x100cafc
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x10052f0
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x10010], eax
je 0x100ccfa
cmp dword [0x105c500], eax
je 0x100cb43
cmp dword [ebp + 0x14], 8
jb 0x100cb43
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x10052a8
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [0x105c4f8], 0
je 0x100cb82
push dword [esi]
call fcn.010098a5
test eax, eax
jne 0x100cb82
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x1005274
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [0x105c4f4], 0
je 0x100cbc1
push dword [esi]
call fcn.01009941
test eax, eax
jne 0x100cbc1
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x1005244
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [0x105c484], 0
je 0x100cbfa
cmp dword [0x105c440], 0
jne 0x100cbfa
mov eax, dword [ebp - 0x1000c]
cmp eax, dword [0x105d540]
jne 0x100cbfa
push 0x100523c
push dword [esi]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100cbfa
mov dword [0x105c440], esi
cmp dword [0x105c448], 0
je 0x100ce79
cmp dword [0x105c43c], 0
jne 0x100cc36
mov eax, dword [0x105d540]
cmp dword [ebp - 0x1000c], eax
jne 0x100cc36
push 0x1005230
push dword [esi]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100cc36
mov dword [0x105c43c], esi
cmp dword [0x105c448], 0
je 0x100ce79
cmp dword [0x105c438], 0
jne 0x100cc72
mov eax, dword [0x105d540]
cmp dword [ebp - 0x1000c], eax
jne 0x100cc72
push 0x1005224
push dword [esi]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100cc72
mov dword [0x105c438], esi
cmp dword [0x105c448], 0
je 0x100ce79
cmp dword [0x105c434], 0
jne 0x100ce79
mov eax, dword [0x105d540]
cmp dword [ebp - 0x1000c], eax
jne 0x100ce79
push 0x1005218
push dword [esi]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100ce79
mov dword [0x105c434], esi
jmp 0x100ce79
call fcn.01009a10
test eax, eax
jne 0x100cce2
jmp 0x100cccc
xor edx, edx
mov dword [0x105c4b8], 1
cmp dword [ebp - 0x10010], edx
jne 0x100ca67
cmp dword [0x105c4d4], edx
jne 0x100ca67
mov eax, dword [ebp - 0x10008]
dec eax
jmp 0x100ca6e
cmp dword [0x105c4f8], eax
je 0x100cd38
push dword [esi]
call fcn.010098a5
test eax, eax
jne 0x100cd38
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x10051ec
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [0x105c4f4], 0
je 0x100cd77
push dword [esi]
call fcn.01009995
test eax, eax
jne 0x100cd77
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x10051c0
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 0x10034]
mov dword [ebp - 0x10054], ecx
mov ecx, dword [ebp - 0x10030]
xor eax, eax
or eax, ecx
mov ecx, dword [ebp - 0x10054]
xor edx, edx
or ecx, edx
mov dword [ebp - 0x10024], eax
mov dword [ebp - 0x10020], ecx
cmp dword [0x105c504], edx
je 0x100cdda
or eax, ecx
jne 0x100cdda
push edi
push ebx
push esi
call fcn.01009b1a
push eax
push 0x1004d62
push 0x1005194
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 0x10024]
mov eax, dword [ebp - 0x10020]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov eax, dword [0x101b08c]
xor edx, edx
mov ebx, eax
add ebx, ecx
mov ecx, edx
adc ecx, dword [ebp - 0x10020]
add ebx, 0xffffffff
adc ecx, 0xffffffff
add eax, 0xffffffff
adc edx, 0xffffffff
not eax
and ebx, eax
xor eax, eax
push eax
push dword [0x101b08c]
not edx
and ecx, edx
push ecx
push ebx
call fcn.01017680
add dword [0x101b564], eax
mov eax, dword [ebp - 0x10024]
add dword [0x105c698], eax
mov eax, dword [ebp - 0x10020]
adc dword [0x105c69c], eax
call fcn.01008039
cmp dword [0x105c4d4], 0
jne 0x100ce74
push 0x2e
push dword [esi]
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x100ce74
push 0x100463c
push dword [ebp - 0x10014]
push dword [esi]
call fcn.01017930
add esp, 0xc
mov ebx, 0x101c400
push 0x101c1a0
push dword [ebp - 0x1002c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100c6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100ceba
push edi
push ebx
push dword [ebp - 0x1000c]
call fcn.01009b66
push eax
push 0x100548c
push 0xffffffffffffffff
call fcn.01012331
add esp, 0xc
push dword [ebp - 0x1002c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1001c]
jmp 0x100cf7f
mov eax, dword [ebp - 0x10008]
test dword [eax + 0x14], 0x80000000
je 0x100cf76
mov eax, dword [eax]
mov esi, eax
lea ecx, [esi + 1]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x100ceeb
sub esi, ecx
lea ecx, [esi + 2]
cmp dword [ebp + 0x10], ecx
jae 0x100cf31
push dword [ebp + 0x10]
push edi
push ebx
push dword [ebp - 0x10008]
call fcn.01009b1a
push eax
push 0x1004d62
push 0x100515c
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x14
jmp 0x100cf76
push esi
push eax
push dword [ebp - 0x10028]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10028]
add esp, 0xc
add ecx, esi
push ecx
mov ecx, dword [ebp + 0x14]
inc ecx
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, esi
mov byte [eax + esi], 0x5c
lea eax, [eax + esi + 1]
mov esi, dword [ebp - 0x10008]
dec ecx
push ecx
push eax
push esi
mov byte [eax], 0
call fcn.0100c5fe
mov ecx, dword [esi + 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10008]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10008], eax
test eax, eax
jne 0x100ced1
mov eax, dword [ebp - 0x1001c]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010176f9
leave
ret 0x14