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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x710
mov rax, qword [0x140006100]
xor rax, rsp
mov qword [rsp + 0x708], rax
mov dword [rsp + 0x4c8], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x730]
and eax, 4
test eax, eax
je 0x140003aaa
mov eax, dword [rsp + 0x730]
and eax, 2
test eax, eax
jne 0x140003aaa
mov dword [rsp + 0x704], 1
jmp 0x140003ab5
mov dword [rsp + 0x704], 0
mov eax, dword [rsp + 0x704]
mov dword [rsp + 0x6f4], eax
mov qword [rsp + 0x2a8], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x6e8], 0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [rsp + 0x2a0], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x4c0], rax
cmp qword [rsp + 0x4c0], 0
jne 0x140003b2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6f0], eax
mov ecx, dword [rsp + 0x6f0]
call fcn.140002e20
jmp 0x140004227
cmp dword [rsp + 0x6f4], 0
je 0x140003b42
mov dword [rsp + 0x4c8], 1
mov r8d, 0x218
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x6e8], rax
cmp qword [rsp + 0x6e8], 0
jne 0x140003b7e
mov ecx, 8
call fcn.140002e20
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
mov rax, qword [rsp + 0x6e8]
mov qword [rax], 0
mov rax, qword [rsp + 0x6e8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x2a8], rax
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x720]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
cmp rax, 1
jae 0x140003c10
mov rax, qword [rsp + 0x2a8]
add rax, 8
lea r8, [0x140001aa0]
mov edx, 0x20a
mov rcx, rax
call fcn.140002ed0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003c0b
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
jmp 0x140003cc2
mov rax, qword [rsp + 0x2a8]
add rax, 8
mov r8, qword [rsp + 0x720]
mov edx, 0x20a
mov rcx, rax
call fcn.140002ed0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003c52
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x720]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
mov rcx, qword [rsp + 0x720]
movzx eax, word [rcx + rax*2 - 2]
cmp eax, 0x5c
je 0x140003cc2
mov rax, qword [rsp + 0x2a8]
add rax, 8
lea r8, [0x140001a10]
mov edx, 0x20a
mov rcx, rax
call fcn.140002fe0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003cc2
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
cmp qword [rsp + 0x2a8], 0
je 0x1400041bd
mov rax, qword [rsp + 0x2a8]
add rax, 8
mov rcx, qword [rsp + 0x728]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [0x140001aa8]
mov edx, 0x20a
lea rcx, [rsp + 0x2b0]
call fcn.140001bf0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003d27
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x4c8]
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rsp + 0x6e0], rax
cmp qword [rsp + 0x6e0], 0xffffffffffffffff
je 0x140003f24
mov dword [rsp + 0x6f8], 0
cmp dword [rsp + 0x6f4], 0
je 0x140003d90
mov eax, dword [rsp + 0x50]
and eax, 0x10
test eax, eax
je 0x140003ea1
lea rax, [rsp + 0x7c]
lea rcx, [0x140001ab4]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140003db5
add rax, 2
test dx, dx
jne 0x140003d9f
xor eax, eax
jmp 0x140003dba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140003dec
lea rax, [rsp + 0x7c]
lea rcx, [0x140001ab8]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140003de3
add rax, 2
test dx, dx
jne 0x140003dcd
xor eax, eax
jmp 0x140003de8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140003df1
jmp 0x140003ea1
mov eax, dword [rsp + 0x730]
and eax, 4
test eax, eax
jne 0x140003e0f
mov eax, dword [rsp + 0x50]
and eax, 0x10
test eax, eax
je 0x140003e0f
jmp 0x140003ea1
mov rax, qword [rsp + 0x2a8]
add rax, 8
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [0x140001aa8]
mov edx, 0x20a
lea rcx, [rsp + 0x4d0]
call fcn.140001bf0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003e73
cmp dword [rsp + 0x6fc], 0x8007007a
jne 0x140003e63
jmp 0x140003ea1
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
mov rdx, qword [rsp + 0x740]
lea rcx, [rsp + 0x4d0]
call qword [rsp + 0x738]
test eax, eax
jne 0x140003ea1
mov ecx, 0x4c7
call fcn.140002e20
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003d77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6f0], eax
cmp dword [rsp + 0x6f0], 2
jne 0x140003f16
cmp dword [rsp + 0x6f8], 0xa
jae 0x140003f16
mov eax, dword [rsp + 0x6f8]
inc eax
mov dword [rsp + 0x6f8], eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140003f14
jmp 0x140003d6c
jmp 0x140003ed3
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x730]
and eax, 1
test eax, eax
je 0x14000417d
mov rax, qword [rsp + 0x2a8]
add rax, 8
mov r9, rax
lea r8, [0x140001ac0]
mov edx, 0x20a
lea rcx, [rsp + 0x2b0]
call fcn.140001bf0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
je 0x140003f7f
mov eax, dword [rsp + 0x6fc]
mov dword [rsp + 0x30], eax
jmp 0x1400041bd
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rsp + 0x6e0], rax
cmp qword [rsp + 0x6e0], 0xffffffffffffffff
je 0x14000417d
mov dword [rsp + 0x6f8], 0
mov eax, dword [rsp + 0x50]
and eax, 0x10
test eax, eax
je 0x1400040fa
lea rax, [rsp + 0x7c]
lea rcx, [0x140001ab4]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140004001
add rax, 2
test dx, dx
jne 0x140003feb
xor eax, eax
jmp 0x140004006
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400040fa
lea rax, [rsp + 0x7c]
lea rcx, [0x140001ab8]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140004033
add rax, 2
test dx, dx
jne 0x14000401d
xor eax, eax
jmp 0x140004038
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400040fa
mov r8d, 0x218
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x6e8], rax
cmp qword [rsp + 0x6e8], 0
je 0x1400040fa
mov rax, qword [rsp + 0x2a8]
add rax, 8
mov rcx, qword [rsp + 0x6e8]
add rcx, 8
lea rdx, [rsp + 0x7c]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [0x140001ac8]
mov edx, 0x20a
call fcn.140001bf0
mov dword [rsp + 0x6fc], eax
cmp dword [rsp + 0x6fc], 0
jne 0x1400040e2
mov rax, qword [rsp + 0x6e8]
mov qword [rax], 0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x6e8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x1400040fa
mov r8, qword [rsp + 0x6e8]
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003fcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6f0], eax
cmp dword [rsp + 0x6f0], 2
jne 0x14000416f
cmp dword [rsp + 0x6f8], 0xa
jae 0x14000416f
mov eax, dword [rsp + 0x6f8]
inc eax
mov dword [rsp + 0x6f8], eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000416d
jmp 0x140003fc2
jmp 0x14000412c
mov rcx, qword [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x6e8], rax
mov rax, qword [rsp + 0x2a8]
mov rax, qword [rax]
mov qword [rsp + 0x2a8], rax
mov r8, qword [rsp + 0x6e8]
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003cc2
cmp qword [rsp + 0x2a8], 0
je 0x140004205
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x6e8], rax
mov rax, qword [rsp + 0x2a8]
mov rax, qword [rax]
mov qword [rsp + 0x2a8], rax
mov r8, qword [rsp + 0x6e8]
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400041bd
mov ecx, dword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [rsp + 0x30]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x708]
xor rcx, rsp
call fcn.140004550
add rsp, 0x710
pop rdi
ret