Function at 0x140022bc8
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r15, r8
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
lea r12d, [rbx + 7]
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp qword [rcx + 0x10], rbx
jne 0x140022c49
mov ebx, 0x8004ffff
jmp 0x140022e5c
cmp qword [rdx + 0x10], rbx
jne 0x140022c84
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000ff84
lea rax, [rsp + 0x70]
mov edi, 1
jmp 0x140022c9c
xor r9d, r9d
mov r8, rdx
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140022014
nop
mov edi, 2
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400111b0
nop
test dil, 2
je 0x140022ce3
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14000f964
nop
test dil, 1
je 0x140022cff
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14000f964
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140022e47
cmp word [rbp + 0x3c], 0x2e
je 0x140022e19
test byte [rbp + 0x10], 0x10
je 0x140022e19
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
cmp word [rbp + 0x3c], bx
jne 0x140022d5b
mov r8, rbx
jmp 0x140022d6d
lea rax, [rbp + 0x3c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140022d63
lea rdx, [rbp + 0x3c]
lea rcx, [rbp - 0x70]
call fcn.14000fde0
nop
xor r9d, r9d
lea r8, [rbp - 0x70]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.140022014
mov r14, rax
lea rax, [rsp + 0x50]
cmp rax, r14
je 0x140022db8
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000f964
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000f964
mov r14, qword [r15]
lea r9, [rsp + 0x50]
mov r8, qword [r14 + 8]
mov rdx, r14
mov rcx, r15
call fcn.140010630
mov rcx, rax
mov rdx, qword [r15 + 8]
movabs rax, 0x555555555555554
sub rax, rdx
cmp rax, 1
jb 0x140022e2f
lea rax, [rdx + 1]
mov qword [r15 + 8], rax
mov qword [r14 + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rcx
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140022e3c
jmp 0x140022d27
lea rcx, str.list_T__too_long
call fcn.1400df1fc
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140022e4c
mov ebx, 0x80004005
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.14000f964
mov eax, ebx
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0x370
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret