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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x250]
mov rdi, rcx
mov r12, qword [rbp + 0x258]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r9
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rcx
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008786f
test byte [rcx + 0x1c], 1
je 0x14008786f
cmp byte [rcx + 0x19], 5
jb 0x14008786f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x1b
call fcn.140004968
or qword [rsp + 0x68], 0xffffffffffffffff
lea rcx, [rbp - 0x70]
xor eax, eax
xor edx, edx
mov r8d, 0x250
mov qword [rsp + 0x50], rax
mov ebx, eax
mov qword [rsp + 0x38], rax
mov r14d, eax
mov qword [rsp + 0x48], rax
mov r15d, eax
mov qword [rsp + 0x60], rax
mov r13d, eax
mov qword [rsp + 0x58], rax
mov esi, eax
mov dword [rsp + 0x40], eax
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [r12], al
cmp dword [rdi + 0x10], 0x64
jbe 0x1400878c8
mov ebx, 0x80070057
jmp 0x140087d06
test dword [rdi], 0x400
mov byte [rdi + 0x14], 1
je 0x14008791d
mov rcx, qword [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x140087d0d
test byte [rcx + 0x1c], 1
je 0x140087d0d
cmp byte [rcx + 0x19], 5
jb 0x140087d0d
mov r9, qword [rdi + 8]
lea r8, [0x14014b048]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
call fcn.140005868
jmp 0x140087d0d
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rcx]
call fcn.14008290c
mov ebx, eax
test eax, eax
jns 0x140087980
mov rcx, qword [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x140087d0d
test byte [rcx + 0x1c], 1
je 0x140087d0d
cmp byte [rcx + 0x19], 2
jb 0x140087d0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x1d
mov r9d, eax
call fcn.140004988
jmp 0x140087d0d
mov rdx, qword [rdi + 8]
lea r8, [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400876a8
mov ebx, eax
xor eax, eax
test ebx, ebx
jns 0x1400879dd
mov rcx, qword [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x1400879d3
test byte [rcx + 0x1c], 1
je 0x1400879d3
cmp byte [rcx + 0x19], 2
jb 0x1400879d3
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1e]
mov r9d, ebx
lea r8, [0x14014b048]
call fcn.140004988
mov r15, qword [rsp + 0x48]
jmp 0x140087d12
mov r15, qword [rsp + 0x48]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [r15 + rdi*2], ax
jne 0x1400879e6
add edi, 0x106
lea rcx, [rsp + 0x50]
mov edx, edi
mov r8d, 2
call fcn.14000f570
mov r14, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140087d06
mov eax, edi
mov r8, r15
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x48], rax
call fcn.140039a84
xor edi, edi
mov ebx, eax
test eax, eax
js 0x140087d06
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], di
jne 0x140087a3b
mov eax, ecx
lea r8, [rsp + 0x60]
mov edx, 0x5c
mov word [r14 + rax*2], dx
lea eax, [rcx + 1]
mov rcx, r15
mov qword [rsp + 0x50], rax
lea rdx, [0x14014ae8c]
mov word [r14 + rax*2], di
call fcn.1400829d8
mov r13, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x140087d06
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140087afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x140087af4
mov rcx, qword [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x140087ae1
test byte [rcx + 0x1c], 1
je 0x140087ae1
cmp byte [rcx + 0x19], 2
jb 0x140087ae1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, r13
call fcn.1400058c8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140087d0d
xor eax, eax
mov ebx, eax
jmp 0x140087d06
mov rdi, qword [rsp + 0x78]
movzx ecx, word [rbp - 0x44]
cmp cx, word [0x14014ae94]
movzx eax, word [rbp - 0x42]
jne 0x140087b20
cmp ax, word [0x14014ae96]
je 0x140087c91
cmp cx, word [0x14014ae98]
jne 0x140087b43
cmp ax, word [0x14014ae9a]
jne 0x140087b43
movzx eax, word [rbp - 0x40]
cmp ax, word [0x14014ae9c]
je 0x140087c91
mov rax, qword [rsp + 0x50]
lea r8, [rbp - 0x44]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
mov word [r14 + rax*2], cx
mov rcx, r14
call fcn.14005034c
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140087d02
mov edx, dword [rbp - 0x70]
mov eax, edx
and eax, 0x410
cmp eax, 0x10
jne 0x140087c6a
mov r8d, dword [rdi + 0x10]
lea r9d, [rax + 0x54]
cmp r8d, r9d
jne 0x140087bd9
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140087c91
test byte [rcx + 0x1c], 1
je 0x140087c91
cmp byte [rcx + 0x19], 3
jb 0x140087c91
mov rcx, qword [rcx + 0x10]
lea edx, [r9 - 0x44]
mov dword [rsp + 0x20], r9d
lea r8, [0x14014b048]
lea r9, [rbp - 0x44]
call fcn.1400058c8
jmp 0x140087c91
cmp dword [rsp + 0x40], r9d
jb 0x140087c22
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140087c19
test byte [rcx + 0x1c], 1
je 0x140087c19
cmp byte [rcx + 0x19], 4
jb 0x140087c19
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x21
mov qword [rsp + 0x20], r15
call fcn.14000f75c
mov rax, qword [rbp - 0x80]
mov byte [rax], 1
jmp 0x140087c91
inc r8d
lea r9, [rsp + 0x58]
lea rcx, [rbp - 0x44]
call fcn.14008712c
mov rsi, qword [rsp + 0x58]
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140087d02
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1400872c8
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140087d02
inc dword [rsp + 0x40]
mov esi, eax
mov qword [rsp + 0x58], rax
jmp 0x140087c91
lea r8, [rsp + 0x30]
mov byte [rsp + 0x30], 1
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.1400868e0
mov ebx, eax
test eax, eax
js 0x140087dd5
mov rax, qword [rbp - 0x78]
inc qword [rax]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x140087b02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x140087d06
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140087cf2
test byte [rcx + 0x1c], 1
je 0x140087cf2
cmp byte [rcx + 0x19], 2
jb 0x140087cf2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x24
mov dword [rsp + 0x20], edi
mov r9, r13
call fcn.1400058c8
movzx ebx, di
xor eax, eax
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov byte [r12], al
lea r12, [0x14016d090]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13, r13
je 0x140087d2b
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r13d, r13d
test r14, r14
je 0x140087d3c
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x140087d4a
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x140087d58
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x140087d7c
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140087d70
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsi + 8], r13
mov rcx, rsi
mov qword [rsi + 8], r13
call fcn.14013c808
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x140087da9
test byte [rcx + 0x1c], 1
je 0x140087da9
cmp byte [rcx + 0x19], 5
jb 0x140087da9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x25
call fcn.140004968
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, byte [rsp + 0x30]
mov byte [r12], al
mov rcx, qword [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x140087d0d
test byte [rcx + 0x1c], 1
je 0x140087d0d
cmp byte [rcx + 0x19], 2
jb 0x140087d0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b048]
mov edx, 0x23
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.1400058c8
jmp 0x140087d0d