Function at 0x140004ea0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400eb0c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
mov rcx, qword [rcx + 0x10]
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
sub rax, rcx
cmp rax, 8
jb 0x1400051bd
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140004efa
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 8
lea r9, str.sc_stop
mov r8, rbx
movzx edx, byte [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.140003420
nop
mov rcx, qword [rbx + 0x10]
mov rax, rsi
sub rax, rcx
cmp rax, 9
jb 0x1400051b7
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140004f46
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str.sc_start
mov r8, rbx
movzx edx, byte [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140003420
nop
mov ecx, 8
call fcn.1400bcc80
lea rcx, [rbp + 0x27]
mov qword [rax], rcx
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140007420]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400051a8
lea rcx, [rbp - 0x29]
call fcn.140004030
movabs r8, 0x7fffffff88ca6bff
mov rax, qword [rbp - 0x29]
cmp rax, r8
je 0x140004fed
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140004fed
add rax, 0x77359400
mov qword [rbp - 0x29], rax
jmp 0x140004ff1
mov qword [rbp - 0x29], rsi
lea rcx, [rbp - 0x29]
call fcn.140007370
mov ecx, 8
call fcn.1400bcc80
lea rcx, [rbp + 7]
mov qword [rax], rcx
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140007420]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x140005199
cmp dword [rbp - 0x11], 0
je 0x14000518d
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x11], eax
je 0x140005181
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140005175
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
cmp dword [rbp - 1], eax
je 0x14000518d
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 1], eax
je 0x140005181
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x29], xmm0
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140005175
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
cmp dword [rbp - 0x11], eax
je 0x1400050c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140005102
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bccc4
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140005150
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000514b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000514b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bccc4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400bcc60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 1], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x11], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.1400013c0
nop
call fcn.1400013c0
int3