Function at 0x140042090
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1608]
mov eax, 0x1708
call fcn.140056b90
sub rsp, rax
mov rax, qword [0x140098020]
xor rax, rsp
mov qword [rbp + 0x15f0], rax
mov rax, qword gs:[0x58]
mov r14, rdx
mov ebx, 4
mov r12, rcx
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1400c5168], eax
jle 0x14004211b
lea rcx, [0x1400c5168]
call fcn.140056924
cmp dword [0x1400c5168], 0xffffffff
jne 0x14004211b
lea rax, [0x14007fd60]
mov dword [0x1400c5160], 1
lea rcx, [0x1400c5168]
mov qword [0x1400c5158], rax
call fcn.1400568c4
mov eax, dword [rbx]
cmp dword [0x1400c5144], eax
jle 0x14004215e
lea rcx, [0x1400c5144]
call fcn.140056924
cmp dword [0x1400c5144], 0xffffffff
jne 0x14004215e
lea rax, [0x14007fd58]
mov dword [0x1400c5150], 2
lea rcx, [0x1400c5144]
mov qword [0x1400c5148], rax
call fcn.1400568c4
mov rdx, qword [r12]
lea rcx, [rsp + 0x28]
mov eax, 0x5c
xor r13d, r13d
mov word [rsp + 0x28], ax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
mov dword [rbp + 0x3d0], r13d
call fcn.14000a010
mov rdx, qword [rax + 8]
mov ecx, dword [rdx + 0x200]
lea eax, [rcx + 1]
mov dword [rdx + 0x200], eax
mov eax, ecx
mov ecx, 0x2a
mov word [rdx + rax*2], cx
lea rdx, [rbp + 0x1d0]
mov ebx, dword [rbp + 0x3d0]
lea rcx, [rbp + 0x5f0]
lea r8d, [rbx + rbx]
call fcn.140057f80
lea eax, [rbx + 1]
mov word [rbp + rbx*2 + 0x5f0], r13w
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x5f0]
mov word [rbp + rax*2 + 0x5f0], r13w
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400423f3
mov qword [rsp + 0x1750], rsi
mov qword [rsp + 0x1700], rdi
nop word [rax + rax]
mov esi, dword [rbp - 0x80]
lea rax, [rbp - 0x54]
shr esi, 4
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x60], rax
and esi, 1
lea rax, [rbp - 0x54]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x140042230
mov r11d, dword [0x1400c5160]
mov dword [rsp + 0x68], ebx
cmp ebx, r11d
jne 0x14004229d
mov rdi, qword [0x1400c5158]
lea r9, [rbp - 0x54]
mov eax, ebx
mov rdx, rdi
lea r9, [r9 + rax*2]
lea rax, [rbp - 0x54]
cmp rax, r9
je 0x140042290
lea r8, [rbp - 0x54]
sub r8, rdi
lea r10, [rdi + r11*2]
cmp rdx, r10
je 0x14004229d
movzx ecx, word [r8 + rdx]
movzx eax, word [rdx]
cmp ecx, eax
jne 0x14004229d
add rdx, 2
lea rax, [r8 + rdx]
cmp rax, r9
jne 0x140042272
lea rcx, [rdi + r11*2]
cmp rdx, rcx
je 0x1400423ce
mov r11d, dword [0x1400c5150]
cmp ebx, r11d
jne 0x1400422fc
mov rdi, qword [0x1400c5148]
lea r9, [rbp - 0x54]
mov ecx, ebx
mov rax, rdi
lea r9, [r9 + rcx*2]
lea rcx, [rbp - 0x54]
cmp rcx, r9
je 0x1400422ef
lea r8, [rbp - 0x54]
sub r8, rdi
lea r10, [rdi + r11*2]
cmp rax, r10
je 0x1400422fc
movzx edx, word [r8 + rax]
movzx ecx, word [rax]
cmp edx, ecx
jne 0x1400422fc
add rax, 2
lea rcx, [r8 + rax]
cmp rcx, r9
jne 0x1400422d1
lea rdx, [rdi + r11*2]
cmp rax, rdx
jne 0x1400422fc
mov al, 1
jmp 0x1400422fe
xor al, al
test al, al
jne 0x1400423ce
mov rdx, qword [r12]
lea rcx, [rsp + 0x28]
mov eax, 0x5c
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], ax
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], r13d
mov dword [rbp + 0x5e0], r13d
call fcn.14000a010
mov rdx, qword [rax + 8]
mov ecx, dword [rdx + 0x200]
lea eax, [rbx + rcx]
mov dword [rdx + 0x200], eax
lea r8, [rdx + rcx*2]
mov eax, ebx
lea rdx, [rbp - 0x54]
lea rcx, [rbp - 0x54]
lea rdx, [rdx + rax*2]
lea rax, [rbp - 0x54]
cmp rax, rdx
je 0x140042394
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [r8], ax
lea r8, [r8 + 2]
cmp rcx, rdx
jne 0x140042380
movups xmm0, xmmword [rsp + 0x60]
lea rax, [rbp + 0x3e0]
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x38]
mov eax, dword [rbp + 0x5e0]
mov rcx, r14
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x78], eax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x48], xmm0
call qword [r14 + 0x28]
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140042210
mov rdi, qword [rsp + 0x1700]
mov rsi, qword [rsp + 0x1750]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x15f0]
xor rcx, rsp
call fcn.140056280
add rsp, 0x1708
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret