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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x530
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r12, rdx
xor r13d, r13d
mov ebx, r13d
lea rcx, [rsp + 0x38]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x20]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x28]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x30]
call fcn.10001e06c
nop
lea esi, [r13 + 1]
lea rax, [fcn.100042598]
cmp rax, r13
jne 0x1000565f0
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea ebx, [rsi + 0x56]
jmp 0x1000568ca
cmp dword [0x10008252c], r13d
jne 0x10005662b
call fcn.1000569dc
mov ebx, eax
cmp eax, r13d
je 0x10005662b
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
jmp 0x1000568ca
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, [0x1000820a0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov r8d, ecx
lea rcx, [rsp + 0x38]
call fcn.10001e7fc
lea r8, [0x100009808]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000566d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
cmove ebx, r13d
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
jmp 0x1000568ca
test byte [rsp + 0x80], 0x10
je 0x100056880
lea rdx, [0x100009814]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r13d
je 0x100056880
lea rdx, [0x100009818]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r13d
je 0x100056880
lea r8, [0x100001f38]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.10001e58c
nop
lea r8, [rsp + 0xac]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
lea r8, [0x100001f38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.10001e58c
nop
lea r8, [0x100014948]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000567ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x10005689f
mov ebx, r13d
jmp 0x100056880
test byte [rsp + 0x2d0], 0x10
jne 0x100056858
lea r8, [0x100001f38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.10001e58c
nop
lea r8, [rsp + 0x2fc]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.10001e58c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
mov rdx, r12
mov rcx, qword [rsp + 0x30]
call fcn.100042598
mov esi, eax
lea rdx, [rsp + 0x2d0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r13d
je 0x100056877
cmp esi, r13d
jne 0x1000567ef
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r13d
je 0x10005689f
cmp esi, r13d
jne 0x1000566d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
mov eax, ebx
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret