Function at 0x14003f400
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
sub rsp, 0x48
mov rdi, qword [r8 + 0xe8]
mov rbp, r8
mov qword [rsp + 0x68], rbx
lea rbx, [r8 + 0x20]
mov qword [rsp + 0x38], r12
mov r12d, ecx
mov qword [rsp + 0x30], r13
xor r13d, r13d
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov qword [rsp + 0x70], rdi
test ecx, ecx
jne 0x14003f58d
mov qword [rsp + 0x40], rsi
mov rsi, qword [rbx]
mov qword [rsp + 0x28], r14
test rsi, rsi
je 0x14003f564
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14003f474
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003f465
inc rbx
jmp 0x14003f476
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003f484
lea r14d, [rax + 0xe]
jmp 0x14003f491
cmp eax, 0x17
jne 0x14003f552
lea r14d, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14003f552
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14003f552
cmp rax, r14
jb 0x14003f552
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003f5dc
mov ecx, dword [rsi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rdi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14003f53f
mov rcx, qword [rdi + 0x20]
xor edx, edx
add rcx, r14
mov qword [rdi + 0x18], rcx
test rbx, rbx
je 0x14003f537
nop word [rax + rax]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rdi + 0x18]
movzx eax, byte [rax + rdx*2]
mov byte [rdx + rcx], al
inc rdx
cmp rdx, rbx
jb 0x14003f520
mov rax, qword [rdi + 0x18]
mov byte [rbx + rax], 0
test r15, r15
cmove r15, rdi
test r13, r13
je 0x14003f54f
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x14003f455
test r15, r15
jne 0x14003f573
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x70]
lea rbx, [rbp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
mov qword [rbp + 0xb0], r15
mov rcx, qword [rbx]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x30]
test rcx, rcx
je 0x14003f5ac
call qword [0x1400a8a50]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x68]
test r12d, r12d
je 0x14003f5f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14003f5ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
test eax, eax
jne 0x14003f5f6
mov dword [rbp + 0xa8], 8
jmp 0x14003f5f6
mov rcx, r15
mov r12d, 8
call fcn.14005deb0
xor r15d, r15d
jmp 0x14003f573
mov dword [rbp + 0xa8], r12d
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x80], 0
mov r12, qword [rsp + 0x38]
je 0x14003f682
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14003f631
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbp + 0x78]
call qword [str.q_b_]
mov rcx, qword [rbp + 0x88]
call qword [str.q_b_]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x14003f64f
call fcn.14005deb0
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je case.default.0x14003f67b
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
mov r8d, 0xf0
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
add rsp, 0x48
pop rdi
pop rbp
jmp qword [str.q_b_]
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x14003f6b6
xor r9d, r9d
mov byte [rsp + 0x60], 1
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003f6b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
mov rcx, qword [rbp + 0x78]
mov dword [rbp + 0x80], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003f6d8
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x48
pop rdi
pop rbp
ret
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
invalid
movabs al, byte [0x140091b]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x14004a8], ah
add byte [rax], al
add byte [rax], al
movsd dword [rdi], dword [rsi]
add al, 0x40
add dword [rax], eax
add byte [rax], al
xor byte [rax + 0x14004], ch
add byte [rax], al
mov al, 0x7f
add al, 0x40
add dword [rax], eax
add byte [rax], al
adc byte [rbp], ch
add dword [rax], eax
add byte [rax], al
cmp byte [rdi + 4], 0x40
add dword [rax], eax
add byte [rax], al
xor byte [rax + 0x14004], al
add byte [rax], al
adc byte [rax + 0x14004], al
add byte [rax], al
movabs al, byte [0x30000000014003e9]
jg 0x1400a81bf
add dword [rax], eax
add byte [rax], al
invalid
add byte [rax + 0x7f], ah
add al, 0x40
add dword [rax], eax
add byte [rax], al
invalid
add byte [rdi + 0x14009], cl
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
nop
pop rsi
invalid
add al, 0x8f
or dword [rax + 1], eax
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x140075e], dl
add byte [rax], al
add al, dh
imul eax, dword [rdi], 0x140
add byte [rax], dh
pop rbp
invalid
or byte [rdi + 0x14009], cl
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
nop
pop rsi
invalid
adc byte [rdi + 0x14009], cl
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
nop
pop rsi
invalid
movabs al, byte [0x100000001400995]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x14004a8], ah
add byte [rax], al
add byte [rax], al
add dword [rdi], 0x40
add dword [rax], eax
add byte [rax], al
push rax
test byte [rdi], al
add dword [rax], eax
add byte [rax], al
rol byte [rdx + 0x14007], 0
add byte [rax], dl
insd dword [rdi], dx
add byte [rax + 1], al
add byte [rax], al
add byte [rax + 0x140047f], al
add byte [rax], al
add byte [rax], dh
add byte [rax + rax*2], 1
add byte [rax], al
add byte [rax], dl
add byte [rax + rax*2], 1
add byte [rax], al
add byte [rax + 0x14003e9], ah
add byte [rax], al
add byte [rax], dh
jg 0x1400a845f
add dword [rax], eax
add byte [rax], al
invalid
add byte [rax + 0x7f], ah
add al, 0x40
add dword [rax], eax
add byte [rax], al
invalid
xchg rsi, rax
or dword [rax + 1], eax
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x140078a], dh
add byte [rax], al
add byte [rax - 0x78], al
invalid
add dword [rax], eax
add byte [rax], al
invalid
cmp byte [rdx + 0x14009], bl
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
jo 0x1400a848c
invalid
js 0x1400a84ec
or dword [rax + 1], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x14007a1], dl
add byte [rax], al
add byte [rax], ah
pushfq
invalid
add byte [rcx + rcx + 0x140], bl
add byte [rcx], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], ah
stosb byte [rdi], al
invalid