Function at 0x1400124a0
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 [0x1401170c0]
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], 0x6f525c54
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 0x140012540
lea rdx, [rsp + 0x39]
lea rcx, [rsp + 0x48]
call fcn.140003780
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.140013b40
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 0x140012631
lea rax, [rbp + 0x70]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140012620
lea rdx, [rbp + 0x70]
jmp 0x14001263b
xor r8d, r8d
lea rdx, [0x1400f0534]
lea rcx, [rbp + 0x30]
call fcn.1400034e0
mov dword [rsp + 0x30], 0x220001
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.1400038a0
mov dword [rsp + 0x30], 0x260001
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x1400126a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc2b8
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400126ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc2b8
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14001273d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012738
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc2b8
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.1400034e0
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.1400134a0
test eax, eax
jne 0x140012ef4
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400127e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400127de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400127de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc2b8
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400127ff
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 0x140012819
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 0x140012858
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140012854
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 0x140012854
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 0x140012df6
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140011d50
mov rax, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140012895
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140012f07
cmp eax, 2
jne 0x140012b83
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 4
call fcn.1400db9ec
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140010ca0
or edi, 0x60
or edi, 2
mov dword [rsp + 0x30], edi
lea r14, [r13 + 0x20]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400128e4
mov rcx, qword [r14]
lea rsi, [r14 + 0x10]
mov rax, qword [rsi]
lea rdx, [rcx + rax*2]
mov rbx, rdx
call fcn.140010e20
cmp rax, rdx
je 0x14001293c
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14001290f
cmp cx, 0x2f
jne 0x140012918
add rax, 2
cmp rax, rdx
jne 0x140012900
cmp rax, rdx
je 0x14001293c
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x14001293c
cmp cx, 0x2f
je 0x14001293c
mov rbx, r8
cmp rax, r8
jne 0x140012920
mov r8d, Ordinal_60
mov rcx, rbx
call fcn.1400db820
cmp rbx, rax
je 0x140012987
lea rdx, [rax - 2]
cmp rbx, rdx
je 0x140012987
cmp word [rdx], 0x2e
jne 0x14001296f
lea rcx, [rdx - 2]
cmp rbx, rcx
jne 0x14001298a
cmp word [rcx], 0x2e
jne 0x14001298a
jmp 0x140012987
sub rdx, 2
cmp rbx, rdx
je 0x140012987
cmp word [rdx], 0x2e
je 0x14001298a
sub rdx, 2
cmp rbx, rdx
jne 0x140012978
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.1400034e0
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.1400111b0
test eax, eax
jne 0x140012b83
cmp qword [r14 + 0x18], 7
jbe 0x1400129fc
mov r14, qword [r14]
mov rax, qword [rsi]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.140010e20
cmp rax, rsi
je 0x140012a4e
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140012a25
cmp cx, 0x2f
jne 0x140012a2e
add rax, 2
cmp rax, rsi
jne 0x140012a16
cmp rax, rsi
je 0x140012a4e
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140012a4e
cmp cx, 0x2f
je 0x140012a4e
mov rbx, rdx
cmp rax, rdx
jne 0x140012a33
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.1400034e0
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.1400db9ec
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 0x140012b46
cmp rsi, 0x7fffffff
ja 0x140012ee1
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.1400dba5c
mov rbx, rax
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x140012f22
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.1400132c0
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.1400dba5c
mov qword [rsp + 0x70], rax
shr rax, 0x20
test eax, eax
jne 0x140012f18
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
call fcn.14000fa00
cmp rax, 0xffffffffffffffff
je 0x140012b88
mov sil, 1
jmp 0x140012b8b
mov rbx, qword [rsp + 0x60]
xor sil, sil
test dil, 0x10
je 0x140012be9
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
cmp rbx, 0xf
jbe 0x140012bd1
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012bcc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012dda
call fcn.1400dc2b8
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r15b
jmp 0x140012bec
xor r15d, r15d
test dil, 8
je 0x140012c4a
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140012c39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012de1
call fcn.1400dc2b8
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
test dil, 4
je 0x140012ca8
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012c97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012de8
call fcn.1400dc2b8
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
test dil, 2
je 0x140012cf5
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012cf5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012def
call fcn.1400dc2b8
test sil, sil
je 0x140012d30
lea r8, [r13 + 0x20]
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x140012d1d
mov rdx, r8
mov rcx, rax
call fcn.140013190
add qword [r12 + 8], 0x20
jmp 0x140012d30
mov rdx, rax
mov rcx, r12
call fcn.140014350
nop dword [rax + rax]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x40]
call fcn.1400dbcc4
cmp eax, 0x12
je 0x140012d7e
test eax, eax
jne 0x140012eec
cmp word [rbp + 0x9c], 0x2e
jne 0x140012d70
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x140012d30
cmp ax, 0x2e
jne 0x140012d70
cmp word [rbp + 0xa0], 0
je 0x140012d30
lea rdx, [rbp + 0x70]
mov rcx, r13
call fcn.1400120b0
jmp 0x140012dca
mov r13, r15
mov qword [rbp + 0x10], r15
mov rbx, qword [rbp + 0x18]
mov qword [rbp + 0x18], r15
test rbx, rbx
je 0x140012dca
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140012dc2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140012dc2
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 0x140012eec
jmp 0x14001285c
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 0x140012e35
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140012e35
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 0x140012e35
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 0x140012e6b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140012e6b
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 0x140012e6b
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 0x140012eae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ea9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012ea9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc2b8
mov rax, r12
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400dc170
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.140010970
nop
mov edx, eax
call fcn.140011bf0
nop
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.140011ce0
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140011ce0
nop
mov ecx, dword [rsp + 0x74]
call fcn.140010c50
int3
mov ecx, dword [rsp + 0x74]
call fcn.140010c50
int3