Function at 0x14008c0bc
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 - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rbp + 0x240]
mov rdi, rcx
mov r12, qword [rbp + 0x248]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x60], r8
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c140
test byte [rcx + 0x1c], 1
je 0x14008c140
cmp byte [rcx + 0x19], 5
jb 0x14008c140
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x1b
call fcn.140004c6c
or qword [rsp + 0x48], 0xffffffffffffffff
lea rcx, [rbp - 0x80]
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 + 0x58], rax
mov r15d, eax
mov qword [rsp + 0x40], rax
mov r13d, eax
mov dword [rsp + 0x34], eax
mov esi, eax
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [r12], al
cmp dword [rdi + 0x10], 0x64
jbe 0x14008c194
mov ebx, 0x80070057
jmp 0x14008c5ef
test dword [rdi], 0x400
mov byte [rdi + 0x14], 1
je 0x14008c1e9
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c5ef
test byte [rcx + 0x1c], 1
je 0x14008c5ef
cmp byte [rcx + 0x19], 5
jb 0x14008c5ef
mov r9, qword [rdi + 8]
lea r8, [0x140155ae8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
call fcn.140005c6c
jmp 0x14008c5ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rcx]
call fcn.14008704c
mov ebx, eax
test eax, eax
jns 0x14008c24c
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14008c5f6
test byte [rcx + 0x1c], 1
je 0x14008c5f6
cmp byte [rcx + 0x19], 2
jb 0x14008c5f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x1d
mov r9d, eax
call fcn.140004c90
jmp 0x14008c5f6
mov rdx, qword [rdi + 8]
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.14008bf7c
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x14008c2a8
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14008c29e
test byte [rcx + 0x1c], 1
je 0x14008c29e
cmp byte [rcx + 0x19], 2
jb 0x14008c29e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x1e
mov r9d, eax
call fcn.140004c90
mov r15, qword [rsp + 0x38]
jmp 0x14008c5f6
mov r15, qword [rsp + 0x38]
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], cx
jne 0x14008c2b1
add eax, 0x106
mov ecx, 0xffffffff
mov qword [rsp + 0x38], rax
add rax, rax
cmp rax, rcx
jbe 0x14008c2dc
mov ebx, 0x80070216
jmp 0x14008c5ef
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
jne 0x14008c2f8
mov ebx, 0x8007000e
jmp 0x14008c5ef
mov r8, rbx
xor edx, edx
mov rcx, r14
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x38]
mov r8, r15
mov rcx, r14
call fcn.14003b8c0
xor r8d, r8d
mov ebx, eax
test eax, eax
js 0x14008c5ef
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], r8w
jne 0x14008c326
mov eax, ecx
mov edx, 0x5c
inc ecx
mov word [r14 + rax*2], dx
lea rdx, [0x14015592c]
mov eax, ecx
mov word [r14 + rcx*2], r8w
lea r8, [rsp + 0x58]
mov rcx, r15
mov qword [rsp + 0x68], rax
call fcn.140087120
mov r13, qword [rsp + 0x58]
mov ebx, eax
test eax, eax
js 0x14008c5ef
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14008c3e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x14008c3e0
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c3cd
test byte [rcx + 0x1c], 1
je 0x14008c3cd
cmp byte [rcx + 0x19], 2
jb 0x14008c3cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x1f
mov dword [rsp + 0x20], edi
mov r9, r13
call fcn.140005ce8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008c5ef
xor eax, eax
mov ebx, eax
jmp 0x14008c5ef
movzx ecx, word [rbp - 0x54]
cmp cx, word [0x140155934]
movzx eax, word [rbp - 0x52]
jne 0x14008c407
cmp ax, word [0x140155936]
je 0x14008c57a
cmp cx, word [0x140155938]
jne 0x14008c42a
cmp ax, word [0x14015593a]
jne 0x14008c42a
movzx eax, word [rbp - 0x50]
cmp ax, word [0x14015593c]
je 0x14008c57a
mov rax, qword [rsp + 0x68]
lea r8, [rbp - 0x54]
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
mov word [r14 + rax*2], cx
mov rcx, r14
call fcn.140052af4
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008c5eb
mov edx, dword [rbp - 0x80]
mov eax, edx
and eax, 0x410
cmp eax, 0x10
jne 0x14008c552
mov r8d, dword [rdi + 0x10]
lea r9d, [rax + 0x54]
cmp r8d, r9d
jne 0x14008c4c0
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c57a
test byte [rcx + 0x1c], 1
je 0x14008c57a
cmp byte [rcx + 0x19], 3
jb 0x14008c57a
mov rcx, qword [rcx + 0x10]
lea edx, [r9 - 0x44]
mov dword [rsp + 0x20], r9d
lea r8, [0x140155ae8]
lea r9, [rbp - 0x54]
call fcn.140005ce8
jmp 0x14008c57a
cmp dword [rsp + 0x34], r9d
jb 0x14008c50a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c500
test byte [rcx + 0x1c], 1
je 0x14008c500
cmp byte [rcx + 0x19], 4
jb 0x14008c500
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x21
mov qword [rsp + 0x20], r15
call fcn.1400104d0
mov rax, qword [rsp + 0x78]
mov byte [rax], 1
jmp 0x14008c57a
inc r8d
lea r9, [rsp + 0x40]
lea rcx, [rbp - 0x54]
call fcn.14008b9ec
mov rsi, qword [rsp + 0x40]
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008c5eb
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.14008bb94
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x14008c5eb
inc dword [rsp + 0x34]
mov esi, eax
mov qword [rsp + 0x40], rax
jmp 0x14008c57a
lea r8, [rsp + 0x30]
mov byte [rsp + 0x30], 1
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14008b188
mov ebx, eax
test eax, eax
js 0x14008c6be
mov rax, qword [rsp + 0x70]
inc qword [rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x14008c3e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x14008c5ef
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008c5db
test byte [rcx + 0x1c], 1
je 0x14008c5db
cmp byte [rcx + 0x19], 2
jb 0x14008c5db
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x24
mov dword [rsp + 0x20], edi
mov r9, r13
call fcn.140005ce8
movzx ebx, di
xor eax, eax
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov byte [r12], al
lea rdi, [0x1401782b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13, r13
je 0x14008c60f
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r13d, r13d
test r14, r14
je 0x14008c620
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14008c633
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x14008c641
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x14008c665
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14008c659
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsi + 8], r13
mov rcx, rsi
mov qword [rsi + 8], r13
call fcn.14014709c
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x14008c692
test byte [rcx + 0x1c], 1
je 0x14008c692
cmp byte [rcx + 0x19], 5
jb 0x14008c692
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x25
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2e0
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 [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14008c5f6
test byte [rcx + 0x1c], 1
je 0x14008c5f6
cmp byte [rcx + 0x19], 2
jb 0x14008c5f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ae8]
mov edx, 0x23
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ce8
jmp 0x14008c5f6