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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa10
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2562], rax
mov rbp, rcx
mov eax, dword [0x140434808]
xor r14d, r14d
test al, 1
jne 0x1400d4396
or eax, 1
mov dword [0x140434808], eax
mov qword [0x1404347f0], r14
mov qword [0x1404347f8], r14
mov qword [0x140434800], r14
lea rcx, [0x1402dc210]
call fcn.140161180
nop
mov eax, dword [0x140434808]
mov rdi, qword [0x1404347f0]
cmp rdi, qword [0x1404347f8]
jbe 0x1400d43b2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x140434808]
test al, 1
jne 0x1400d43e1
or eax, 1
mov dword [0x140434808], eax
mov qword [0x1404347f0], r14
mov qword [0x1404347f8], r14
mov qword [0x140434800], r14
lea rcx, [0x1402dc210]
call fcn.140161180
nop
mov rsi, qword [0x1404347f8]
cmp qword [0x1404347f0], rsi
jbe 0x1400d43f7
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rdi, rsi
je 0x1400d4443
cmp rdi, qword [0x1404347f8]
jb 0x1400d440b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdx, rbp
mov rcx, qword [rdi]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x1400d4439
cmp rdi, qword [0x1404347f8]
jb 0x1400d442a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rdi, 8
mov eax, dword [0x140434808]
jmp 0x1400d43b2
mov eax, 1
jmp 0x1400d4761
mov word [rsp + 0x480], 0
xor edx, edx
mov r8d, 0x2ba
lea rcx, [rsp + 0x482]
call sub.ntdll.dll_memset
mov r12d, r14d
mov word [rsp + 0x280], r12w
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_642]
call sub.ntdll.dll_memset
mov ebx, 1
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x30]
call sub.ntdll.dll_memset
mov r8, rbp
lea rdx, str._s.
lea rcx, [rsp + 0x480]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d44e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
cmove ebx, ebx
nop
nop
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x280]
call sub.ntdll.dll_memset
mov rdx, r14
nop
nop
movzx eax, word [rsp + rdx + 0x5c]
mov word [rsp + rdx + 0x280], ax
add rdx, 2
test ax, ax
jne 0x1400d4500
lea rcx, [rsp + 0x280]
call qword [sym.imp.ntdll.dll__wcslwr]
lea rsi, [0x1403b6c40]
lea rdi, [rsp + 0x280]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, [0x1403b6c44]
lea rdi, [rsp + 0x280]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, str.recycler
lea rdi, [rsp + 0x280]
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, str._recycle.bin
lea rdi, [rsp + 0x280]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, str.recycle_bin
lea rdi, [rsp + 0x280]
mov ecx, 0xc
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, str.system_volume_information
lea rdi, [rsp + 0x280]
mov ecx, 0x1a
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, str.pagefile.sys
lea rdi, [rsp + 0x280]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
lea rsi, [0x1402ed858]
lea rdi, [rsp + 0x280]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d4740
mov eax, dword [0x140434808]
test al, 1
jne 0x1400d4647
or eax, 1
mov dword [0x140434808], eax
mov qword [0x1404347f0], r14
mov qword [0x1404347f8], r14
mov qword [0x140434800], r14
lea rcx, [0x1402dc210]
call fcn.140161180
nop
mov eax, dword [0x140434808]
mov rsi, qword [0x1404347f0]
cmp rsi, qword [0x1404347f8]
jbe 0x1400d4663
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x140434808]
test al, 1
jne 0x1400d4692
or eax, 1
mov dword [0x140434808], eax
mov qword [0x1404347f0], r14
mov qword [0x1404347f8], r14
mov qword [0x140434800], r14
lea rcx, [0x1402dc210]
call fcn.140161180
nop
mov rdi, qword [0x1404347f8]
cmp qword [0x1404347f0], rdi
jbe 0x1400d46a8
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x1400d4735
cmp rsi, qword [0x1404347f8]
jb 0x1400d46c0
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsi]
mov word [rsp + 0x740], 0
xor edx, edx
mov r8d, 0x2ba
lea rcx, [rsp + 0x742]
call sub.ntdll.dll_memset
lea r9, [rsp + 0x280]
mov r8, rbp
lea rdx, [0x1402e0040]
lea rcx, [rsp + 0x740]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x740]
mov rcx, rdi
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x1400d4740
cmp rsi, qword [0x1404347f8]
jb 0x1400d4726
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rsi, 8
mov eax, dword [0x140434808]
jmp 0x1400d4663
add r12d, 1
test r12d, r12d
cmovg ebx, r14d
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d44e0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret