Function at 0x140149ad0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x40
xor r13d, r13d
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov rbx, rcx
or r12, 0xffffffffffffffff
mov qword [rax + 0x20], r15
lea esi, [r13 + 0x2a]
nop dword [rax + rax]
cmp qword [rbx + 0x48], 0xffffffffffffffff
jne 0x140149bae
cmp qword [rbx + 0x30], r13
je 0x140149d3e
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x10]
call fcn.140009350
mov r8, qword [rax]
test r8, r8
jne 0x140149b30
mov r8, r13
jmp 0x140149b33
mov r8, qword [r8]
mov rdx, qword [rax + 0x10]
mov rax, qword [r8 + 0x10]
dec rax
mov rcx, rdx
and edx, 1
shr rcx, 1
and rcx, rax
mov rax, qword [r8 + 8]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rax + rdx*8]
mov qword [rbx + 0x38], rcx
dec qword [rbx + 0x30]
jne 0x140149b66
mov qword [rbx + 0x28], r13
jmp 0x140149b6a
inc qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140149b71
mov dword [rbx + 0x40], eax
cdqe
lea rdx, [rbx + 0x50]
mov word [rcx + rax*2], si
movsxd rcx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
mov word [rax + rcx*2 + 2], r13w
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140149b00
test byte [rbx + 0x50], 0x10
mov r14b, 1
je 0x140149cb3
mov ecx, 2
lea rdx, [0x140322fd0]
lea r8, [rbx + 0x7c]
nop dword [rax + rax]
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140149bee
add r8, 2
add rdx, 2
dec rcx
jne 0x140149bd0
xor r14b, r14b
jmp 0x140149cf2
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140149be6
mov ecx, 3
lea rdx, [0x14032968c]
lea r8, [rbx + 0x7c]
nop
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140149c2e
add r8, 2
add rdx, 2
dec rcx
jne 0x140149c10
xor r14b, r14b
jmp 0x140149cf2
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140149be6
mov rbp, r12
inc rbp
cmp word [rbx + rbp*2 + 0x7c], r13w
jne 0x140149c42
movsxd rcx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
lea rdx, [rbx + 0x7c]
lea rsi, [rax + rcx*2]
movsxd rax, ebp
lea rdi, [rax + rax]
mov rcx, rsi
mov r8, rdi
call fcn.140298710
mov eax, dword [0x140331b88]
mov dword [rdi + rsi], eax
mov ecx, dword [rbx + 0x40]
add ecx, 0x104
add ecx, ebp
movsxd rdi, ecx
lea rcx, [rdi + rdi]
call fcn.140298640
mov r8, qword [rbx + 0x38]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.1402980d8
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x70]
call fcn.140008bc0
jmp 0x140149ced
lea rdx, [rbx + 0x7c]
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r13w
jne 0x140149cc0
movsxd rcx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x38]
lea rsi, [rax + rcx*2]
movsxd rax, r8d
lea rdi, [rax + rax]
mov rcx, rsi
mov r8, rdi
call fcn.140298710
mov word [rdi + rsi], r13w
mov esi, 0x2a
mov rcx, qword [rbx + 0x48]
lea rdx, [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140149d12
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x48], r12
test r14b, r14b
je 0x140149b00
mov al, 1
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
xor al, al
jmp 0x140149d1d