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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x2d8
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x38], r8
mov esi, edx
mov dword [rsp + 0x30], edx
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1001095c1
test byte [rcx + 0x1c], 1
je 0x1001095c1
cmp byte [rcx + 0x19], 5
jb 0x1001095c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
mov edx, 0x1b
call fcn.10001c7b8
xor edx, edx
or rcx, 0xffffffffffffffff
mov rbp, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x48], edx
cmp rbx, rdx
jne 0x1001095e7
mov edi, 0x80070057
jmp 0x100109ace
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, edx
jbe 0x100109603
lea eax, [rcx - 1]
cmp word [rbx + rax*2], 0x5c
jne 0x1001095dd
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.10009df8c
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x10010965e
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
lea edx, [rax + 0x1c]
mov r9, rbx
jmp 0x100109998
bt dword [rsp + 0x48], 0xa
jae 0x1001096ab
mov edi, 0x80070005
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
mov r9, rbx
jmp 0x10010999c
lea eax, [rsi - 1]
cmp eax, 0x13
ja 0x100109a8a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
add ecx, 0x105
mov esi, ecx
lea rax, [rcx + rcx]
mov ecx, 0xffffffff
mov qword [rsp + 0x48], rsi
cmp rax, rcx
jbe 0x1001096eb
mov edi, 0x80070216
jmp 0x100109ace
mov ecx, eax
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
xor eax, eax
cmp rbp, rax
jne 0x100109709
mov edi, 0x8007000e
jmp 0x100109ace
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.100043e4c
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109ace
lea r8, [rsp + 0x40]
lea rdx, [0x100008254]
mov rcx, rbx
call fcn.10009b5b0
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109ace
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x100109820
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
je 0x1001097cf
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1001097ba
test byte [rcx + 0x1c], 1
je 0x1001097ba
cmp byte [rcx + 0x19], 2
jb 0x1001097ba
mov edx, 0x1f
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
mov dword [rsp + 0x20], esi
call fcn.10001daa4
movzx edi, si
xor eax, eax
or edi, 0x80070000
cmp esi, eax
cmovle edi, esi
jmp 0x100109ace
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1001090bc
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109ace
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
lea edx, [rax + 0x20]
jmp 0x100109656
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
cdqe
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x9c]
lea rdi, [0x10000a0dc]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x100109941
lea rsi, [rsp + 0x9c]
lea rdi, [0x10000a0e0]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x100109941
mov rsi, qword [rsp + 0x48]
xor ecx, ecx
lea r8, [rsp + 0x9c]
mov word [rbp + rax*2], cx
mov rcx, rbp
mov rdx, rsi
call fcn.1000590dc
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109ace
bt dword [rsp + 0x70], 0xa
jb 0x1001099b1
test byte [rsp + 0x70], 0x10
je 0x100109927
cmp dword [rsp + 0x30], 0x14
jae 0x100109927
lea r8, [0x100002954]
mov rdx, rsi
mov rcx, rbp
call fcn.1000590dc
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109ace
mov edx, dword [rsp + 0x30]
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
inc edx
mov rcx, rbp
call fcn.10010955c
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109941
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
lea edx, [rax + 0x22]
jmp 0x100109995
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.1001090bc
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109965
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
cmp eax, ecx
je 0x1001099fe
mov rax, qword [rsp + 0x60]
jmp 0x10010983a
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
mov edx, 0x23
mov r9, rbp
mov dword [rsp + 0x20], edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
call fcn.10001daa4
jmp 0x100109ad5
mov edi, 0x80070005
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
mov edx, 0x21
mov r9, rbp
call fcn.10001da24
jmp 0x100109ad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
je 0x100109a45
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1001097ba
test byte [rcx + 0x1c], 1
je 0x1001097ba
cmp byte [rcx + 0x19], 2
jb 0x1001097ba
mov r9, qword [rsp + 0x40]
mov edx, 0x24
jmp 0x1001097a6
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1001090bc
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109ace
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109ad5
test byte [rcx + 0x1c], 1
je 0x100109ad5
cmp byte [rcx + 0x19], 2
jb 0x100109ad5
lea edx, [rax + 0x25]
mov dword [rsp + 0x20], edi
jmp 0x1001096a3
mov edi, 0x80070057
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100109ace
test byte [rcx + 0x1c], 1
je 0x100109ace
cmp byte [rcx + 0x19], 2
jb 0x100109ace
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
mov edx, 0x1e
mov r9d, esi
mov dword [rsp + 0x20], 0x80070057
call fcn.10001e8b4
lea rsi, [0x1001653b8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x40]
xor ecx, ecx
cmp rax, rcx
je 0x100109af5
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp rbp, rax
je 0x100109b05
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100109b32
test byte [rcx + 0x1c], 1
je 0x100109b32
cmp byte [rcx + 0x19], 5
jb 0x100109b32
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fb0]
mov edx, 0x26
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x2d8
pop rdi
pop rsi
pop rbp
pop rbx
ret