Function at 0x140189ec4
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x580]
mov eax, 0x680
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140189f0b
mov rcx, qword [rdx]
lea r8, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor r12d, r12d
test eax, eax
je 0x14018a36c
cmp dword [rsp + 0x60], 0xffffffff
je 0x14018a36c
test byte [rsp + 0x60], 0x10
je 0x14018a36c
mov rbx, qword [rdi]
mov rsi, qword [rdi + 8]
cmp rbx, rsi
je 0x140189f5d
mov rcx, rbx
call fcn.14000ac30
add rbx, 0x20
cmp rbx, rsi
jne 0x140189f45
mov rax, qword [rdi]
mov qword [rdi + 8], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov ebx, 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x40], r12w
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14000abb4
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x20], r12w
lea rdx, [0x14027370c]
lea rcx, [rsp + 0x20]
call fcn.14000ae4c
nop
mov r8b, 1
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.1400096d8
test al, al
sete bl
mov esi, 0x1000
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14018a003
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, rsi
jb 0x140189ffd
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140189ffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bl, bl
je 0x14018a095
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea rdx, [0x14027370c]
lea rcx, [rsp + 0x20]
call fcn.14000ae4c
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000ab38
nop
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14018a095
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, rsi
jb 0x14018a08f
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14018a08f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x14018a0a3
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000ab38
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14018a123
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x14018a349
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14018a102
mov r14d, 0x1000
jmp 0x14018a306
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x680
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14d, 0x1000
lea rdx, [0x14028a058]
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14018a2d8
lea rdx, [0x14028bc74]
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14018a2d8
test byte [rbp - 0x70], 0x10
je 0x14018a2d8
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.14000ad78
nop
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea rdx, [0x14027370c]
lea rcx, [rsp + 0x20]
call fcn.14000ae4c
nop
mov r8b, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400096d8
test al, al
sete bl
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14018a1f0
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, r14
jb 0x14018a1ea
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14018a33b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bl, bl
je 0x14018a27f
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r12w
lea rdx, [0x14027370c]
lea rcx, [rsp + 0x20]
call fcn.14000ae4c
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000ab38
nop
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14018a27f
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, r14
jb 0x14018a279
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14018a342
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rbp - 0x44]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x14018a287
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x60]
call fcn.14000ab38
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14018a2bd
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14000ad78
add qword [rdi + 8], 0x20
jmp 0x14018a2ce
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rdi
call fcn.140023f3c
nop
lea rcx, [rsp + 0x60]
call fcn.14000ac30
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14018a129
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14018a102
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
cmp rax, r14
mov rdx, rcx
jb 0x14018a0fc
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14018a0fc
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]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, eax
lea rcx, [rbp + 0x1e0]
call fcn.14018896c
lea rdx, [0x140325060]
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r9, r15
lea rcx, [rbp + 0x1e0]
call fcn.14018b0d8
lea rdx, [0x140325060]
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3