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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1403835b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x2b10]
mov r14, rcx
test rax, rax
mov dword [rbp - 0x51], r8d
mov ecx, 0xa
mov qword [rbp - 0x49], rdx
mov esi, 4
mov r15, rdx
cmovne esi, ecx
xor ecx, ecx
mov qword [rbp - 0x59], rsi
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], ecx
mov word [rbp + 0x13], cx
test rax, rax
je 0x1400611dc
mov rax, qword [r14 + 0x28]
movzx esi, word [rax + 0x28]
call fcn.140275c0c
lea ecx, [rsi + 1]
cdq
idiv ecx
mov ebx, edx
call fcn.140275c0c
movzx ecx, bx
mov edi, eax
call qword [sym.imp.WS2_32.dll_htons]
xor bx, si
mov word [rbp + 7], ax
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xf7df
mov word [rbp + 9], ax
and cx, di
mov eax, 0x9005
or cx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rsi, qword [rbp - 0x59]
mov word [rbp + 0xb], ax
xor ecx, ecx
lea edx, [rcx + 8]
imul rax, qword [r14 + 0x30], 0x1d8
mov rbx, qword [r14 + 0x28]
add rax, rbx
mov dword [r14 + 0x58], ecx
cmp rbx, rax
jae 0x1400619a8
nop dword [rax]
mov eax, dword [rbx + 0x38]
test eax, eax
je 0x140061984
cmp eax, 9
je 0x140061984
mov word [r14 + 0x68], cx
lea r13, [rbx + 0xe0]
mov qword [r14 + 0x670], rcx
lea rcx, [r14 + 0xa88]
mov qword [rcx], 1
mov qword [r14 + 0x60], rsi
mov r12, qword [r13]
cmp r12, r13
je 0x1400613b9
lea rsi, [r14 + 0x6a]
lea r15, [r14 + 0x688]
lea rax, [r14 + 0x66a]
nop dword [rax + rax]
cmp rsi, rax
jae 0x14006136f
cmp r15, rcx
jae 0x14006136f
mov eax, dword [rbx + 0xd0]
sub rax, qword [r14 + 0x60]
cmp rax, 8
jb 0x14006136f
mov rdi, r12
mov r12, qword [r12]
mov qword [r15 + 8], rsi
mov qword [r15], rdx
add qword [r14 + 0x60], 8
movzx ecx, word [rdi + 0x16]
call qword [sym.imp.WS2_32.dll_htons]
mov byte [rsi], 1
movzx ecx, byte [rdi + 0x15]
mov byte [rsi + 1], cl
mov word [rsi + 2], ax
mov word [rsi + 4], ax
movzx ecx, word [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 6], ax
movzx eax, byte [rdi + 0x14]
and al, 0xf
cmp al, 4
jne 0x140061324
mov eax, dword [rbx + 0x38]
sub eax, 5
cmp eax, 1
ja 0x1400612f4
cmp dword [rbx + 0x50], 0
je 0x1400612e9
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2af0]
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2ae8]
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], 9
jne 0x140061324
mov rax, qword [r14 + 0x50]
lea rdx, [r14 + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx], rdx
mov qword [rax], rbx
mov qword [rdx + 8], rbx
mov dword [rbx + 0x140], 1
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
call qword [fcn.140275bf0]
add rsi, 0x30
lea rax, [r14 + 0x66a]
add r15, 0x10
lea rcx, [r14 + 0xa88]
mov edx, 8
cmp r12, r13
jne 0x140061260
lea rcx, [r14 + 0xa88]
jmp 0x140061377
mov dword [r14 + 0x58], 1
sub rsi, r14
sub r15, r14
sub rsi, 0x6a
sub r15, 0x678
movabs rax, 0x2aaaaaaaaaaaaaab
imul rsi
mov rsi, qword [rbp - 0x59]
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
sar r15, 4
mov qword [rcx], r15
mov r15, qword [rbp - 0x49]
mov qword [r14 + 0x670], rdx
cmp dword [rbp - 0x51], 0
je 0x1400614e8
lea r11, [rbx + 0xf0]
mov r10, qword [r11]
cmp r10, r11
je 0x1400614e8
mov eax, dword [r14 + 0x40]
sub eax, dword [rbx + 0x70]
cmp eax, 0x5265c00
jae 0x1400614e8
mov rdi, qword [rbx + 0x110]
nop
mov edx, dword [r14 + 0x40]
mov r8, r10
mov r10, qword [r10]
mov r9d, dword [r8 + 0x14]
sub edx, r9d
mov eax, r9d
sub eax, dword [r14 + 0x40]
cmp edx, 0x5265c00
cmovb eax, edx
cmp eax, dword [r8 + 0x18]
jb 0x1400614df
mov ecx, dword [rbx + 0x74]
test ecx, ecx
je 0x14006142e
mov eax, r9d
sub eax, ecx
cmp eax, 0x5265c00
jb 0x140061435
mov dword [rbx + 0x74], r9d
mov ecx, r9d
test ecx, ecx
je 0x14006147e
mov eax, dword [r14 + 0x40]
mov r9d, ecx
sub r9d, eax
mov edx, eax
sub edx, ecx
sub ecx, eax
cmp edx, 0x5265c00
cmovb ecx, edx
cmp ecx, dword [rbx + 0xb4]
jae 0x140061571
mov eax, dword [r8 + 0x1c]
cmp dword [r8 + 0x18], eax
jb 0x14006147e
cmp edx, 0x5265c00
cmovae edx, r9d
cmp edx, dword [rbx + 0xb0]
jae 0x140061571
cmp qword [r8 + 0x58], 0
je 0x140061490
movzx eax, word [r8 + 0x24]
sub dword [rbx + 0xd8], eax
inc dword [rbx + 0x80]
mov eax, dword [r8 + 0x18]
mov rcx, qword [r8 + 8]
add eax, eax
mov dword [r8 + 0x18], eax
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rcx, qword [r8]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 8]
mov qword [r8 + 8], rax
mov qword [r8], rdi
mov qword [rax], r8
mov qword [rdi + 8], r8
mov rax, qword [r11]
cmp r10, rax
jne 0x1400614df
cmp rax, r11
je 0x1400614df
mov eax, dword [r10 + 0x18]
add eax, dword [r10 + 0x14]
mov dword [rbx + 0x70], eax
cmp r10, r11
jne 0x1400613f0
lea rax, [rbx + 0x110]
cmp qword [rax], rax
je 0x140061507
mov rdx, rbx
mov rcx, r14
call fcn.140060d80
test eax, eax
je 0x1400615d7
lea rax, [rbx + 0xf0]
cmp qword [rax], rax
jne 0x1400615d7
mov edx, dword [rbx + 0x6c]
mov ecx, dword [r14 + 0x40]
sub ecx, edx
sub edx, dword [r14 + 0x40]
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [rbx + 0xa8]
jb 0x1400615d7
mov eax, dword [rbx + 0xd0]
sub rax, qword [r14 + 0x60]
cmp rax, 4
jb 0x1400615d7
cmp dword [rbx + 0x38], 5
jne 0x1400615cc
mov ecx, 0x60
mov word [rbp - 0x41], 0xff85
call qword [fcn.140275c04]
test rax, rax
jne 0x14006159c
call qword [fcn.140275b98]
jmp 0x1400615cc
mov r8, r15
mov rdx, rbx
mov rcx, r14
call fcn.14005f190
test r15, r15
je 0x14006197d
cmp dword [r15], 0
je 0x14006197d
mov eax, 1
jmp 0x1400619c1
movups xmm0, xmmword [rbp - 0x41]
xor ecx, ecx
mov rdx, rax
movups xmm1, xmmword [rbp - 0x31]
mov dword [rax + 0x20], ecx
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], cx
movups xmm0, xmmword [rbp - 0x21]
mov qword [rax + 0x58], rcx
mov rcx, rbx
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.14005e800
mov rdx, rbx
mov rcx, r14
call fcn.140060d80
lea r13, [rbx + 0x120]
cmp qword [r13], r13
je 0x1400615ef
mov rdx, rbx
mov rcx, r14
call fcn.140060a40
cmp qword [r14 + 0x670], 0
je 0x14006197d
mov ecx, dword [rbx + 0x78]
mov edx, dword [r14 + 0x40]
test ecx, ecx
jne 0x14006164c
mov dword [rbx + 0x78], edx
xor r15d, r15d
cmp word [r14 + 0x68], 0
lea rax, [rbp + 7]
mov rdx, qword [r14 + 0x2b10]
mov qword [r14 + 0x680], rax
jge 0x1400616e9
movzx ecx, word [r14 + 0x40]
test rdx, rdx
je 0x1400616da
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xf], ax
mov rax, rsi
jmp 0x1400616f9
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x14006160b
mov ecx, dword [rbx + 0x7c]
test ecx, ecx
je 0x14006160b
mov eax, dword [rbx + 0x80]
xor edx, edx
mov r9d, dword [rbx + 0x88]
shl eax, 0x10
div ecx
mov edx, dword [rbx + 0x84]
mov ecx, r9d
shr ecx, 2
mov r8d, eax
sub r9d, ecx
cmp eax, edx
jb 0x1400616a1
mov ecx, eax
sub ecx, edx
shr ecx, 3
add edx, ecx
sub r8d, edx
jmp 0x1400616b3
mov eax, edx
sub eax, r8d
shr eax, 3
sub edx, eax
mov eax, edx
sub eax, r8d
mov r8d, eax
mov dword [rbx + 0x84], edx
shr r8d, 2
xor r15d, r15d
lea eax, [r8 + r9]
mov dword [rbx + 0x88], eax
mov eax, dword [r14 + 0x40]
mov dword [rbx + 0x78], eax
mov qword [rbx + 0x7c], r15
jmp 0x14006160e
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 9], ax
mov rax, rsi
jmp 0x1400616f9
test rdx, rdx
mov eax, 2
mov ecx, 8
cmovne eax, ecx
mov qword [r14 + 0x678], rax
mov rsi, r15
mov rcx, qword [r14 + 0xa98]
test rcx, rcx
je 0x140061762
mov r10, qword [r14 + 0xaa0]
test r10, r10
je 0x140061762
mov rdi, qword [r14 + 0x60]
lea rax, [r14 + 0x1ab8]
mov r8, qword [r14 + 0xa88]
lea rdx, [r14 + 0x688]
sub rdi, 4
dec r8
mov qword [rsp + 0x28], rdi
mov r9, rdi
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x140061762
cmp rax, rdi
jae 0x140061762
mov ecx, 0x4000
mov rsi, rax
or word [r14 + 0x68], cx
mov eax, 0xfff
cmp word [rbx + 0x18], ax
jae 0x14006177a
movzx eax, byte [rbx + 0x20]
shl ax, 0xc
or word [r14 + 0x68], ax
movzx ecx, word [r14 + 0x68]
or cx, word [rbx + 0x18]
cmp qword [r14 + 0x2b10], 0
je 0x140061799
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xd], ax
jmp 0x1400617a3
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 7], ax
mov r8, qword [r14 + 0xa90]
test r8, r8
je 0x1400617e8
lea rcx, [r14 + 0x678]
mov eax, 0xfff
mov rdx, qword [rcx]
lea rdi, [rbp + 7]
add rdi, rdx
cmp word [rbx + 0x18], ax
jae 0x1400617d0
mov eax, dword [rbx + 0x1c]
jmp 0x1400617d3
mov eax, r15d
mov dword [rdi], eax
lea rax, [rdx + 4]
mov rdx, qword [r14 + 0xa88]
mov qword [rcx], rax
call r8
mov dword [rdi], eax
mov ecx, 2
test rsi, rsi
je 0x14006180e
lea rax, [r14 + 0x1ab8]
mov qword [r14 + 0x688], rsi
mov qword [r14 + 0x690], rax
mov qword [r14 + 0xa88], rcx
mov eax, dword [r14 + 0x40]
lea rdi, [rbx + 0x24]
mov dword [rbx + 0x68], eax
mov rsi, qword [r14 + 0xa88]
mov r15, qword [r14]
test rdi, rdi
je 0x140061846
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov word [rbp - 9], cx
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 7], ax
mov eax, dword [rdi]
mov dword [rbp - 5], eax
mov ecx, 0
lea rdx, [r14 + 0x678]
mov qword [rsp + 0x40], rcx
mov rax, rdi
neg rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 9]
mov r8d, esi
sbb r9d, r9d
and r9d, 0x10
mov dword [rsp + 0x30], r9d
test rdi, rdi
lea r9, [rbp - 0x11]
cmove rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1400618a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r12d, r12d
jmp 0x1400618ad
mov r12d, dword [rbp - 0x11]
lea r15, [rbx + 0x100]
mov rdi, qword [r15]
cmp rdi, r15
je 0x14006196a
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x140061927
dec qword [rax]
mov rax, qword [rdi + 0x58]
cmp qword [rax], 0
jne 0x140061927
or dword [rax + 8], 0x100
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x140061927
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140061909
mov rcx, rsi
call rax
test byte [rsi + 8], 4
jne 0x14006191e
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14006191e
call qword [fcn.140275bf0]
mov rcx, rsi
call qword [fcn.140275bf0]
mov rcx, rdi
call qword [fcn.140275bf0]
mov rdi, qword [r15]
cmp rdi, r15
jne 0x1400618c0
cmp dword [rbx + 0x38], 6
jne 0x14006196a
lea rax, [rbx + 0x110]
cmp qword [rax], rax
jne 0x14006196a
cmp qword [r13], r13
jne 0x14006196a
lea rax, [rbx + 0xf0]
cmp qword [rax], rax
jne 0x14006196a
mov edx, dword [rbx + 0x1c8]
mov rcx, rbx
call fcn.14005e620
test r12d, r12d
js 0x1400619b8
add dword [r14 + 0x2ad0], r12d
inc dword [r14 + 0x2ad4]
mov edx, 8
xor ecx, ecx
imul rax, qword [r14 + 0x30], 0x1d8
mov r15, qword [rbp - 0x49]
add rbx, 0x1d8
add rax, qword [r14 + 0x28]
mov rsi, qword [rbp - 0x59]
cmp rbx, rax
jb 0x140061200
cmp dword [r14 + 0x58], 0
je 0x1400619bf
mov rsi, qword [rbp - 0x59]
jmp 0x1400611e1
mov eax, 0xffffffff
jmp 0x1400619c1
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140266a80
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret