Function at 0x14008ec74
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x250]
mov r13, rcx
mov r15, qword [rbp + 0x258]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x70], r8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008ecf7
test byte [rcx + 0x1c], 1
je 0x14008ecf7
cmp byte [rcx + 0x19], 5
jb 0x14008ecf7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x1b
call fcn.14000c0e8
or qword [rsp + 0x60], 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 + 0x68], rax
mov esi, eax
mov qword [rsp + 0x48], rax
mov r14d, eax
mov qword [rsp + 0x58], rax
mov r12d, eax
mov qword [rsp + 0x38], rax
mov edi, eax
mov dword [rsp + 0x40], eax
call sub.msvcrt.dll_memset
mov byte [r15], bl
cmp dword [r13 + 0x10], 0x64
jbe 0x14008ed4d
mov ebx, 0x80070057
jmp 0x14008ef8e
test dword [r13], 0x400
mov byte [r13 + 0x14], 1
je 0x14008eda5
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008ef8e
test byte [rcx + 0x1c], 1
je 0x14008ef8e
cmp byte [rcx + 0x19], 5
jb 0x14008ef8e
mov r9, qword [r13 + 8]
lea r8, [0x14014e618]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
call fcn.140014f10
jmp 0x14008ef8e
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, qword [rcx]
call fcn.14008a470
mov ebx, eax
test eax, eax
jns 0x14008ee08
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14008ef95
test byte [rcx + 0x1c], 1
je 0x14008ef95
cmp byte [rcx + 0x19], 2
jb 0x14008ef95
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x1d
mov r9d, eax
call fcn.14000c114
jmp 0x14008ef95
mov rdx, qword [r13 + 8]
lea r8, [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
call fcn.14008fff4
mov ebx, eax
xor eax, eax
test ebx, ebx
jns 0x14008ee62
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14008ee58
test byte [rcx + 0x1c], 1
je 0x14008ee58
cmp byte [rcx + 0x19], 2
jb 0x14008ee58
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x1e]
mov r9d, ebx
lea r8, [0x14014e618]
call fcn.14000c114
mov r14, qword [rsp + 0x48]
jmp 0x14008ef95
mov r14, qword [rsp + 0x48]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x14008ee6b
add edi, 0x106
lea rcx, [rsp + 0x50]
mov edx, edi
mov r8d, 2
call fcn.14000d37c
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14008ef89
mov eax, edi
mov r8, r14
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x48], rax
call fcn.140006300
xor edi, edi
mov ebx, eax
test eax, eax
js 0x14008ef89
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], di
jne 0x14008eec0
mov eax, ecx
lea r8, [rsp + 0x58]
mov edx, 0x5c
mov word [rsi + rax*2], dx
lea eax, [rcx + 1]
mov rcx, r14
mov qword [rsp + 0x50], rax
lea rdx, [0x14014e45c]
mov word [rsi + rax*2], di
call fcn.14008a090
mov r12, qword [rsp + 0x58]
mov ebx, eax
test eax, eax
js 0x14008ef89
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x14008f062
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x14008ef87
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14008ef73
test byte [rcx + 0x1c], 1
je 0x14008ef73
cmp byte [rcx + 0x19], 2
jb 0x14008ef73
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x1f
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fbc0
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jle 0x14008ef95
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14008ef95
mov ebx, edi
mov rdi, qword [rsp + 0x38]
lea r13, [0x14016a048]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test r12, r12
je 0x14008efba
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14008efce
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14008efe7
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r14, r14
je 0x14008effb
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rdi, rdi
je 0x14008f008
mov rcx, rdi
call fcn.14008dff4
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14008f035
test byte [rcx + 0x1c], 1
je 0x14008f035
cmp byte [rcx + 0x19], 5
jb 0x14008f035
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x25
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
movzx ecx, word [rbp - 0x44]
mov r8d, 0x2e
movzx eax, r8w
sub ecx, eax
jne 0x14008f07f
movzx ecx, word [rbp - 0x42]
movzx eax, dx
sub ecx, eax
test ecx, ecx
je 0x14008f1fc
movzx ecx, word [rbp - 0x44]
movzx eax, r8w
sub ecx, eax
jne 0x14008f0a8
movzx ecx, word [rbp - 0x42]
movzx eax, r8w
sub ecx, eax
jne 0x14008f0a8
movzx ecx, word [rbp - 0x40]
movzx eax, dx
sub ecx, eax
test ecx, ecx
je 0x14008f1fc
mov rax, qword [rsp + 0x50]
lea r8, [rbp - 0x44]
mov rcx, rsi
mov word [rsi + rax*2], dx
mov rdx, qword [rsp + 0x48]
call fcn.14005631c
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008f2cb
mov edx, dword [rbp - 0x70]
mov eax, edx
and eax, 0x410
cmp eax, 0x10
jne 0x14008f1d5
mov r8d, dword [r13 + 0x10]
lea r9d, [rax + 0x54]
cmp r8d, r9d
jne 0x14008f143
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008f1fc
test byte [rcx + 0x1c], 1
je 0x14008f1fc
cmp byte [rcx + 0x19], 3
jb 0x14008f1fc
mov rcx, qword [rcx + 0x10]
lea edx, [r9 - 0x44]
mov dword [rsp + 0x20], r9d
lea r8, [0x14014e618]
lea r9, [rbp - 0x44]
call fcn.140040130
jmp 0x14008f1fc
cmp edi, r9d
jb 0x14008f18b
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008f181
test byte [rcx + 0x1c], 1
je 0x14008f181
cmp byte [rcx + 0x19], 4
jb 0x14008f181
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x21
mov qword [rsp + 0x20], r14
call fcn.140061418
mov rax, qword [rsp + 0x78]
mov byte [rax], 1
jmp 0x14008f1fc
inc r8d
lea r9, [rsp + 0x38]
lea rcx, [rbp - 0x44]
call fcn.14008e01c
mov rdi, qword [rsp + 0x38]
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008f277
mov rcx, qword [rsp + 0x70]
mov rdx, rdi
call fcn.140090ca0
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008f277
inc dword [rsp + 0x40]
mov edi, dword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x14008f1fc
lea r8, [rsp + 0x30]
mov byte [rsp + 0x30], 1
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14008e928
mov ebx, eax
test eax, eax
js 0x14008f27f
mov rax, qword [rbp - 0x80]
inc qword [rax]
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x14008f064
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x14008ef89
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14008f26d
test byte [rcx + 0x1c], 1
je 0x14008f26d
cmp byte [rcx + 0x19], 2
jb 0x14008f26d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x24
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.14003fbc0
xor eax, eax
test edi, edi
jg 0x14008f2d3
mov ebx, edi
jmp 0x14008f2dc
mov byte [r15], al
jmp 0x14008ef8e
mov al, byte [rsp + 0x30]
mov byte [r15], al
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x14008f2c1
test byte [rcx + 0x1c], 1
je 0x14008f2c1
cmp byte [rcx + 0x19], 2
jb 0x14008f2c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x23
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
mov rdi, qword [rsp + 0x38]
jmp 0x14008ef95
mov byte [r15], al
jmp 0x14008ef89
movzx ebx, di
or ebx, 0x80070000
mov byte [r15], al
jmp 0x14008f2c1