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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x18f4
call fcn.0041dde0
mov eax, dword [0x420164]
xor eax, esp
mov dword [esp + 0x18f0], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x278]
push esi
push edi
push 0x20a
xor esi, esi
mov dword [esp + 0x2c], ecx
push esi
push eax
mov dword [esp + 0x2c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], esi
mov edi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edi
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414430
mov eax, 0x80070057
push eax
push 0x407778
push 0x407820
push 0x420710
push 0x40149c
push 2
mov esi, eax
call fcn.00411c1c
add esp, 0x18
jmp 0x4146b2
test al, 0x10
jne 0x414441
mov eax, 0x80070057
push eax
push 0x407888
jmp 0x414410
push ebx
mov ebx, 0x105
lea eax, [esp + 0x284]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
test eax, eax
je 0x41446a
mov eax, 0x8000ffff
push eax
push 0x407930
jmp 0x414410
push 0x4079d8
lea eax, [esp + 0x284]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
test eax, eax
je 0x414495
mov eax, 0x8000ffff
push eax
push 0x4079e8
jmp 0x414410
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x41466e
cmp ebx, 0xffffffff
je 0x41466e
lea eax, [esp + 0x490]
mov dword [esp + 0xc], eax
cmp edi, 0x104
je 0x4145ce
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x64]
push 0x407a90
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0x10
cmp eax, 2
jne 0x4145ba
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
ja 0x414552
jne 0x414512
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
ja 0x414552
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
push 0x4026c4
push dword [esp + 0x18]
call fcn.00416096
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4145ad
mov eax, 0x8000ffff
push eax
push 0x407bf8
mov esi, eax
push 0x407820
push 0x420710
push 0x40149c
jmp 0x414698
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp word [esp + 0x490], si
je 0x41458a
lea eax, [esp + 0x490]
push eax
push 0x105
push dword [esp + 0x14]
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x4145fd
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x498]
push 0x4026c4
push eax
call fcn.00416096
add esp, 0x10
cmp eax, 0xffffffff
je 0x41460d
inc edi
add dword [esp + 0xc], 0x20a
mov dword [esp + 0x24], edi
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x4144ca
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12
je 0x41461d
test eax, eax
je 0x41461d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4145f2
movzx esi, si
or esi, 0x80070000
push esi
push 0x407ca0
jmp 0x41453e
mov eax, 0x8000ffff
push eax
push 0x407aa8
jmp 0x41453c
mov eax, 0x8000ffff
push eax
push 0x407b50
jmp 0x41453c
cmp edi, 1
jbe 0x41466e
mov ebx, dword [esp + 0x24]
lea edi, [esp + 0x69a]
mov esi, dword [esp + 0x28]
dec ebx
push edi
mov ecx, esi
call fcn.00414ad8
test eax, eax
jns 0x41465d
push eax
push 0x407d48
push 0x407820
push 0x420710
push 0x4014c4
push 2
call fcn.00411c1c
add esp, 0x18
add edi, 0x20a
sub ebx, 1
jne 0x414632
mov ebx, dword [esp + 0x2c]
xor esi, esi
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x490]
push eax
call fcn.004146cb
test eax, eax
jns 0x4146a2
push eax
push 0x407df0
push 0x407820
push 0x420710
push 0x4014c4
push 2
call fcn.00411c1c
add esp, 0x18
test ebx, ebx
je 0x4146b2
cmp ebx, 0xffffffff
je 0x4146b2
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov ecx, dword [esp + 0x18fc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d370
mov esp, ebp
pop ebp
ret 4