Function at 0x1000186f8
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x538
mov rax, qword [0x10001f110]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r15, r9
mov r14, r8
mov r13, rdx
mov rdi, rcx
mov rcx, qword [0x10001f120]
lea rax, [0x10001f120]
cmp rcx, rax
je 0x100018759
bt dword [rcx + 0x1c], 0x1d
jae 0x100018759
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000059e0]
mov edx, 0xd
call fcn.10000e61c
lea rdx, [0x1000071b0]
lea rcx, [rsp + 0x28]
mov r9d, 1
mov r8d, 0x8b
call fcn.100018130
xor ecx, ecx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x70], rax
mov r12, rax
lea rax, [0x100005960]
mov qword [rsp + 0x60], rax
mov esi, ecx
mov dword [rsp + 0x20], ecx
mov eax, 0x9b
mov ebp, ecx
mov ebx, ecx
mov qword [rsp + 0x68], rcx
cmp rdi, rcx
jne 0x1000187bb
mov dword [rsp + 0x28], 0x80070057
mov word [rsp + 0x2e], ax
jmp 0x10001896b
mov word [rsp + 0x2c], ax
mov eax, 0x9c
cmp r13, rcx
je 0x1000187a9
mov word [rsp + 0x2c], ax
mov eax, 0x9d
cmp r14, rcx
je 0x1000187a9
mov word [rsp + 0x2c], ax
mov eax, 0x9e
cmp r15, rcx
je 0x1000187a9
mov dword [r13], ecx
mov dword [r14], ecx
mov dword [rsp + 0x28], ecx
mov dword [r15], ecx
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x250
mov word [rsp + 0x2c], ax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2d0]
xor edx, edx
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea r9, [0x100005a00]
lea rdx, [0x1000071c8]
lea rcx, [rsp + 0x60]
mov r8, rdi
call fcn.10001b3c4
mov dword [rsp + 0x28], eax
test eax, eax
mov eax, 0xaa
js 0x1000187b1
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x2d0]
mov word [rsp + 0x2c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x10001887c
mov dword [rsp + 0x20], 1
lea r9, [0x100005a00]
lea rdx, [0x1000071d8]
lea rcx, [rsp + 0x60]
mov r8, rdi
call fcn.10001b3c4
mov dword [rsp + 0x28], eax
test eax, eax
mov eax, 0xb5
js 0x1000187b1
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x80]
mov word [rsp + 0x2c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10001895d
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rdi, ecx
movzx eax, word [rsp + rdi*2 + 0xa2]
sub eax, 0x30
cmp eax, ebx
cmova ebx, eax
inc ebp
cmp ebx, 7
ja 0x100018956
cmp ebp, 7
ja 0x100018956
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100018934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
jne 0x10001893b
and dword [rsp + 0x28], 0
mov eax, 0xd8
mov word [rsp + 0x2c], ax
cmp esi, 0x12
je 0x10001895d
jmp 0x1000188e7
movzx eax, ax
or eax, 0x80070000
test esi, esi
cmovle eax, esi
mov dword [rsp + 0x28], eax
mov eax, 0xd8
jmp 0x1000187b1
mov ebp, 7
mov ebx, ebp
mov eax, dword [rsp + 0x20]
mov dword [r13], eax
mov dword [r14], ebp
mov dword [r15], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.10001ae4c
lea rcx, [rsp + 0x28]
call fcn.100018248
mov eax, edi
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.10001c420
add rsp, 0x538
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret