Function at 0x180039d90
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp edx, 1
jne 0x18003a1a1
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
lea r8d, [rdx + 6]
lea rdx, str.channel
lea rcx, [rbp + 0x17]
call fcn.18003deb0
lea rcx, [rbp + 0x17]
mov rbx, qword [rbp + 0x17]
mov rdi, qword [rbp + 0x2f]
cmp rdi, 0x10
cmovae rcx, rbx
cmp qword [rbp + 0x27], 7
jne 0x180039e27
lea r8d, [r15 + 7]
lea rdx, str.channel
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180039e27
mov sil, 1
jmp 0x180039e2a
xor sil, sil
cmp rdi, 0x10
jb 0x180039e64
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180039e5c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180039e5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1800c557c
test sil, sil
je 0x180039e95
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800e5460]
lea rdx, str.CONOUT_
lea rcx, [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x29], r15b
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r15b
jne 0x180039eb6
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.18003deb0
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x17]
call fcn.180035ba0
mov r14, rax
lea r12, [0x1802b35c0]
cmp r12, rax
je 0x180039f6d
mov rsi, qword [0x1802b35c0]
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], 0
jne 0x180039f31
nop dword [rax]
mov r8, qword [rdi + 0x10]
mov rdx, r12
mov rcx, r12
call fcn.180041a70
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x20]
call fcn.180049ea0
mov edx, 0x60
mov rcx, rbx
call fcn.1800c557c
cmp byte [rdi + 0x19], 0
je 0x180039f00
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov qword [0x1802b35c8], r15
mov rcx, qword [0x1802b35c0]
mov rax, qword [r14]
mov qword [0x1802b35c0], rax
mov qword [r14], rcx
mov rcx, qword [0x1802b35c8]
mov rax, qword [r14 + 8]
mov qword [0x1802b35c8], rax
mov qword [r14 + 8], rcx
lea rcx, [rbp + 0x17]
call fcn.18003a3b0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180039fb5
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039fb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180039fb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x180032d20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x180037820]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x180036d80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x29], 0
mov r8d, 8
lea rdx, str._gamePid
lea rcx, [rbp - 0x29]
call fcn.18003deb0
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
call fcn.180040310
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x50]
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18003a08c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a087
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a087
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
test rbx, rbx
je 0x18003a1a1
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x29], 0
mov r8d, 8
lea rdx, str._gamePid
lea rcx, [rbp - 0x29]
call fcn.18003deb0
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
call fcn.180040310
mov rdx, qword [rax]
add rdx, 0x40
lea rcx, [rbp - 9]
call fcn.18003c4d0
mov rcx, rax
call fcn.180038550
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18003a124
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a11f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a11f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x29], 0
mov r8d, 9
lea rdx, str.gameCheck
lea rcx, [rbp - 0x29]
call fcn.18003deb0
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
call fcn.18003ff40
mov rcx, qword [rax]
mov byte [rcx + 0x40], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18003a1a1
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a19c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a19c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800c52c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret