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

Disassembly:
push 0x278
mov eax, 0x430ae8
call fcn.004107aa
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov edi, dword [ebp + 0xc]
push 0x434734
call fcn.00401ca2
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040b751
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.004030eb
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 0x40d41b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x40d591
push 0xffffffffffffffff
jmp 0x40d57d
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401ca2
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040b751
add esp, 0xc
cmp dword [ebp - 0x1e0], 0xffffffff
mov byte [ebp - 4], 9
je 0x40d484
test byte [ebp - 0x1e0], 0x10
je 0x40d484
push 0x433264
lea ecx, [ebp - 0x28]
call fcn.00402c6d
test al, al
jne 0x40d497
push 0x434b40
lea ecx, [ebp - 0x28]
call fcn.00402c6d
test al, al
jne 0x40d497
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 8]
jmp 0x40d48f
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x40d56c
lea ecx, [ebp - 0x40]
call fcn.004030eb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004030eb
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d41b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x40d57c
push 0x35a
push 0x434b14
push 0x434798
lea ecx, [ebp - 0x1c]
call fcn.00401d7d
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.00401c86
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call fcn.00401f3d
mov byte [ebp - 4], 0xb
push 0x434b44
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00401396
mov ecx, eax
call fcn.004011b2
push eax
lea ecx, [ebp - 0x34]
call fcn.00407da2
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp - 0xa0]
push 0x441054
jmp 0x40d620
lea ecx, [ebp - 0x40]
call fcn.004030eb
lea ecx, [ebp - 0x28]
call fcn.004030eb
push esi
call fcn.0040cff0
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004030eb
call fcn.00410759
ret
push 0x345
push 0x434b14
push 0x434798
lea ecx, [ebp - 0x34]
call fcn.00401d7d
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.00401c86
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.00401f3d
mov byte [ebp - 4], 5
push 0x434b30
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00401396
mov ecx, eax
call fcn.004011b2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407da2
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x441054
push eax
call fcn.00413602
int3