Function at 0x140017640
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 [0x1401a50c0]
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], 0x6f525c06
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 0x1400176e0
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x48]
call fcn.140005cf0
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.140018c90
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 0x1400177d1
lea rax, [rbp + 0x70]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400177c0
lea rdx, [rbp + 0x70]
jmp 0x1400177db
xor r8d, r8d
lea rdx, [0x140176b54]
lea rcx, [rbp + 0x30]
call fcn.140007530
mov dword [rsp + 0x30], 0x220001
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.1400077f0
mov dword [rsp + 0x30], 0x260001
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x140017849
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017843
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140145c24
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14001788c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140145c24
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400178dd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400178d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400178d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140145c24
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.140007530
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.1400185f0
test eax, eax
jne 0x140018094
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140017983
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001797e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001797e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140145c24
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001799f
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 0x1400179b9
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 0x1400179f8
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400179f4
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 0x1400179f4
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 0x140017f96
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140016ef0
mov rax, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140017a35
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x1400180a7
cmp eax, 2
jne 0x140017d26
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 4
call fcn.1401450cc
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140015e40
or edi, 0x60
or edi, 2
mov dword [rsp + 0x30], edi
lea r14, [r13 + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140017a84
mov rcx, qword [r14]
lea rsi, [r14 + 0x10]
mov rax, qword [rsi]
lea rdx, [rcx + rax*2]
mov rbx, rdx
call fcn.140015fc0
cmp rax, rdx
je 0x140017adc
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140017aaf
cmp cx, 0x2f
jne 0x140017ab8
add rax, 2
cmp rax, rdx
jne 0x140017aa0
cmp rax, rdx
je 0x140017adc
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x140017adc
cmp cx, 0x2f
je 0x140017adc
mov rbx, r8
cmp rax, r8
jne 0x140017ac0
mov r8d, Ordinal_60
mov rcx, rbx
call fcn.140144f00
cmp rbx, rax
je 0x140017b27
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x140017b27
cmp word [rdx], 0x2e
jne 0x140017b0f
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x140017b2a
cmp word [rcx], 0x2e
jne 0x140017b2a
jmp 0x140017b27
sub rdx, 2
cmp rbx, rdx
je 0x140017b27
cmp word [rdx], 0x2e
je 0x140017b2a
sub rdx, 2
cmp rbx, rdx
jne 0x140017b18
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.140007530
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.140016350
test eax, eax
jne 0x140017d26
cmp qword [r14 + 0x18], 7
jbe 0x140017b9c
mov r14, qword [r14]
mov rax, qword [rsi]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.140015fc0
cmp rax, rsi
je 0x140017bee
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140017bc5
cmp cx, 0x2f
jne 0x140017bce
add rax, 2
cmp rax, rsi
jne 0x140017bb6
cmp rax, rsi
je 0x140017bee
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140017bee
cmp cx, 0x2f
je 0x140017bee
mov rbx, rdx
cmp rax, rdx
jne 0x140017bd3
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.140007530
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.1401450cc
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 0x140017ce6
cmp rsi, 0x7fffffff
ja 0x140018081
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.14014513c
mov rbx, rax
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x1400180c2
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.140018460
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.14014513c
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x1400180b8
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.140005c20
cmp rax, 0xffffffffffffffff
je 0x140017d2b
mov sil, 1
jmp 0x140017d2e
mov rbx, qword [rsp + 0x60]
xor sil, sil
test dil, 0x10
je 0x140017d8c
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
cmp rbx, 0xf
jbe 0x140017d74
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017f7a
call fcn.140145c24
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r15b
jmp 0x140017d8f
xor r15d, r15d
test dil, 8
je 0x140017ded
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140017ddc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017dd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017f81
call fcn.140145c24
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
test dil, 4
je 0x140017e4b
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140017e3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017f88
call fcn.140145c24
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
test dil, 2
je 0x140017e98
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140017e98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017f8f
call fcn.140145c24
test sil, sil
je 0x140017ed0
lea r8, [r13 + 0x20]
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x140017ec0
mov rdx, r8
mov rcx, rax
call fcn.140018330
add qword [r12 + 8], 0x20
jmp 0x140017ed0
mov rdx, rax
mov rcx, r12
call fcn.1400194a0
nop dword [rax + rax]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x40]
call fcn.1401453a4
cmp eax, 0x12
je 0x140017f1e
test eax, eax
jne 0x14001808c
cmp word [rbp + 0x9c], 0x2e
jne 0x140017f10
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x140017ed0
cmp ax, 0x2e
jne 0x140017f10
cmp word [rbp + 0xa0], 0
je 0x140017ed0
lea rdx, [rbp + 0x70]
mov rcx, r13
call fcn.140017250
jmp 0x140017f6a
mov r13, r15
mov qword [rbp + 0x10], r15
mov rbx, qword [rbp + 0x18]
mov qword [rbp + 0x18], r15
test rbx, rbx
je 0x140017f6a
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140017f62
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140017f62
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 0x14001808c
jmp 0x1400179fc
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 0x140017fd5
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140017fd5
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 0x140017fd5
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 0x14001800b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001800b
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 0x14001800b
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 0x14001804e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018049
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018049
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140145c24
mov rax, r12
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140145850
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.140015b10
nop
mov edx, eax
call fcn.140016d90
nop
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140016e80
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140016e80
nop
mov ecx, dword [rsp + 0x74]
call fcn.140015df0
int3
mov ecx, dword [rsp + 0x74]
call fcn.140015df0
int3