Function at 0x14008ce20
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x578]
sub rsp, 0x678
mov rsi, rcx
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rdi, [0x14008cdf0]
mov rcx, rsi
test eax, eax
mov qword [0x140191050], rdi
lea rbx, [0x14008cd30]
lea rdx, [0x140191040]
mov qword [0x140191058], rbx
setns r14b
call fcn.140022290
lea rdx, [0x1401910a0]
mov qword [0x1401910b0], rdi
mov rcx, rsi
mov qword [0x1401910b8], rbx
call fcn.140022290
lea rdx, [0x140191100]
mov qword [0x140191110], rdi
mov rcx, rsi
mov qword [0x140191118], rbx
call fcn.140022290
call fcn.14008b770
test al, al
je 0x14008cf1f
mov rcx, qword [0x1401a9138]
lea rdx, str.WMCreateProfileManager
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008cf1f
xor r13d, r13d
lea rcx, [rbp + 0x5c8]
mov qword [rbp + 0x5c8], r13
call rax
mov rcx, qword [rbp + 0x5c8]
test rcx, rcx
je 0x14008cf1f
mov qword [rbp + 0x5c0], r13
lea r8, [rbp + 0x5c0]
mov rax, qword [rcx]
lea rdx, [0x14014c220]
call qword [rax]
test eax, eax
jns 0x14008cf37
mov rcx, qword [rbp + 0x5c8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, rsi
call fcn.14008a9e0
add rsp, 0x678
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x5c0]
lea r8, [rbp + 0x5b8]
mov dword [rbp + 0x5b8], r13d
lea rdx, str.auds
mov qword [rsp + 0x6b0], r12
mov qword [rsp + 0x670], r15
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebx, r13d
cmp dword [rbp + 0x5b8], ebx
jbe 0x14008cf9c
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rbp + 0x5c0]
mov r8d, ebx
mov rcx, rsi
call fcn.14008a490
inc ebx
cmp ebx, dword [rbp + 0x5b8]
jb 0x14008cf80
mov rcx, qword [rbp + 0x5c0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x400
call fcn.1400ba240
mov r8d, 0x400
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r15, 0xffffffffffffffff
lea rcx, [rbp + 0x170]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14008cfe3
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea rax, [rbp + 0x170]
cmp rcx, rax
jb 0x14008d022
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x14008d022
cmp ax, 0x2f
je 0x14008d022
sub rcx, 2
lea rax, [rbp + 0x170]
cmp rcx, rax
jae 0x14008d003
movsd xmm0, qword [str..prx]
lea rdx, [rsp + 0x20]
mov eax, dword [0x14014c9f8]
mov ebx, r13d
movsd qword [rcx + 2], xmm0
mov dword [rcx + 0xa], eax
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, r15
je 0x14008d091
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov rcx, r15
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x14008d070
add ecx, 0xfffffffd
lea rdx, [rsp + 0x20]
add ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008d060
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r12, [0x14008cd90]
mov qword [0x140191188], r12
test ebx, ebx
je 0x14008d14e
lea eax, [rbx + 5]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400b609c
lea rdx, [rsp + 0x20]
mov qword [0x140191190], rax
lea rcx, [rbp + 0x170]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, r15
je 0x14008d13f
nop
lea rax, [rsp + 0x4c]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x4c]
movzx edx, word [rcx]
mov word [r8 + rcx], dx
lea rcx, [rcx + 2]
test dx, dx
jne 0x14008d100
mov rax, r15
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14008d114
cdqe
lea rdx, [rsp + 0x20]
lea rbx, [rbx + rax*2]
mov rcx, rdi
mov word [rbx - 8], r13w
add rbx, 0xfffffffffffffffa
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008d0f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov word [rbx], r13w
jmp 0x14008d15c
lea rax, str.No_profiles__.prx_files__found_
mov qword [0x140191190], rax
lea rdx, [0x140191160]
mov dword [0x14019119c], 8
mov rcx, rsi
mov dword [0x1401911a0], r15d
call fcn.140022290
cmp byte [0x140190fc1], r13b
je 0x14008d26b
mov rax, qword [str.16_kbps__16_kHz__mono]
lea rbx, str.16_kbps__16_kHz__mono
mov dword [0x1401911fc], 2
mov r8d, 1
mov qword [0x1401911e8], r12
mov dword [0x140191200], 0xfffffffc
test rax, rax
je 0x14008d1e2
mov rdx, r13
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x14008d1c3
inc ecx
inc rdx
add r8d, ecx
lea rcx, [rdx + rdx*2]
mov rax, qword [rbx + rcx*8]
test rax, rax
jne 0x14008d1c0
movsxd rcx, r8d
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400b609c
mov rcx, qword [str.16_kbps__16_kHz__mono]
mov r8, rax
mov qword [0x1401911f0], rax
test rcx, rcx
je 0x14008d258
mov r9, r13
mov rdx, r8
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x14008d220
mov rax, r15
inc rax
cmp word [r8 + rax*2], r13w
jne 0x14008d236
inc eax
inc r9
cdqe
lea r8, [r8 + rax*2]
lea rax, [r9 + r9*2]
mov rcx, qword [rbx + rax*8]
test rcx, rcx
jne 0x14008d212
lea rdx, [0x1401911c0]
mov word [r8], r13w
mov rcx, rsi
call fcn.140022290
mov rcx, qword [rbp + 0x5c8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r15, qword [rsp + 0x670]
mov r12, qword [rsp + 0x6b0]
test r14b, r14b
je 0x14008cf27
call qword [sym.imp.ole32.dll_CoUninitialize]
add rsp, 0x678
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret