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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20068
call fcn.00417d40
mov eax, dword [0x418074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x2005c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20064], esi
mov dword [ebp - 0x20048], ebx
mov dword [ebp - 0x20060], edi
mov dword [ebp - 0x20058], eax
mov dword [ebp - 0x20054], 0x2000000
call fcn.004080c0
and dword [ebp - 0x20050], 0
cmp edi, 4
jb 0x4110a9
push 0x2a
pop eax
mov word [esi], ax
xor eax, eax
mov word [esi + 2], ax
cmp dword [0x418534], eax
jne 0x411061
mov edi, 0x2200000
mov dword [ebp - 0x20054], edi
jmp 0x411066
mov edi, 0x2000000
push 0x459fc0
push 0x419fa0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20044], eax
cmp eax, 0xffffffff
jne 0x4110bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4110a9
push ecx
mov edx, 0x439fc0
mov ecx, ebx
call fcn.0040e75a
push eax
push 0x406684
push 0xffffffffffffffff
call fcn.004126ae
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417690
leave
ret 0xc
xor eax, eax
mov word [esi], ax
mov esi, dword [ebp - 0x20044]
mov eax, dword [0x459fec]
mov ecx, dword [0x459ff0]
cmp eax, 0x2e
je 0x4114a0
movzx ecx, cx
cmp eax, 0x2e002e
jne 0x4110ed
test ecx, ecx
je 0x4114a0
push ecx
lea edx, [ebp - 0x2000c]
mov ecx, ebx
call fcn.0040a42f
push 0x459fec
mov edx, 0x20000
lea ecx, [ebp - 0x2000c]
call fcn.00407f9b
push 0
push edi
push 3
push 0
push 3
push 0x80
lea eax, [ebp - 0x2000c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41114c
lea eax, [ebp - 0x2000c]
push eax
push 0x4066b4
push esi
call fcn.004126ae
add esp, 0xc
jmp 0x41149a
lea eax, [ebp - 0x20040]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x411180
lea eax, [ebp - 0x2000c]
push eax
push 0x4066b4
push 0xffffffffffffffff
call fcn.004126ae
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41149a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20040]
test bl, 2
je 0x41119f
cmp dword [0x419eec], 0
je 0x411494
shr ebx, 4
and ebx, 1
mov ecx, ebx
call fcn.00408dc3
test byte [ebp - 0x20040], 2
mov edi, eax
je 0x4111be
or dword [edi + 0x14], 0x80
cmp word [0x45a1f4], 0
je 0x4111cf
or dword [edi + 0x14], 0x8000
mov ecx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x20048]
mov dword [edi + 0x1c], eax
test ecx, ecx
je 0x41121a
mov eax, dword [ebp - 0x2002c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20028]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x20034]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20030]
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x2003c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x20038]
mov dword [ecx + 0x14], eax
push 0x459fec
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [0x419f50], 0
mov esi, eax
mov dword [ebp - 0x2004c], esi
jne 0x4112af
cmp esi, 0x6e
jbe 0x411272
mov esi, 0x406388
test ebx, ebx
jne 0x411249
mov esi, 0x406394
mov ebx, dword [ebp - 0x20048]
push 0x459fec
push ecx
mov ecx, ebx
call fcn.0040e6e5
push eax
push esi
push 0x4066e8
push 0
call fcn.004126ae
add esp, 0x14
jmp 0x41149a
push 0x3b
push 0x459fec
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x4112af
mov esi, 0x406388
test ebx, ebx
jne 0x411293
mov esi, 0x406394
mov ebx, dword [ebp - 0x20048]
push 0x459fec
push ecx
mov ecx, ebx
call fcn.0040e6e5
push eax
push esi
push 0x406720
jmp 0x411263
mov word [edi + 0x1a], si
lea esi, [esi*2 + 2]
mov ecx, esi
call fcn.004128dd
push 0x459fec
mov edx, esi
mov dword [edi + 4], eax
mov ecx, eax
call fcn.00407ef0
mov ecx, dword [ebp - 0x20050]
mov edx, edi
call fcn.0040ef4c
cmp dword [0x419f50], 0
mov dword [ebp - 0x20050], eax
jne 0x4113e4
mov eax, dword [0x419ebc]
test eax, eax
je 0x411393
cmp dword [ebp - 0x2004c], 0x40
jbe 0x411347
mov esi, 0x406388
test ebx, ebx
jne 0x411316
mov esi, 0x406394
push ecx
mov ecx, edi
call fcn.0040e6e5
push eax
push esi
push 0x401120
push 0x406780
call dword [sym.imp.msvcrt.dll_printf]
push 1
call fcn.00417c69
add esp, 0x14
push eax
call dword [sym.imp.msvcrt.dll_fflush]
mov eax, dword [0x419ebc]
pop ecx
test eax, eax
je 0x411393
mov ecx, 0x459fec
call fcn.00410f53
test eax, eax
jne 0x411393
mov esi, 0x406388
test ebx, ebx
jne 0x411367
mov esi, 0x406394
push ecx
mov ecx, edi
call fcn.0040e6e5
push eax
push esi
push 0x401120
push 0x4067c8
call dword [sym.imp.msvcrt.dll_printf]
push 1
call fcn.00417c69
add esp, 0x14
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
cmp dword [0x419eb0], 0
je 0x4113e4
mov eax, dword [ebp - 0x2004c]
mov ecx, dword [ebp - 0x20058]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0x2005c]
cmp eax, 0xf0
jbe 0x4113e4
push ecx
mov ecx, edi
call fcn.0040e6e5
push eax
push 0x401120
push 0x406818
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push 1
call fcn.00417c69
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
test ebx, ebx
jne 0x411552
or ebx, dword [ebp - 0x2001c]
cmp dword [0x419eac], 0
mov ecx, dword [ebp - 0x20020]
mov dword [ebp - 0x2004c], ecx
je 0x41143f
mov eax, ebx
or eax, ecx
jne 0x41143f
push ecx
mov ecx, edi
call fcn.0040e6e5
push eax
push 0x401120
push 0x40685c
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push 1
call fcn.00417c69
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
mov ecx, dword [ebp - 0x2004c]
mov esi, dword [0x41812c]
mov dword [edi + 0xc], ecx
push 0
mov dword [edi + 8], ebx
mov edi, esi
pop edx
add edi, ebx
push 0
adc edx, ecx
add edi, 0xffffffff
pop eax
adc edx, 0xffffffff
mov ecx, esi
add ecx, 0xffffffff
push 0
adc eax, 0xffffffff
not ecx
not eax
and edi, ecx
push esi
and edx, eax
push edx
push edi
call fcn.00417cd0
add dword [0x418568], eax
add dword [0x419d18], ebx
mov eax, dword [ebp - 0x2004c]
adc dword [0x419d1c], eax
call fcn.0040810e
mov ebx, dword [ebp - 0x20048]
mov esi, dword [ebp - 0x20044]
push 0x459fc0
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x20054]
test eax, eax
jne 0x4110c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4114e2
push ecx
mov edx, 0x439fc0
mov ecx, ebx
call fcn.0040e75a
push eax
push 0x406684
push 0xffffffffffffffff
call fcn.004126ae
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x20050]
mov esi, edi
test edi, edi
je 0x41166f
mov ebx, dword [ebp - 0x20064]
cmp dword [esi + 0x14], 0
jge 0x41165e
movzx eax, word [esi + 0x1a]
mov ecx, dword [ebp - 0x20060]
lea edi, [eax + eax]
lea eax, [edi + 4]
cmp ecx, eax
jae 0x411617
push ecx
push ecx
mov ecx, esi
call fcn.0040e6e5
push eax
push 0x401120
push 0x4068b0
call dword [sym.imp.msvcrt.dll_printf]
push 1
call fcn.00417c69
add esp, 0x14
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
jmp 0x41165e
cmp dword [0x419f68], 0
mov ebx, dword [ebp - 0x20048]
je 0x41149a
cmp dword [0x419f74], 0
jne 0x411590
cmp ebx, dword [0x418e80]
jne 0x411590
push 0x402264
push dword [edi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411590
mov dword [0x419f74], edi
cmp dword [0x419f68], 0
je 0x41149a
cmp dword [0x419f78], 0
jne 0x4115c8
cmp ebx, dword [0x418e80]
jne 0x4115c8
push 0x406888
push dword [edi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4115c8
mov dword [0x419f78], edi
cmp dword [0x419f68], 0
je 0x41149a
cmp dword [0x419f7c], 0
jne 0x41149a
cmp ebx, dword [0x418e80]
jne 0x41149a
push 0x40689c
push dword [edi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, dword [ebp - 0x20044]
pop ecx
pop ecx
test eax, eax
jne 0x4114a0
mov dword [0x419f7c], edi
jmp 0x4114a0
push edi
push dword [esi + 4]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea edx, [ebx + 2]
add edx, edi
mov ecx, esi
push 0x5c
pop eax
mov word [edi + ebx], ax
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x20058]
add eax, edi
push eax
mov eax, dword [ebp - 0x2005c]
inc eax
push eax
mov eax, dword [ebp - 0x20060]
sub eax, edi
sub eax, 2
push eax
call fcn.00410fde
mov ecx, dword [esi + 0x34]
mov dword [ecx], eax
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4114ff
mov edi, dword [ebp - 0x20050]
mov eax, edi
jmp 0x4110ab