Function at 0x1400816e0
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x140116080]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rsi, rcx
mov qword [rbp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x38], 0x6f525c76
mov dword [rsp + 0x3c], 0x786f6c62
mov dword [rsp + 0x40], 0x676f6c5c
mov word [rsp + 0x44], reloc.WS2_32.dll_WSAStartup
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
lea rax, [rsp + 0x39]
mov r12, 0xffffffffffffffff
mov r8, r12
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140081780
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x50]
call fcn.14000bb30
nop
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140082040
mov dword [rsp + 0x30], 0x4001
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
movups xmmword [rsp + 0x70], xmm0
test eax, eax
js 0x140081878
lea rax, [rbp + 0x120]
mov r8, r12
inc r8
cmp word [rax + r8*2], 0
jne 0x140081864
lea rdx, [rbp + 0x120]
jmp 0x140081882
xor r8d, r8d
lea rdx, [0x1400f0a68]
lea rcx, [rsp + 0x70]
call fcn.14000b660
mov dword [rsp + 0x30], 0x4401
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x70]
lea rcx, [rbp + 0xf0]
call fcn.14001e580
mov dword [rsp + 0x30], 0x4c01
lea rcx, [rsp + 0x70]
call fcn.140009cf0
nop
lea rcx, [rbp - 0x70]
call fcn.140009cf0
nop
lea rcx, [rsp + 0x50]
call fcn.140009d60
lea rdx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 7
cmova rdx, qword [rbp + 0xf0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov r8, qword [rbp + 0x100]
lea rcx, [rbp - 0x40]
call fcn.14000b660
mov ebx, 0x7c01
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xe0]
call fcn.140067e70
nop
lea rcx, [rbp - 0x40]
call fcn.140009cf0
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov rdi, qword [rbp + 0xe8]
test rdi, rdi
je 0x14008194e
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0xe8]
mov ebx, dword [rsp + 0x30]
mov r14, qword [rbp + 0xe0]
mov qword [rbp + 0xd0], r14
mov r15, r14
mov qword [rbp + 0xd8], rdi
test rdi, rdi
je 0x140081981
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0xe8]
mov r14, qword [rbp + 0xd0]
mov ebx, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
test rdi, rdi
je 0x1400819ce
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400819bc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400819bc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsp + 0x30]
mov r14, qword [rbp + 0xd0]
mov rdi, qword [rbp + 0xe8]
test r15, r15
je 0x140081c2a
lea r15, str..log
nop
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.140081570
mov rax, qword [rbp - 0x50]
mov edx, dword [rbp - 0x48]
test edx, edx
je 0x140081a06
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140081ce2
cmp eax, 2
jne 0x140081b77
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 4
call fcn.1400d9b4c
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x50], xmm0
lea r8, [rbp + 0x50]
mov edx, eax
lea rcx, [rbp]
call fcn.140002740
or ebx, 0x60
or ebx, 2
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0xb0]
lea rcx, [r14 + 0x20]
call fcn.140067650
mov rcx, rax
or ebx, 4
mov dword [rsp + 0x30], ebx
lea rax, [rbp]
cmp qword [rbp + 0x18], 7
cmova rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x38], rax
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x60], xmm0
lea rdx, [rbp + 0x60]
call fcn.140081360
test eax, eax
jne 0x140081b77
lea rcx, [r14 + 0x20]
cmp qword [r14 + 0x38], 7
jbe 0x140081a9f
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x30]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.1400671b0
cmp rax, r11
je 0x140081afb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140081ac6
cmp cx, 0x2f
jne 0x140081acf
add rax, 2
cmp rax, r11
jne 0x140081ab7
cmp rax, r11
je 0x140081afb
nop dword [rax]
nop dword [rax + rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140081afb
cmp cx, 0x2f
je 0x140081afb
mov r10, rdx
cmp rax, rdx
jne 0x140081ae0
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov r8, r11
mov rdx, r10
lea rcx, [rbp - 0x20]
call fcn.14000b660
or ebx, 0x380
or ebx, 8
mov dword [rsp + 0x30], ebx
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x20]
call fcn.140067560
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140081b51
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
mov rcx, rax
call fcn.14000b7a0
cmp rax, 0xffffffffffffffff
je 0x140081b77
mov dil, 1
jmp 0x140081b7a
xor dil, dil
test bl, 0x10
je 0x140081b93
and ebx, 0xffffffef
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x90]
call fcn.140009d60
nop
test bl, 8
je 0x140081ba9
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x20]
call fcn.140009cf0
nop
test bl, 4
je 0x140081bc2
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0xb0]
call fcn.140009cf0
nop
test bl, 2
je 0x140081bd7
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp]
call fcn.140009cf0
test dil, dil
je 0x140081c07
lea r8, [r14 + 0x20]
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140081bfc
mov rdx, r8
mov rcx, rax
call fcn.140008210
add qword [rsi + 8], 0x20
jmp 0x140081c07
mov rdx, rax
mov rcx, rsi
call fcn.1400823b0
lea rcx, [rbp + 0xd0]
call fcn.140067fa0
mov r14, qword [rbp + 0xd0]
test r14, r14
jne 0x1400819e0
mov rdi, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140081c73
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140081c6c
mov rbx, qword [rbp + 0xd8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140081c6c
mov rcx, qword [rbp + 0xd8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp + 0xe8]
test rdi, rdi
je 0x140081ca3
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140081ca3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r12d
cmp r12d, 1
jne 0x140081ca3
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0xf0]
call fcn.140009cf0
mov rax, rsi
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.1400da3c0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [r14 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140002da0
int3