Function at 0x14008d510
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x480
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14011a028]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, rcx
xor r15d, r15d
xor al, al
movzx esi, al
mov r12d, 1
cmp byte [0x1401239cb], al
cmovne esi, r12d
movsxd rbx, dword [str.2d_n_n]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x14008d58f
imul rax, rax, 0x64
jmp 0x14008d5aa
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov qword [rbp - 0x40], rax
movabs rdi, 0x7fffffffffffffff
test rbx, rbx
jle 0x14008d5dd
imul rcx, rbx, 0xf4240
mov rdx, rdi
sub rdx, rcx
cmp rax, rdx
jge 0x14008d5d9
lea rdx, [rcx + rax]
mov qword [rbp - 0x40], rdx
jmp 0x14008d5dd
mov qword [rbp - 0x40], rdi
lea rcx, [rbp - 0x40]
call fcn.1400275e0
mov ecx, 0x18
call fcn.1400cd110
mov ecx, dword [0x1401239c4]
mov dword [rax], ecx
mov ecx, dword [0x140123a5c]
mov dword [rax + 4], ecx
mov byte [rax + 8], sil
lea r13, [0x14009d680]
mov qword [rax + 0x10], r13
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140028640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14008dae5
cmp dword [rsp + 0x68], 0
jne 0x14008d656
mov ecx, r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14008d679
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
lea rbx, [0x140003820]
cmp byte [0x140123a2f], 0
je 0x14008d970
mov ecx, dword [r14 + 4]
mov eax, dword [r14]
sub eax, dword [0x140123a68]
sub ecx, dword [0x140123a40]
imul ecx, ecx
imul eax, eax
add ecx, eax
cmp ecx, 0x10
jg 0x14008d7d8
movsxd rbx, dword [0x14011a078]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov r14, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp r14, 0x989680
jne 0x14008d6df
imul rax, rax, 0x64
jmp 0x14008d6fa
cqo
idiv r14
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv r14
add rax, rcx
mov qword [rbp - 0x40], rax
test rbx, rbx
jle 0x14008d723
imul rcx, rbx, 0xf4240
mov rdx, rdi
sub rdx, rcx
cmp rax, rdx
jge 0x14008d71f
lea rdx, [rcx + rax]
mov qword [rbp - 0x40], rdx
jmp 0x14008d723
mov qword [rbp - 0x40], rdi
lea rcx, [rbp - 0x40]
call fcn.1400275e0
mov ecx, 0x18
call fcn.1400cd110
mov ecx, dword [0x140123a40]
mov dword [rax], ecx
mov ecx, dword [0x140123a68]
mov dword [rax + 4], ecx
mov byte [rax + 8], sil
mov qword [rax + 0x10], r13
mov qword [rbp - 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140028640]
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 0x14008d7c7
cmp dword [rsp + 0x48], 0
jne 0x14008d791
mov ecx, r12d
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 0x14008d7b2
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rbx, [0x140003820]
jmp 0x14008d970
mov dword [rsp + 0x48], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.OnTextOverlay
lea rcx, [rsp + 0x40]
call fcn.140025ca0
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x1400037b0]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp + 0x190]
call fcn.1400cd4a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov dword [rbp - 0x80], 2
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400246a0
nop
mov eax, dword [rbp - 0x80]
mov dword [rbp + 0x190], eax
mov rax, qword [rbp - 0x78]
mov qword [rbp + 0x198], rax
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x1a0], xmm0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp + 0x1b0]
call fcn.1400246a0
nop
lea rcx, [rbp - 0x60]
call fcn.1400245d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400245d0
mov rax, qword [0x1401248c0]
sub rdi, rax
cmp rdi, 0x28
jb 0x14008daf6
lea r9, [0x1401248b0]
cmp qword [0x1401248c8], 0x10
cmovae r9, qword [0x1401248b0]
mov qword [rsp + 0x30], 0x28
lea rcx, str._9You_are__4not_in__9range_for_lamp__2__
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.140026970
nop
mov dword [rbp + 0x1d0], 2
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x1f0]
call fcn.1400246a0
nop
lea rcx, [rsp + 0x40]
call fcn.1400245d0
mov dword [rsp + 0x20], r15d
mov r9d, 0xffffffff
lea r8, [rbp + 0x190]
mov rcx, qword [0x140124ae0]
call fcn.1400cbd90
nop
mov r9, rbx
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp + 0x190]
call fcn.1400cd14c
nop
mov rax, qword [0x140124ae0]
movss xmm6, dword [rax + 0x1c0]
movss xmm7, dword [rax + 0x1c4]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov r8d, 8
lea rdx, str.OnSetPos
lea rcx, [rsp + 0x60]
call fcn.140025ca0
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x1400037b0]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp - 0x30]
call fcn.1400cd4a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov dword [rbp - 0x80], 2
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.1400246a0
nop
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x30], eax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400246a0
nop
lea rcx, [rbp - 0x60]
call fcn.1400245d0
nop
lea rcx, [rsp + 0x60]
call fcn.1400245d0
mov dword [rbp + 0x10], 3
movss dword [rbp + 0x20], xmm6
movss dword [rbp + 0x24], xmm7
mov rcx, qword [0x140124ae0]
movss dword [rcx + 0x1c0], xmm6
movss dword [rcx + 0x1c4], xmm7
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rcx + 0x1b8]
lea r8, [rbp - 0x30]
call fcn.1400cbd90
nop
mov r9, rbx
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp - 0x30]
call fcn.1400cd14c
nop
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400cd0f0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x68], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140003030
int3