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

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140148060
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
jbe 0x140148081
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
lea rsi, [rax*2 + 2]
mov rcx, rsi
call qword [fcn.1401de460]
mov rbx, rax
test rax, rax
jne 0x1401480b4
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14021a050
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbx
push r14
sub rsp, 0x48
mov rbx, qword [r8 + 0xe8]
mov r14, r8
mov qword [rsp + 0x30], r12
mov r12d, ecx
mov qword [rsp + 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov qword [rsp + 0x70], rbx
test ecx, ecx
jne 0x14015986e
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x40], rsi
mov rsi, qword [r8 + 0x20]
mov qword [rsp + 0x38], rdi
test rsi, rsi
je 0x140159844
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140159752
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140159743
inc rbx
jmp 0x140159754
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140159761
lea ebp, [rax + 0xe]
jmp 0x14015976d
cmp eax, 0x17
jne 0x140159832
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140159832
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140159832
cmp rax, rbp
jb 0x140159832
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.1401de460]
mov rdi, rax
test rax, rax
je 0x1401598bc
mov ecx, dword [rsi]
mov r8, rbp
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], ebp
xor eax, eax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.14021a050
test rbx, rbx
je 0x14015981f
mov rcx, qword [rdi + 0x20]
xor edx, edx
add rcx, rbp
mov qword [rdi + 0x18], rcx
test rbx, rbx
je 0x14015981b
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 0x140159800
mov rcx, qword [rdi + 0x18]
mov byte [rcx + rbx], 0
test r15, r15
cmove r15, rdi
test r13, r13
je 0x14015982f
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x140159733
test r15, r15
jne 0x140159853
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
mov qword [r14 + 0xb0], r15
mov rcx, qword [r14 + 0x20]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
test rcx, rcx
je 0x14015988f
call qword [0x1402ebed8]
mov qword [r14 + 0x20], 0
test r12d, r12d
je 0x1401598d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1401598cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r14 + 0xa8], eax
test eax, eax
jne 0x1401598d6
mov dword [r14 + 0xa8], 8
jmp 0x1401598d6
mov rcx, r15
mov r12d, 8
call fcn.14018a530
xor r15d, r15d
jmp 0x140159853
mov dword [r14 + 0xa8], r12d
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [r14 + 0x80], 0
mov r12, qword [rsp + 0x30]
je 0x140159964
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [r14 + 0x78]
test rcx, rcx
je 0x140159912
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [r14 + 0x78]
call qword [fcn.1401de030]
mov rcx, qword [r14 + 0x88]
call qword [fcn.1401de030]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x140159930
call fcn.14018a530
mov rcx, qword [r14 + 0xa0]
cmp rcx, 0xffffffffffffffff
je case.default.0x14015995d
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
mov r8d, 0xf0
mov rcx, r14
call fcn.14021a6f0
mov rcx, rbx
add rsp, 0x48
pop r14
pop rbx
jmp qword [fcn.1401de030]
mov rcx, qword [r14 + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x140159999
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 0x140159999
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r14 + 0xa8], eax
mov rcx, qword [r14 + 0x78]
mov dword [r14 + 0x80], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401599bc
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x48
pop r14
pop rbx
ret
movabs al, byte [0x1402476]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add al, bh
ja 0x1402e73c7
add dword [rax], eax
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
ficom word [0x1402e74f7]
add al, ah
sub dword [rsi], edx
add dword [rax], eax
add byte [rax], al
xor byte [rbx], ch
invalid
add byte [rax + 0x1401629], ah
add byte [rax], al
add byte [rax + 0x1400c98], al
add byte [rax], al
add byte [rax], ah
mov esi, 0x14015
add byte [rax], al
sar byte [rsi + 0x14015], 1
add byte [rax], al
mov al, 0xbe
adc eax, 0x140
add byte [rax + 0x57], al
cmovo eax, dword [rcx]
add byte [rax], al
add al, dl
mov ebp, 0x14015
add byte [rax], al
add byte [rsi + 0x14015], bh
add byte [rax], al
nop
mov esi, 0x14015
add byte [rax], al
fdivr dword [rax + 0x24]
add dword [rax], eax
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
movabs al, byte [0x1000000001401631]
invalid