Function at 0x140041ff0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400d8080]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15d, dword [0x14015dbe8]
xor r9d, r9d
movsxd rax, dword [reloc.WS2_32.dll_getsockname]
cmp eax, 0x7b
ja 0x14004203a
lea r9, [0x14015c730]
mov r9, qword [r9 + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rcx
mov byte [rbp - 0x28], 0
test r9, r9
jne 0x14004212d
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov r8d, 0x1c4
mov eax, dword [r8 + rdx]
mov edi, 0x1d8
add rdi, rdx
test al, 1
jne 0x1400420ad
or eax, 1
mov dword [r8 + rdx], eax
mov dword [rdi + 8], 0x1eddea4
mov dword [rdi], 0x3a81c292
mov dword [rdi + 4], 0xb2ed5dc0
lea rcx, [0x1400aee00]
call fcn.1400aba8c
nop
mov rcx, qword [rbp - 0x10]
cmp byte [rdi + 0xb], 0
je 0x1400420e2
xor byte [rdi], 0xc1
xor byte [rdi + 1], 0xa7
xor byte [rdi + 2], 0xed
xor byte [rdi + 3], 0x5f
xor byte [rdi + 4], 0xa3
xor byte [rdi + 5], 0x29
xor byte [rdi + 6], 0xcd
xor byte [rdi + 7], 0xf9
xor byte [rdi + 8], 0xc1
xor byte [rdi + 9], 0xa7
xor byte [rdi + 0xa], 0xed
mov byte [rdi + 0xb], 0
mov rsi, 0xffffffffffffffff
mov r14, rsi
nop dword [rax]
inc r14
cmp byte [rdi + r14], 0
jne 0x1400420f0
cmp r14, rcx
ja 0x140042125
lea rbx, [rbp - 0x28]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x28]
mov qword [rbp - 0x18], r14
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r14], 0
jmp 0x140042176
mov r9, rdi
mov rdx, r14
jmp 0x14004216d
mov rsi, 0xffffffffffffffff
mov rbx, rsi
nop word [rax + rax]
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140042140
cmp rbx, 0xf
ja 0x14004216a
mov qword [rbp - 0x18], rbx
mov r8, rbx
mov rdx, r9
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x28], 0
jmp 0x140042176
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140036ba0
cmp r15d, 1
jne 0x140042246
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x1bc
mov eax, dword [rdx + rcx]
mov edi, 0x180
add rdi, rcx
test r15b, al
jne 0x1400421cb
or eax, r15d
mov dword [rdx + rcx], eax
mov word [rdi + 9], 0x139
mov dword [rdi], 0x4ac44bc1
mov dword [rdi + 4], 0xfca29310
mov byte [rdi + 8], 0xe8
lea rcx, [0x1400aede0]
call fcn.1400aba8c
nop
cmp byte [rdi + 0xa], 0
je 0x140042200
xor byte [rdi], 0x91
xor byte [rdi + 1], 0x39
xor byte [rdi + 2], 0xa1
xor byte [rdi + 3], 0x39
xor byte [rdi + 4], 0x63
xor byte [rdi + 5], 0xb3
xor byte [rdi + 6], 0xc9
xor byte [rdi + 7], 0x99
xor byte [rdi + 8], 0x91
xor byte [rdi + 9], 0x39
mov byte [rdi + 0xa], 0
nop dword [rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140042200
mov rax, qword [rbp - 0x10]
cmp rsi, rax
ja 0x140042237
lea rbx, [rbp - 0x28]
cmp rax, 0x10
cmovae rbx, qword [rbp - 0x28]
mov qword [rbp - 0x18], rsi
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140042246
mov r9, rdi
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.140036ba0
mov qword [rbp - 0x30], 0
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x30]
call fcn.14002d460
test al, al
je 0x140042291
test r15d, r15d
jne 0x140042291
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140041fa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400422cf
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400422ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400422ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ab3ec
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400ab020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret