Function at 0x140018c20
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 [0x1401a90c0]
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], 0x6f525c3e
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 0x140018cc0
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x48]
call fcn.1400068a0
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.14001a270
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 0x140018db1
lea rax, [rbp + 0x70]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140018da0
lea rdx, [rbp + 0x70]
jmp 0x140018dbb
xor r8d, r8d
lea rdx, [0x140179b94]
lea rcx, [rbp + 0x30]
call fcn.1400080e0
mov dword [rsp + 0x30], 0x220001
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.1400083a0
mov dword [rsp + 0x30], 0x260001
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x140018e29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018e23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018e23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140148954
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140018e6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018e67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018e67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140148954
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140018ebd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018eb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018eb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140148954
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.1400080e0
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.140019bd0
test eax, eax
jne 0x140019674
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140018f63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018f5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018f5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140148954
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140018f7f
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 0x140018f99
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 0x140018fd8
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140018fd4
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 0x140018fd4
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 0x140019576
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.1400184d0
mov rax, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140019015
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140019687
cmp eax, 2
jne 0x140019306
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 4
call fcn.140147dfc
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140017420
or edi, 0x60
or edi, 2
mov dword [rsp + 0x30], edi
lea r14, [r13 + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140019064
mov rcx, qword [r14]
lea rsi, [r14 + 0x10]
mov rax, qword [rsi]
lea rdx, [rcx + rax*2]
mov rbx, rdx
call fcn.1400175a0
cmp rax, rdx
je 0x1400190bc
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14001908f
cmp cx, 0x2f
jne 0x140019098
add rax, 2
cmp rax, rdx
jne 0x140019080
cmp rax, rdx
je 0x1400190bc
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x1400190bc
cmp cx, 0x2f
je 0x1400190bc
mov rbx, r8
cmp rax, r8
jne 0x1400190a0
mov r8d, Ordinal_60
mov rcx, rbx
call fcn.140147c30
cmp rbx, rax
je 0x140019107
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x140019107
cmp word [rdx], 0x2e
jne 0x1400190ef
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x14001910a
cmp word [rcx], 0x2e
jne 0x14001910a
jmp 0x140019107
sub rdx, 2
cmp rbx, rdx
je 0x140019107
cmp word [rdx], 0x2e
je 0x14001910a
sub rdx, 2
cmp rbx, rdx
jne 0x1400190f8
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.1400080e0
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.140017930
test eax, eax
jne 0x140019306
cmp qword [r14 + 0x18], 7
jbe 0x14001917c
mov r14, qword [r14]
mov rax, qword [rsi]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.1400175a0
cmp rax, rsi
je 0x1400191ce
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400191a5
cmp cx, 0x2f
jne 0x1400191ae
add rax, 2
cmp rax, rsi
jne 0x140019196
cmp rax, rsi
je 0x1400191ce
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x1400191ce
cmp cx, 0x2f
je 0x1400191ce
mov rbx, rdx
cmp rax, rdx
jne 0x1400191b3
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.1400080e0
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.140147dfc
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 0x1400192c6
cmp rsi, 0x7fffffff
ja 0x140019661
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.140147e6c
mov rbx, rax
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x1400196a2
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.140019a40
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.140147e6c
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x140019698
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.1400067d0
cmp rax, 0xffffffffffffffff
je 0x14001930b
mov sil, 1
jmp 0x14001930e
mov rbx, qword [rsp + 0x60]
xor sil, sil
test dil, 0x10
je 0x14001936c
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
cmp rbx, 0xf
jbe 0x140019354
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001934f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001955a
call fcn.140148954
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r15b
jmp 0x14001936f
xor r15d, r15d
test dil, 8
je 0x1400193cd
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400193bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400193b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019561
call fcn.140148954
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
test dil, 4
je 0x14001942b
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14001941a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019415
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019568
call fcn.140148954
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
test dil, 2
je 0x140019478
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140019478
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019473
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001956f
call fcn.140148954
test sil, sil
je 0x1400194b0
lea r8, [r13 + 0x20]
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x1400194a0
mov rdx, r8
mov rcx, rax
call fcn.140019910
add qword [r12 + 8], 0x20
jmp 0x1400194b0
mov rdx, rax
mov rcx, r12
call fcn.14001aa80
nop dword [rax + rax]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x40]
call fcn.1401480d4
cmp eax, 0x12
je 0x1400194fe
test eax, eax
jne 0x14001966c
cmp word [rbp + 0x9c], 0x2e
jne 0x1400194f0
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x1400194b0
cmp ax, 0x2e
jne 0x1400194f0
cmp word [rbp + 0xa0], 0
je 0x1400194b0
lea rdx, [rbp + 0x70]
mov rcx, r13
call fcn.140018830
jmp 0x14001954a
mov r13, r15
mov qword [rbp + 0x10], r15
mov rbx, qword [rbp + 0x18]
mov qword [rbp + 0x18], r15
test rbx, rbx
je 0x14001954a
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140019542
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140019542
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 0x14001966c
jmp 0x140018fdc
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 0x1400195b5
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400195b5
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 0x1400195b5
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 0x1400195eb
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400195eb
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 0x1400195eb
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 0x14001962e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019629
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019629
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140148954
mov rax, r12
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140148580
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.1400170f0
nop
mov edx, eax
call fcn.140018370
nop
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140018460
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140018460
nop
mov ecx, dword [rsp + 0x74]
call fcn.1400173d0
int3
mov ecx, dword [rsp + 0x74]
call fcn.1400173d0
int3