Function at 0x18012d1e0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
call fcn.18014dfb0
mov edx, 0xa
lea r12d, [rdx - 9]
lea rcx, [rsp + 0x58]
call fcn.1800e73a0
nop
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1800ea300
nop
cmp dword [rsp + 0x68], 0
jle 0x18012d583
mov rdi, qword [rsp + 0x58]
add rdi, 0x10
mov rax, qword [rdi]
movsxd r15, dword [rax - 8]
lea edx, [r15 + 0x10a]
mov rcx, rdi
call fcn.1800e5a80
mov rsi, rax
call fcn.1801279b0
test eax, eax
jne 0x18012d2af
call fcn.180127950
test eax, eax
jne 0x18012d2af
call fcn.1801279d0
test eax, eax
jne 0x18012d2af
lea r8, [0x1801c0db8]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1800e9400
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x50]
jmp 0x18012d325
call fcn.18014dfb0
lea r8, [0x1801c0db8]
mov rdx, rdi
cmp qword [0x18023cc70], 0
je 0x18012d30a
lea rcx, [rsp + 0x48]
call fcn.1800e9400
nop
mov dword [rsp + 0x28], 2
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rbx
lea edx, [r9 + 1]
mov rcx, qword [rax]
call qword [0x18023cc70]
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
jmp 0x18012d32d
lea rcx, [rsp + 0x38]
call fcn.1800e9400
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov qword [rsp + 0x30], rax
call fcn.1800e56d0
lea r13, [rsi + r15*2]
cmp rdi, 0xffffffffffffffff
je 0x18012d558
mov rdx, qword [rsp + 0xe8]
mov ebp, dword [rdx]
lea rbx, [rdx + 0x2c]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
lea r12d, [rax + 1]
lea eax, [rcx + r15 - 1]
cmp eax, 0x104
jb 0x18012d3c3
lea r8d, [r12 + 3]
lea rdx, [0x1801a75f0]
mov rcx, rsi
call fcn.1800fad54
test eax, eax
je 0x18012d3bb
lea eax, [r15 + 1]
mov r8d, eax
add r8, r8
lea rcx, [rsi + 8]
mov rdx, rsi
call fcn.1800fa0d0
lea r8d, [r12 + 3]
lea rdx, [0x1801a75f0]
mov rcx, rsi
call fcn.1800f88a0
add r15d, 4
add r13, 8
mov rdx, qword [rsp + 0xe8]
test bpl, 0x10
je 0x18012d49c
cmp word [rbx], 0x2e
jne 0x18012d3f1
movzx eax, word [rdx + 0x2e]
test ax, ax
je 0x18012d528
cmp ax, 0x2e
jne 0x18012d3f1
cmp word [rdx + 0x30], 0
je 0x18012d528
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop
movzx eax, word [rbx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x18012d400
mov ebx, dword [rsp + 0xf0]
test bl, 0x30
je 0x18012d46c
mov rdi, qword [rsp + 0x108]
test rdi, rdi
je 0x18012d43f
mov rdx, rdi
mov rcx, qword [rsp + 0xe0]
call fcn.18012a680
test eax, eax
je 0x18012d46c
lea edx, [r14 + r15]
mov r9, qword [rsp + 0x100]
mov r8d, ebp
mov rcx, rsi
call qword [rsp + 0xf8]
mov r12d, eax
test eax, eax
je 0x18012d54b
cmp eax, 2
je 0x18012d521
test bl, 0x40
jne 0x18012d521
lea ecx, [r14 + r15]
mov edx, 0x5c
mov word [rsi + rcx*2], dx
inc ecx
xor eax, eax
mov word [rsi + rcx*2], ax
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1800ea300
jmp 0x18012d521
test byte [rsp + 0xf0], 0x80
jne 0x18012d528
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop dword [rax + rax]
movzx eax, word [rbx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x18012d4c0
mov rdi, qword [rsp + 0x108]
test rdi, rdi
je 0x18012d501
mov dx, 0x5c
mov rcx, rdi
call fcn.1800f90f4
test rax, rax
cmovne rbx, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.18012a680
test eax, eax
je 0x18012d521
lea edx, [r14 + r15]
mov r9, qword [rsp + 0x100]
mov r8d, ebp
mov rcx, rsi
call qword [rsp + 0xf8]
mov r12d, eax
test eax, eax
je 0x18012d54b
xor eax, eax
mov word [r13], ax
mov rbx, qword [rsp + 0xe8]
mov rdx, rbx
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18012d336
jmp 0x18012d558
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0xe8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1800ea340
lea rcx, [rsp + 0x40]
call fcn.1800e56d0
test r12d, r12d
jne 0x18012d240
lea rcx, [rsp + 0x58]
call fcn.1800e7410
mov eax, r12d
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret