Function at 0x14000c170
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140021020]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, r9
mov rbx, rdx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000649c
nop
cmp qword [rsp + 0x40], rsi
je 0x14000c2a2
lea rcx, [rsp + 0x30]
call fcn.14000cadc
test al, al
jne 0x14000c2a2
lea rcx, [rsp + 0x30]
call fcn.14000c9e4
test al, al
jne 0x14000c2a2
lea rcx, [rsp + 0x30]
call fcn.14000ca60
test al, al
jne 0x14000c2a2
mov rcx, qword [rsp + 0x40]
cmp rcx, 2
jb 0x14000c28e
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
cmp r8, 8
cmovae rax, rdx
cmp word [rax], 0x5c
je 0x14000c261
cmp word [rax], 0x2f
je 0x14000c261
cmp rcx, 3
jb 0x14000c28e
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x3a
jne 0x14000c28e
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 4], 0x5c
je 0x14000c285
cmp word [rax + 4], 0x2f
je 0x14000c285
jmp 0x14000c28e
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x5c
je 0x14000c27e
cmp word [rax + 2], 0x2f
mov al, 1
jne 0x14000c281
mov al, sil
test al, al
jne 0x14000c28e
cmp rcx, 0x104
jb 0x14000c2a2
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000bb44
test al, al
je 0x14000c4b9
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14000649c
nop
cmp qword [rbx + 0x18], 8
jb 0x14000c2c4
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400058f0
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x70]
call fcn.140011770
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000c45d
lea r13, [0x14001c190]
test byte [rbp - 0x70], 0x10
je 0x14000c43e
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x50]
call fcn.14000412c
nop
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 8
cmovae r8, rcx
cmp qword [rsp + 0x60], 1
jne 0x14000c392
mov r10d, 1
lea rax, [0x14001ba68]
mov rdx, rax
sub r8, rax
movzx eax, word [rdx]
cmp word [r8 + rdx], ax
jne 0x14000c392
add rdx, 2
sub r10, 1
jne 0x14000c37c
jmp 0x14000c40a
lea rdx, [rsp + 0x50]
cmp r9, 8
cmovae rdx, rcx
cmp qword [rsp + 0x60], 2
jne 0x14000c3ca
mov r10d, 2
mov r8, r13
sub rdx, r13
movzx eax, word [r8]
cmp word [rdx + r8], ax
jne 0x14000c3ca
add r8, 2
sub r10, 1
jne 0x14000c3b3
jmp 0x14000c40a
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14000c3f0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000649c
add qword [rdi + 8], 0x20
jmp 0x14000c400
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rdi
call fcn.140006580
mov rcx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 8
jb 0x14000c43e
lea rdx, [r9*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c49c
call fcn.14000fa24
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000c31e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14000c4a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c4a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c4a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000fa24
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000c4fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c4f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c4f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fa24
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14000fa00
add rsp, 0x2f0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret