Function at 0x1001099ec
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 0x100109a51
test byte [rcx + 0x1c], 1
je 0x100109a51
cmp byte [rcx + 0x19], 5
jb 0x100109a51
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x1b
call fcn.10001c854
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 0x100109a77
mov edi, 0x80070057
jmp 0x100109f5e
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, edx
jbe 0x100109a93
lea eax, [rcx - 1]
cmp word [rbx + rax*2], 0x5c
jne 0x100109a6d
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.10009e564
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109aee
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
lea edx, [rax + 0x1c]
mov r9, rbx
jmp 0x100109e28
bt dword [rsp + 0x48], 0xa
jae 0x100109b3b
mov edi, 0x80070005
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
mov r9, rbx
jmp 0x100109e2c
lea eax, [rsi - 1]
cmp eax, 0x13
ja 0x100109f1a
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 0x100109b7b
mov edi, 0x80070216
jmp 0x100109f5e
mov ecx, eax
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
xor eax, eax
cmp rbp, rax
jne 0x100109b99
mov edi, 0x8007000e
jmp 0x100109f5e
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.1000c23ac
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109f5e
lea r8, [rsp + 0x40]
lea rdx, [0x1000081d4]
mov rcx, rbx
call fcn.10009bb88
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109f5e
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 0x100109cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
je 0x100109c5f
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100109c4a
test byte [rcx + 0x1c], 1
je 0x100109c4a
cmp byte [rcx + 0x19], 2
jb 0x100109c4a
mov edx, 0x1f
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov dword [rsp + 0x20], esi
call fcn.10001ddb0
movzx edi, si
xor eax, eax
or edi, 0x80070000
cmp esi, eax
cmovle edi, esi
jmp 0x100109f5e
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.10010954c
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109f5e
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
lea edx, [rax + 0x20]
jmp 0x100109ae6
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, [0x10000a05c]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x100109dd1
lea rsi, [rsp + 0x9c]
lea rdi, [0x10000a060]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x100109dd1
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.100059424
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109f5e
bt dword [rsp + 0x70], 0xa
jb 0x100109e41
test byte [rsp + 0x70], 0x10
je 0x100109db7
cmp dword [rsp + 0x30], 0x14
jae 0x100109db7
lea r8, [0x100002934]
mov rdx, rsi
mov rcx, rbp
call fcn.100059424
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109f5e
mov edx, dword [rsp + 0x30]
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
inc edx
mov rcx, rbp
call fcn.1001099ec
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109dd1
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
lea edx, [rax + 0x22]
jmp 0x100109e25
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.10010954c
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100109df5
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
cmp eax, ecx
je 0x100109e8e
mov rax, qword [rsp + 0x60]
jmp 0x100109cca
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
mov edx, 0x23
mov r9, rbp
mov dword [rsp + 0x20], edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
call fcn.10001ddb0
jmp 0x100109f65
mov edi, 0x80070005
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x21
mov r9, rbp
call fcn.10001db08
jmp 0x100109f65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
je 0x100109ed5
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100109c4a
test byte [rcx + 0x1c], 1
je 0x100109c4a
cmp byte [rcx + 0x19], 2
jb 0x100109c4a
mov r9, qword [rsp + 0x40]
mov edx, 0x24
jmp 0x100109c36
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.10010954c
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x100109f5e
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100109f65
test byte [rcx + 0x1c], 1
je 0x100109f65
cmp byte [rcx + 0x19], 2
jb 0x100109f65
lea edx, [rax + 0x25]
mov dword [rsp + 0x20], edi
jmp 0x100109b33
mov edi, 0x80070057
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100109f5e
test byte [rcx + 0x1c], 1
je 0x100109f5e
cmp byte [rcx + 0x19], 2
jb 0x100109f5e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x1e
mov r9d, esi
mov dword [rsp + 0x20], 0x80070057
call fcn.10001d914
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 0x100109f85
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp rbp, rax
je 0x100109f95
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100109fc2
test byte [rcx + 0x1c], 1
je 0x100109fc2
cmp byte [rcx + 0x19], 5
jb 0x100109fc2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x26
call fcn.10001c854
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x2d8
pop rdi
pop rsi
pop rbp
pop rbx
ret