Function at 0x140158bd0
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 0x140158cae
cmp qword [rbx + 0x30], r13
je 0x140158e3e
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x10]
call fcn.140009480
mov r8, qword [rax]
test r8, r8
jne 0x140158c30
mov r8, r13
jmp 0x140158c33
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 0x140158c66
mov qword [rbx + 0x28], r13
jmp 0x140158c6a
inc qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140158c71
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 0x140158c00
test byte [rbx + 0x50], 0x10
mov r14b, 1
je 0x140158db3
mov ecx, 2
lea rdx, [0x14034bd50]
lea r8, [rbx + 0x7c]
nop dword [rax + rax]
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140158cee
add r8, 2
add rdx, 2
dec rcx
jne 0x140158cd0
xor r14b, r14b
jmp 0x140158df2
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140158ce6
mov ecx, 3
lea rdx, [0x1403526fc]
lea r8, [rbx + 0x7c]
nop
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140158d2e
add r8, 2
add rdx, 2
dec rcx
jne 0x140158d10
xor r14b, r14b
jmp 0x140158df2
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140158ce6
mov rbp, r12
inc rbp
cmp word [rbx + rbp*2 + 0x7c], r13w
jne 0x140158d42
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.1402bd1f0
mov eax, dword [0x14035bda0]
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.1402bd120
mov r8, qword [rbx + 0x38]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.1402bcbb8
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x70]
call fcn.140008cf0
jmp 0x140158ded
lea rdx, [rbx + 0x7c]
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r13w
jne 0x140158dc0
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.1402bd1f0
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 0x140158e12
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x48], r12
test r14b, r14b
je 0x140158c00
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 0x140158e1d