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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe30
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_3619], rax
mov rdi, rcx
mov word [rsp + Ordinal_1193], 0
xor edx, edx
mov r8d, 0x2ba
lea rcx, [r11 - 0x9b6]
call sub.ntdll.dll_memset
mov word [rsp + reloc.MFC80U.DLL_Ordinal_672], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x2a2]
call sub.ntdll.dll_memset
xor r12d, r12d
mov r13d, r12d
mov word [rsp + 0xa20], r12w
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + 0xa22]
call sub.ntdll.dll_memset
call fcn.140049400
mov rbp, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rsi, rax
mov rbx, qword [rbp]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
mov rdi, rax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
mov r9d, eax
mov qword [rsp + 0x20], rdi
mov r8d, reloc.MFC80U.DLL_Ordinal_512
lea rdx, [rsp + 0xa20]
mov rcx, rbp
call qword [rbx + 0x58]
test eax, eax
jne 0x1400d4013
call fcn.140049470
mov rbx, rax
xor edx, edx
mov r8d, 0x80
lea rsi, [0x140434760]
mov rcx, rsi
call sub.ntdll.dll_memset
lea edx, [r12 + 0x5c]
lea rcx, str...copyfile.cpp
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
jne 0x1400d3f74
mov rsi, r12
jmp 0x1400d4000
mov byte [rsp + 0x290], r12b
xor eax, eax
mov qword [rsp + 0x291], rax
mov word [rsp + 0x299], ax
mov byte [rsp + 0x29b], al
mov r8d, 0x90
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x290]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1400d3fc0
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x290]
xor ecx, ecx
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1400d3ff0
mov rax, qword [rbx]
mov r8, rsi
lea rdx, str._s:_Failed_to_get_GUID.
mov rcx, rbx
call qword [rax + 0x10]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x40]
call sub.ntdll.dll_memset
lea r8, [rsp + 0xa20]
lea rdx, str._Volume_s.
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d4073
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete r12b
mov eax, r12d
jmp 0x1400d42cf
lea r14, [0x1404347e8]
nop
nop
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call sub.ntdll.dll_memset
mov rdx, r12
nop
nop
movzx eax, word [rsp + rdx + 0x6c]
mov word [rsp + rdx + reloc.MFC80U.DLL_Ordinal_672], ax
add rdx, 2
test ax, ax
jne 0x1400d40a0
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_672]
call qword [sym.imp.ntdll.dll__wcslwr]
lea rsi, [0x1403b6c40]
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, [0x1403b6c44]
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, str.recycler
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, str._recycle.bin
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, str.recycle_bin
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 0xc
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, str.system_volume_information
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 0x1a
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, str.pagefile.sys
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
lea rsi, [0x1402ed858]
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov ecx, 0xd
repe cmpsw word [rsi], word [rdi]
je 0x1400d42a6
call fcn.1400d3dc0
mov rbx, rax
mov rsi, qword [rax + 8]
cmp rsi, qword [rax + 0x10]
jbe 0x1400d41c4
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [0x140434808]
test cl, 1
jne 0x1400d41fa
or ecx, 1
mov dword [0x140434808], ecx
mov qword [0x1404347f0], r12
mov qword [0x1404347f8], r12
mov qword [0x140434800], r12
lea rcx, [0x1402dc210]
call fcn.140161180
nop
mov rdi, qword [0x1404347f8]
cmp qword [0x1404347f0], rdi
jbe 0x1400d4210
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rbx, r14
je 0x1400d421b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x1400d429d
cmp rsi, qword [rbx + 0x10]
jb 0x1400d422c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsi]
mov word [rsp + Ordinal_1891], 0
xor edx, edx
mov r8d, 0x2ba
lea rcx, [rsp + 0x762]
call sub.ntdll.dll_memset
lea r9, [rsp + reloc.MFC80U.DLL_Ordinal_672]
lea r8, [rsp + 0xa20]
lea rdx, [0x1402e2ad0]
lea rcx, [rsp + 0x760]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x760]
mov rcx, rdi
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x1400d42a6
cmp rsi, qword [rbx + 0x10]
jb 0x1400d4294
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rsi, 8
jmp 0x1400d41c4
add r13d, 1
test r13d, r13d
jg 0x1400d42bc
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d4080
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13d, r13d
setle r12b
mov eax, r12d
mov rcx, qword [rsp + 0xe20]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0xe30]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret