Function at 0x14018a390
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 0x14018a3d7
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 0x14018a806
cmp dword [rsp + 0x60], 0xffffffff
je 0x14018a806
test byte [rsp + 0x60], 0x10
je 0x14018a806
mov rbx, qword [rdi]
mov rsi, qword [rdi + 8]
cmp rbx, rsi
je 0x14018a429
mov rcx, rbx
call fcn.14000ac30
add rbx, 0x20
cmp rbx, rsi
jne 0x14018a411
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 0x14018a4cf
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, rsi
jb 0x14018a4c9
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14018a4c9
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 0x14018a561
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 0x14018a561
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, rsi
jb 0x14018a55b
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14018a55b
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 0x14018a56f
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 0x14018a5ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x14018a7e3
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14018a5ce
mov r14d, 0x1000
jmp 0x14018a7a0
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
test byte [rbp - 0x70], 0x10
jne 0x14018a772
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 0x14018a68a
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, r14
jb 0x14018a684
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14018a7d5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bl, bl
je 0x14018a719
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 0x14018a719
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
cmp rax, r14
jb 0x14018a713
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14018a7dc
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 0x14018a721
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x60]
call fcn.14000ab38
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14018a757
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14000ad78
add qword [rdi + 8], 0x20
jmp 0x14018a768
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 0x14018a5f5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14018a5ce
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
cmp rax, r14
mov rdx, rcx
jb 0x14018a5c8
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14018a5c8
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.14018b268
lea rdx, [0x140325060]
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r9, r15
lea rcx, [rbp + 0x1e0]
call fcn.14018b1a0
lea rdx, [0x140325060]
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3