Function at 0x140017b50
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 - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x1401a80c0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov r12, rcx
mov qword [rbp], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x38], 0x6f525c37
mov dword [rsp + 0x3c], 0x786f6c62
mov dword [rsp + 0x40], 0x676f6c5c
mov word [rsp + 0x44], reloc.WS2_32.dll_WSAStartup
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x39]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140017bf0
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x48]
call fcn.140006d00
nop
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r8, qword [rsp + 0x48]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov r8, rbx
lea rcx, [rbp - 0x80]
call fcn.1400191a0
mov dword [rsp + 0x30], 0x200001
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rax, qword [rbp - 0x80]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r8, qword [rsp + 0x48]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
movups xmmword [rbp + 0x30], xmm0
test eax, eax
js 0x140017ce1
lea rax, [rbp + 0x70]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140017cd0
lea rdx, [rbp + 0x70]
jmp 0x140017ceb
xor r8d, r8d
lea rdx, [0x140178bd4]
lea rcx, [rbp + 0x30]
call fcn.140008540
mov dword [rsp + 0x30], 0x220001
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.140008800
mov dword [rsp + 0x30], 0x260001
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x140017d59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017d53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140146f44
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140017d9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017d97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140146f44
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140017ded
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017de8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017de8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140146f44
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov r8, qword [rbp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140008540
mov edi, 0x3e0001
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140018b00
test eax, eax
jne 0x1400185a4
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140017e93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017e8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140146f44
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140017eaf
lock inc dword [rcx + 8]
mov rcx, qword [rbp + 0x28]
mov edi, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x10], xmm0
test rcx, rcx
je 0x140017ec9
lock inc dword [rcx + 8]
mov rcx, qword [rbp + 0x28]
mov edi, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
test rcx, rcx
je 0x140017f08
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140017f04
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140017f04
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x30]
mov r13, qword [rbp + 0x10]
lea rbx, str..log
test r13, r13
je 0x1400184a6
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140017400
mov rax, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140017f45
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x1400185b7
cmp eax, 2
jne 0x140018236
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 4
call fcn.1401463ec
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140016350
or edi, 0x60
or edi, 2
mov dword [rsp + 0x30], edi
lea r14, [r13 + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140017f94
mov rcx, qword [r14]
lea rsi, [r14 + 0x10]
mov rax, qword [rsi]
lea rdx, [rcx + rax*2]
mov rbx, rdx
call fcn.1400164d0
cmp rax, rdx
je 0x140017fec
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140017fbf
cmp cx, 0x2f
jne 0x140017fc8
add rax, 2
cmp rax, rdx
jne 0x140017fb0
cmp rax, rdx
je 0x140017fec
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x140017fec
cmp cx, 0x2f
je 0x140017fec
mov rbx, r8
cmp rax, r8
jne 0x140017fd0
mov r8d, Ordinal_60
mov rcx, rbx
call fcn.140146220
cmp rbx, rax
je 0x140018037
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x140018037
cmp word [rdx], 0x2e
jne 0x14001801f
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x14001803a
cmp word [rcx], 0x2e
jne 0x14001803a
jmp 0x140018037
sub rdx, 2
cmp rbx, rdx
je 0x140018037
cmp word [rdx], 0x2e
je 0x14001803a
sub rdx, 2
cmp rbx, rdx
jne 0x140018028
mov rdx, rax
sub rax, rdx
sar rax, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.140008540
or edi, 0x380
or edi, 4
mov dword [rsp + 0x30], edi
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140016860
test eax, eax
jne 0x140018236
cmp qword [r14 + 0x18], 7
jbe 0x1400180ac
mov r14, qword [r14]
mov rax, qword [rsi]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.1400164d0
cmp rax, rsi
je 0x1400180fe
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400180d5
cmp cx, 0x2f
jne 0x1400180de
add rax, 2
cmp rax, rsi
jne 0x1400180c6
cmp rax, rsi
je 0x1400180fe
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400180fe
cmp cx, 0x2f
je 0x1400180fe
mov rbx, rdx
cmp rax, rdx
jne 0x1400180e3
sub rsi, rbx
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140008540
or edi, 0x1c000
or edi, 8
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r14, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x70]
call fcn.1401463ec
mov r15d, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor edx, edx
mov qword [rsp + 0x58], rdx
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x48], dl
bts edi, 0xd
mov dword [rsp + 0x30], edi
test rsi, rsi
je 0x1400181f6
cmp rsi, 0x7fffffff
ja 0x140018591
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.14014645c
mov rbx, rax
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x1400185d2
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.140018970
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r9, qword [rsp + 0x48]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.14014645c
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x1400185c8
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
btr edi, 0xd
or edi, 0x1c10
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
cmova rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], 6
lea r9, str.Player
xor r8d, r8d
call fcn.140006c30
cmp rax, 0xffffffffffffffff
je 0x14001823b
mov sil, 1
jmp 0x14001823e
mov rbx, qword [rsp + 0x60]
xor sil, sil
test dil, 0x10
je 0x14001829c
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
cmp rbx, 0xf
jbe 0x140018284
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001827f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001848a
call fcn.140146f44
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r15b
jmp 0x14001829f
xor r15d, r15d
test dil, 8
je 0x1400182fd
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400182ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400182e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018491
call fcn.140146f44
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
test dil, 4
je 0x14001835b
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14001834a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018345
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018498
call fcn.140146f44
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
test dil, 2
je 0x1400183a8
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400183a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400183a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001849f
call fcn.140146f44
test sil, sil
je 0x1400183e0
lea r8, [r13 + 0x20]
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x1400183d0
mov rdx, r8
mov rcx, rax
call fcn.140018840
add qword [r12 + 8], 0x20
jmp 0x1400183e0
mov rdx, rax
mov rcx, r12
call fcn.1400199b0
nop dword [rax + rax]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x40]
call fcn.1401466c4
cmp eax, 0x12
je 0x14001842e
test eax, eax
jne 0x14001859c
cmp word [rbp + 0x9c], 0x2e
jne 0x140018420
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x1400183e0
cmp ax, 0x2e
jne 0x140018420
cmp word [rbp + 0xa0], 0
je 0x1400183e0
lea rdx, [rbp + 0x70]
mov rcx, r13
call fcn.140017760
jmp 0x14001847a
mov r13, r15
mov qword [rbp + 0x10], r15
mov rbx, qword [rbp + 0x18]
mov qword [rbp + 0x18], r15
test rbx, rbx
je 0x14001847a
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140018472
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140018472
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x30]
mov r13, qword [rbp + 0x10]
mov eax, r15d
test eax, eax
jne 0x14001859c
jmp 0x140017f0c
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp + 0x18]
mov rsi, 0xffffffffffffffff
test rcx, rcx
je 0x1400184e5
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400184e5
mov rbx, qword [rbp + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400184e5
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001851b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001851b
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14001851b
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x14001855e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018559
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018559
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140146f44
mov rax, r12
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140146b70
lea r11, [rsp + 0x3d0]
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
mov ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.140016020
nop
mov edx, eax
call fcn.1400172a0
nop
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140017390
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140017390
nop
mov ecx, dword [rsp + 0x74]
call fcn.140016300
int3
mov ecx, dword [rsp + 0x74]
call fcn.140016300
int3