Function at 0x14008a050
Capabilities:
Create directory
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov r14, rdx
xor edi, edi
mov dword [rsp + 0x40], edi
mov rsi, qword [0x1403630e8]
cmp byte [reloc.WS2_32.dll_accept], dil
je 0x14008a23c
lea rbx, [0x140363a00]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x14008a21a
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], dil
jne 0x14008a0e0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400044c0
nop
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x14008a148
lea rax, [rcx + 9]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x48]
add rbx, rcx
mov r8d, 9
lea rdx, str.discord_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 9], 0
lea rax, [rsp + 0x48]
jmp 0x14008a167
mov qword [rsp + 0x20], 9
lea r9, str.discord_
mov edx, 9
lea rcx, [rsp + 0x48]
call fcn.14000a9f0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov edi, 8
lea rcx, [rsi + 0x18]
lea rdx, [rbp - 0x78]
call fcn.140003a00
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14008a1da
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a1d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a1d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ec4c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14008a21a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a215
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a215
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ec4c
lea rbx, [rsi + 0x18]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14008a22b
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [reloc.WS2_32.dll_accept], 0
jmp 0x14008a240
lea rbx, [rsi + 0x18]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], 4
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov dword [rbp - 0x38], 0x6766632e
mov byte [rbp - 0x34], 0
xor esi, esi
mov qword [r14], rsi
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rsi
or edi, 1
mov dword [rsp + 0x40], edi
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x14008a6bc
cmp qword [rbx + 0x18], 0xf
jbe 0x14008a29b
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1402fc850]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rbp - 0x78]
call fcn.14000b9d0
or edi, 2
mov dword [rsp + 0x40], edi
mov r8d, 4
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.140008b50
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 4
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14008a371
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a36c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a36c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ec4c
movdqa xmm0, xmmword [0x1402ffa60]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14008a3ca
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a3bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a3bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ec4c
movdqa xmm0, xmmword [0x1402ffa60]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
cmp r13, 0xffffffffffffffff
je 0x14008a64c
nop dword [rax]
test byte [rbp - 0x10], 0x10
jne 0x14008a62d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
lea rax, [rbp + 0x1c]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14008a406
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x68]
call fcn.1400044c0
nop
lea rbx, [rsp + 0x68]
mov rdi, qword [rsp + 0x68]
mov r15, qword [rbp - 0x80]
cmp r15, 0xf
cmova rbx, rdi
mov r12, qword [rsp + 0x78]
cmp r12, 4
jb 0x14008a486
lea rsi, [r12 + rbx]
lea r8, [rsi - 3]
sub r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14008a484
nop dword [rax]
cmp dword [rax], 0x6766632e
je 0x14008a4cd
inc rax
lea r8, [rsi - 3]
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14008a460
xor esi, esi
mov rax, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14008a4d4
cmp r15, 0xf
jbe 0x14008a62d
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008a4c5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a68c
mov rcx, rdi
jmp 0x14008a628
sub rax, rbx
xor esi, esi
jmp 0x14008a48d
lea r9, [rsp + 0x68]
cmp r15, 0xf
cmova r9, rdi
movsxd rdx, eax
add r9, 5
add r9, rdx
lea rax, [rsp + 0x68]
cmp r15, 0xf
cmova rax, rdi
add rax, rdx
lea rcx, [rsp + 0x68]
cmp r15, 0xf
cmova rcx, rdi
mov rdx, rax
sub rdx, rcx
sub r9, rax
mov rax, r12
sub rax, rdx
cmp rax, r9
cmovb r9, rax
lea rcx, [rsp + 0x68]
cmp r15, 0xf
cmova rcx, rdi
add rcx, rdx
sub r12, r9
mov r8, r12
sub r8, rdx
inc r8
lea rdx, [rcx + r9]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x78], r12
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x14008a570
lea rcx, [rbp - 0x58]
call fcn.1400044c0
nop
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x14008a5ad
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [rdx + 0x10], xmm1
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
add qword [r14 + 8], 0x20
jmp 0x14008a5bd
lea r8, [rbp - 0x58]
mov rcx, r14
call fcn.140017380
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14008a5f5
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a5ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a685
call fcn.14006ec4c
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14008a62d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a628
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a68c
call fcn.14006ec4c
lea rdx, [rbp - 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14008a3e0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14008a698
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a693
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a693
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14006ec4c
mov rax, r14
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002960
int3