Function at 0x4346e5
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0x2ac
mov eax, 0x44c4cf
call fcn.004386f7
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x40], ax
xor edi, edi
inc edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2b0], ecx
mov ebx, ecx
test esi, esi
jne 0x434734
push str.Parameter_pPathName_is_invalid._n
push str.CheckFileExistence
push 2
call fcn.00405a24
add esp, 0xc
jmp 0x4347b9
cmp word [esi], cx
jne 0x43473d
mov eax, ecx
jmp 0x434744
push esi
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00401db2
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2ac], 0x3f
call fcn.0040baaf
cmp eax, 0xffffffff
cmovne edi, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2ac], eax
cmp eax, 0xffffffff
jne 0x4347c2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str._1_s__does_not_exist._n
push str.CheckFileExistence
push 5
call fcn.00405a24
xor edi, edi
add esp, 0x10
inc edi
xor eax, eax
mov esi, eax
jmp 0x434995
mov dword [ebp - 0x2b8], 0x5c
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
inc eax
push eax
mov byte [ebp - 4], al
push 0xffffffffffffffff
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040bbab
cmp eax, 0xffffffff
je 0x43483c
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2b4], 0x5c
call fcn.0040bbab
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.004058e2
push eax
lea ecx, [ebp - 0x28]
call fcn.00406613
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x58]
call fcn.00401ba5
jmp 0x434854
xor eax, eax
cmp word [esi], ax
je 0x43484a
push esi
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401db2
push 0x44d8a8
call fcn.0043860f
pop ecx
push eax
push 0x44d8a8
lea ecx, [ebp - 0x28]
call fcn.004053dd
cmp word [ebp - 0x27c], 0
jne 0x43487b
xor eax, eax
jmp 0x434888
lea eax, [ebp - 0x27c]
push eax
call fcn.0043860f
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004053dd
test edi, edi
je 0x4348a5
cmp edi, dword [ebp - 0x18]
jne 0x43492e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43492e
test al, 0x10
je 0x43490b
lea eax, [ebp - 0x27c]
push 0x450d0c
push eax
call fcn.0043933f
pop ecx
pop ecx
test eax, eax
je 0x43492e
lea eax, [ebp - 0x27c]
push 0x453a60
push eax
call fcn.0043933f
pop ecx
pop ecx
test eax, eax
je 0x43492e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x2b0], 1
push str._1_s__Directory_exists._n
jmp 0x43491f
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str._1_s__File_exists._n
push str.CheckFileExistence
push 5
call fcn.00405a24
add esp, 0x10
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call fcn.00401ba5
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4347cc
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov esi, eax
mov eax, dword [ebp - 0x2b0]
push 1
test eax, eax
pop edi
cmovne esi, edi
test ebx, ebx
je 0x43497e
or esi, 2
push esi
push str._ULONG_nRet
push str.CheckFileExistence
push 4
call fcn.004059ca
add esp, 0x10
xor eax, eax
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00401ba5
mov eax, esi
call fcn.004386a6
ret