Function at 0x140021370
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14011a028]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor edi, edi
mov rcx, qword [0x1401246a0]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, 1
jb 0x1400218df
lea rax, [0x140124690]
cmp qword [0x1401246a8], 0x10
cmovae rax, qword [0x140124690]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400e8298]
lea rcx, [rbp - 0x60]
call fcn.140026970
lea rdx, [rbp - 0x60]
lea rcx, [0x1401242c8]
call fcn.1400238f0
lea rcx, [rbp - 0x60]
call fcn.1400245d0
mov rcx, qword [0x140124720]
mov rax, rbx
sub rax, rcx
cmp rax, 1
jb 0x1400218df
lea rax, [0x140124710]
cmp qword [0x140124728], 0x10
cmovae rax, qword [0x140124710]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400e8298]
lea rcx, [rbp - 0x60]
call fcn.140026970
lea rdx, [rbp - 0x60]
lea rcx, [0x140124368]
call fcn.1400238f0
lea rcx, [rbp - 0x60]
call fcn.1400245d0
lea rdx, [0x1401242c8]
lea rcx, [rbp - 0x60]
call fcn.1400239f0
nop
lea rdx, [0x140124368]
lea rcx, [rbp - 0x20]
call fcn.1400239f0
nop
mov rax, qword [0x140124100]
cmp qword [0x1401240f8], rax
jne 0x1400216d5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea r8d, [rdi + 0xd]
lea rdx, str.OnTextOverlay
lea rcx, [rsp + 0x40]
call fcn.140025ca0
nop
lea rsi, [0x140003820]
mov qword [rsp + 0x20], rsi
lea r9, [0x1400037b0]
lea edx, [rdi + 0x40]
lea r8d, [rdi + 7]
lea rcx, [rbp]
call fcn.1400cd4a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], dil
mov dword [rsp + 0x60], 2
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400246a0
nop
mov eax, dword [rsp + 0x60]
mov dword [rbp], eax
mov rax, qword [rsp + 0x68]
mov qword [rbp + 8], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp + 0x20]
call fcn.1400246a0
nop
lea rcx, [rbp - 0x80]
call fcn.1400245d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400245d0
mov rax, qword [rbp - 0x50]
sub rbx, rax
cmp rbx, 0x15
jb 0x1400218e5
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], reloc.WS2_32.dll_setsockopt
lea rcx, str.Tiles_not_found__try
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140026970
nop
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.140024800
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea r8d, [rdi + 6]
lea rdx, str._tiles
lea rcx, [rsp + 0x40]
call fcn.140024800
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov dword [rbp + 0x40], 2
lea rdx, [rbp - 0x40]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x60]
call fcn.1400246a0
nop
lea rcx, [rbp - 0x40]
call fcn.1400245d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400245d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400245d0
mov dword [rsp + 0x20], edi
lea r9d, [rdi - 1]
lea r8, [rbp]
mov rcx, qword [0x140124ae0]
call fcn.1400cbd90
nop
mov r9, rsi
lea edx, [rdi + 0x40]
lea r8d, [rdi + 7]
lea rcx, [rbp]
call fcn.1400cd14c
nop
jmp 0x14002189e
cmp byte [0x140123ad0], 0
sete al
mov byte [0x140123ad0], al
test al, al
mov rax, qword [rbp - 0x50]
je 0x140021800
sub rbx, rax
cmp rbx, 0x1d
jb 0x1400218eb
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], 0x1d
lea rcx, str.World_copying_mode__wStarted.
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140026970
lea rcx, [rsp + 0x60]
call fcn.140098e70
mov byte [0x140123adb], 1
mov dword [0x14011a160], 0
mov dword [0x14011a170], 0
mov dword [0x14011a164], 0
mov dword [0x14011a158], 0
xor edx, edx
mov rax, qword [0x140124ae0]
mov ecx, dword [rax + 0x1b8]
call fcn.140098ff0
mov ecx, 1
call fcn.1400cd110
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400284e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400217f0
cmp dword [rsp + 0x48], 0
jne 0x1400217ca
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400217eb
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
jmp 0x14002189e
mov dword [rsp + 0x48], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
sub rbx, rax
cmp rbx, 0x1e
jb 0x1400218d9
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x30], 0x1e
lea rcx, str.World_copying_mode__wDisabled.
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.140026970
lea rcx, [rsp + 0x60]
call fcn.140098e70
movss xmm0, dword [0x1400f66d8]
movss dword [0x14011a160], xmm0
movss xmm1, dword [0x1400f66c8]
movss dword [0x14011a170], xmm1
movss xmm0, dword [0x1400f66b8]
movss dword [0x14011a164], xmm0
movss xmm1, dword [0x1400f66d4]
movss dword [0x14011a158], xmm1
xor edx, edx
mov rax, qword [0x140124ae0]
mov ecx, dword [rax + 0x1b8]
call fcn.140098ff0
nop
lea rcx, [rbp - 0x20]
call fcn.1400245d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400245d0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400cd0f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140003030
nop
call fcn.140003030
nop
call fcn.140003030
nop
call fcn.140003030
int3