Function at 0x140155ee0
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 0x140155fbe
cmp qword [rbx + 0x30], r13
je 0x14015614e
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x10]
call fcn.140009480
mov r8, qword [rax]
test r8, r8
jne 0x140155f40
mov r8, r13
jmp 0x140155f43
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 0x140155f76
mov qword [rbx + 0x28], r13
jmp 0x140155f7a
inc qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140155f81
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 0x140155f10
test byte [rbx + 0x50], 0x10
mov r14b, 1
je 0x1401560c3
mov ecx, 2
lea rdx, [0x140345c60]
lea r8, [rbx + 0x7c]
nop dword [rax + rax]
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140155ffe
add r8, 2
add rdx, 2
dec rcx
jne 0x140155fe0
xor r14b, r14b
jmp 0x140156102
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140155ff6
mov ecx, 3
lea rdx, [0x14034c85c]
lea r8, [rbx + 0x7c]
nop
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x14015603e
add r8, 2
add rdx, 2
dec rcx
jne 0x140156020
xor r14b, r14b
jmp 0x140156102
cmp word [r8], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
je 0x140155ff6
mov rbp, r12
inc rbp
cmp word [rbx + rbp*2 + 0x7c], r13w
jne 0x140156052
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.1402b7460
mov eax, dword [0x1403556d8]
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.1402b7390
mov r8, qword [rbx + 0x38]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call fcn.1402b6e28
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x70]
call fcn.140008cf0
jmp 0x1401560fd
lea rdx, [rbx + 0x7c]
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1401560d0
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.1402b7460
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 0x140156122
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x48], r12
test r14b, r14b
je 0x140155f10
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 0x14015612d