Function at 0x1800c3870
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, rdx
mov rdi, rcx
call fcn.180082a20
mov edx, 0xa
lea r13d, [rdx - 9]
lea rcx, [rsp + 0x68]
call fcn.180039220
nop
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.18003d740
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.18003c900
nop
lea rcx, [rsp + 0x38]
call fcn.18003add0
nop dword [rax + rax]
cmp dword [rsp + 0x78], 0
jle 0x1800c3c47
mov rdi, qword [rsp + 0x68]
add rdi, 0x10
mov rax, qword [rdi]
movsxd rbx, dword [rax - 8]
mov dword [rsp + 0x30], ebx
lea edx, [rbx + 0x10a]
mov rcx, rdi
call fcn.18003b130
mov rsi, rax
call fcn.180078d80
test eax, eax
jne 0x1800c3962
call fcn.180078d20
test eax, eax
jne 0x1800c3962
call fcn.180078da0
test eax, eax
jne 0x1800c3962
lea r8, [0x1800e4d58]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.18003da30
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x58]
jmp 0x1800c39d8
call fcn.180082a20
lea r8, [0x1800e4d58]
mov rdx, rdi
cmp qword [0x180156dd8], 0
je 0x1800c39bd
lea rcx, [rsp + 0x48]
call fcn.18003da30
nop
mov dword [rsp + 0x28], 2
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, r15
lea edx, [r9 + 1]
mov rcx, qword [rax]
call qword [0x180156dd8]
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
jmp 0x1800c39e0
lea rcx, [rsp + 0x60]
call fcn.18003da30
mov rdx, r15
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x60]
mov rdi, rax
mov qword [rsp + 0x38], rax
call fcn.18003add0
lea r12, [rsi + rbx*2]
nop dword [rax]
cmp rdi, 0xffffffffffffffff
je 0x1800c3c1c
mov ebp, dword [r15]
lea rbx, [r15 + 0x2c]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
lea r13d, [rax + 1]
mov edi, dword [rsp + 0x30]
lea eax, [rcx + rdi - 1]
cmp eax, 0x104
jb 0x1800c3a71
lea r8d, [r13 + 3]
lea rdx, [0x1800e3c20]
mov rcx, rsi
call fcn.1800b8c04
test eax, eax
je 0x1800c3a71
lea eax, [rdi + 1]
mov r8d, eax
add r8, r8
lea rcx, [rsi + 8]
mov rdx, rsi
call fcn.18004b380
lea r8d, [r13 + 3]
lea rdx, [0x1800e3c20]
mov rcx, rsi
call fcn.18004a580
add edi, 4
mov dword [rsp + 0x30], edi
add r12, 8
test bpl, 0x10
je 0x1800c3b70
cmp word [rbx], 0x2e
jne 0x1800c3aa1
movzx eax, word [r15 + 0x2e]
test ax, ax
je 0x1800c3bfc
cmp ax, 0x2e
jne 0x1800c3aa1
cmp word [r15 + 0x30], 0
je 0x1800c3bfc
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 0x1800c3ab0
mov ebx, dword [rsp + 0xf0]
test bl, 0x30
je 0x1800c3b21
mov rax, qword [rsp + 0x108]
test rax, rax
je 0x1800c3aef
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1800c0d10
test eax, eax
je 0x1800c3b21
mov edi, dword [rsp + 0x30]
lea edx, [r14 + rdi]
mov r9, qword [rsp + 0x100]
mov r8d, ebp
mov rcx, rsi
call qword [rsp + 0xf8]
mov r13d, eax
test eax, eax
je 0x1800c3c17
cmp eax, 2
jne 0x1800c3b25
jmp 0x1800c3bf5
mov edi, dword [rsp + 0x30]
test bl, 0x40
jne 0x1800c3bf5
lea ecx, [r14 + rdi]
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 + 0x40]
call fcn.18003d740
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.18003c900
nop
lea rcx, [rsp + 0x40]
call fcn.18003add0
jmp 0x1800c3bf5
test byte [rsp + 0xf0], 0x80
jne 0x1800c3bfc
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, word [rbx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x1800c3b90
mov rdi, qword [rsp + 0x108]
test rdi, rdi
je 0x1800c3bd1
mov dx, 0x5c
mov rcx, rdi
call fcn.18004ba34
test rax, rax
cmovne rbx, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1800c0d10
test eax, eax
je 0x1800c3bf5
mov ebx, dword [rsp + 0x30]
lea edx, [r14 + rbx]
mov r9, qword [rsp + 0x100]
mov r8d, ebp
mov rcx, rsi
call qword [rsp + 0xf8]
mov r13d, eax
test eax, eax
je 0x1800c3c17
xor eax, eax
mov word [r12], ax
mov rdx, r15
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800c39f0
jmp 0x1800c3c1c
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.18003f150
lea rcx, [rsp + 0x50]
call fcn.18003add0
test r13d, r13d
jne 0x1800c38f0
lea rcx, [rsp + 0x68]
call fcn.18003c840
mov eax, r13d
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret