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

Disassembly:
push 0x278
mov eax, 0x431669
call fcn.00410162
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov edi, dword [ebp + 0xc]
push 0x434734
call fcn.00401d56
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040b557
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.0040315c
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov byte [ebp - 0x1e8], 1
mov dword [ebp - 0x1ec], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x40ce3e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x40cfb4
push 0xffffffffffffffff
jmp 0x40cfa0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401d56
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040b557
add esp, 0xc
cmp dword [ebp - 0x1e0], 0xffffffff
mov byte [ebp - 4], 9
je 0x40cea7
test byte [ebp - 0x1e0], 0x10
je 0x40cea7
push 0x433268
lea ecx, [ebp - 0x28]
call fcn.00402cbf
test al, al
jne 0x40ceba
push 0x434b40
lea ecx, [ebp - 0x28]
call fcn.00402cbf
test al, al
jne 0x40ceba
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 8]
jmp 0x40ceb2
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x40cf8f
lea ecx, [ebp - 0x40]
call fcn.0040315c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040315c
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ce3e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x40cf9f
push 0x35a
push 0x434b14
push 0x434798
lea ecx, [ebp - 0x1c]
call fcn.00401e55
push eax
push 0x4325e4
call edi
push eax
push dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x432608
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push ebx
call fcn.00401d22
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call fcn.0040200b
mov byte [ebp - 4], 0xb
push 0x434b44
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00401356
mov ecx, eax
call fcn.00401172
push eax
lea ecx, [ebp - 0x34]
call fcn.00407cab
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp - 0xa0]
push 0x441144
jmp 0x40d043
lea ecx, [ebp - 0x40]
call fcn.0040315c
lea ecx, [ebp - 0x28]
call fcn.0040315c
push esi
call fcn.0040ca5f
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0040315c
call fcn.00410111
ret
push 0x345
push 0x434b14
push 0x434798
lea ecx, [ebp - 0x34]
call fcn.00401e55
push eax
push 0x4325e4
call esi
push eax
push dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x432608
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push ebx
call fcn.00401d22
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.0040200b
mov byte [ebp - 4], 5
push 0x434b30
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00401356
mov ecx, eax
call fcn.00401172
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407cab
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x441144
push eax
call fcn.00413032
int3