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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
xor r12d, r12d
mov r13, rcx
test rcx, rcx
je 0x14006268e
cmp dword [rcx], 0xbab1e
jne 0x14006268e
cmp byte [rcx + 0x25b], r12b
je 0x140062141
mov eax, 8
add rsp, 0x180
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x1b0], rbx
mov qword [rsp + 0x178], rsi
mov esi, 0xa
mov qword [rsp + 0x170], rdi
mov rdi, qword [rcx + 0x30]
mov qword [rsp + 0x168], r14
mov r14d, r12d
mov qword [rsp + 0x160], r15
lea r15, [rbp - 0x40]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov dword [rbp + 0xc8], esi
mov dword [rsp + 0x3c], esi
test rdi, rdi
je 0x1400621e5
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rbx, [rcx + 0xa0]
mov rdx, rbx
call fcn.140061f40
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140087860
test eax, eax
jne 0x1400623bb
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x1400621a0
mov esi, dword [rsp + 0x3c]
mov r14d, dword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov dword [rbp + 0xc8], esi
lea rdi, [r13 + 0x170]
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x140062240
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x140062239
test byte [rax + 4], 0x20
je 0x140062239
mov rcx, qword [rdi + 0x78]
mov r9, qword [rcx + 0xf8]
test r9, r9
je 0x140062239
test byte [r9 + 4], 0x20
je 0x140062239
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140062239
mov r9, qword [r9 + 0x20]
mov edx, 5
mov r8d, 2
call rax
mov byte [rdi + 0x98], 1
mov rcx, qword [rdi + 0x58]
mov ebx, r12d
movzx eax, byte [rsp + 0x40]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xa8], rax
test rcx, rcx
je 0x140062415
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
mov rcx, qword [rdi + 0x78]
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x78], rax
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call fcn.140061ca0
mov rcx, qword [rdi + 0x78]
lea rdx, [rsp + 0x58]
call fcn.1400673b0
mov rcx, qword [rdi + 0x78]
call fcn.140061be0
cmp dword [rbp - 0x80], 0
jbe 0x140062398
nop dword [rax]
movzx eax, byte [rbp + r12 - 0x7c]
and al, 1
neg al
sbb cx, cx
and cx, 0x300
movzx r13d, cx
or r13w, 0x10
test byte [rbp + r12 - 0x7c], 2
cmove r13w, cx
test r13w, r13w
je 0x140062384
mov rdi, qword [rsp + r12*8 + 0x58]
cmp r14d, 0x7fffffff
ja 0x140062318
lea edx, [r14 - 1]
movsxd rcx, edx
test edx, edx
js 0x140062318
mov rax, rcx
shl rax, 4
add rax, r15
cmp rdi, qword [rax]
je 0x1400623cf
dec edx
sub rax, 0x10
sub rcx, 1
jns 0x140062303
cmp r14d, esi
jb 0x140062371
add esi, 0x64
mov edx, reloc.WS2_32.dll_recv
mov ecx, esi
call qword [case.0x140071f61.1]
mov rbx, rax
test rax, rax
je 0x1400623dd
mov r8d, dword [rbp + 0xc8]
mov rdx, r15
shl r8, 4
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rbp + 0xa8], 0
je 0x140062361
mov rcx, r15
call qword [0x1401630a8]
mov r15, rbx
mov dword [rbp + 0xc8], esi
mov byte [rbp + 0xa8], 1
mov eax, r14d
add rax, rax
inc r14d
mov qword [r15 + rax*8], rdi
mov word [r15 + rax*8 + 8], r13w
mov eax, dword [rbp - 0x80]
inc r12
cmp r12, rax
jb 0x1400622b0
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rbp + 0xc0]
xor r12d, r12d
mov ebx, r12d
mov rcx, qword [rcx + 0x18]
mov qword [rbp + 0xc0], rcx
test rcx, rcx
jne 0x140062263
jmp 0x140062415
movzx eax, byte [rsp + 0x40]
mov ebx, 3
mov r15, qword [rsp + 0x30]
jmp 0x14006264a
movsxd rax, edx
add rax, rax
or word [r15 + rax*8 + 8], r13w
jmp 0x140062384
cmp byte [rbp + 0xa8], 0
mov ebx, 0x1b
je 0x1400623f4
mov rcx, r15
call qword [0x1401630a8]
xor ecx, ecx
xorps xmm0, xmm0
psrldq xmm0, 8
xorps xmm1, xmm1
movd r14d, xmm0
movq r15, xmm1
mov qword [rbp + 0xa8], rcx
xor r12d, r12d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + 0x88]
mov byte [rcx + 0x98], 0
test rax, rax
je 0x14006245e
test byte [rax + 4], 0x20
je 0x14006245e
mov rcx, qword [rcx + 0x78]
mov r8, qword [rcx + 0xf8]
test r8, r8
je 0x14006245e
test byte [r8 + 4], 0x20
je 0x14006245e
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14006245e
mov r8, qword [r8 + 0x20]
mov edx, 5
call rax
test ebx, ebx
je 0x14006246c
mov ebx, 3
jmp 0x140062643
mov r13d, r14d
mov rsi, r12
test r14d, r14d
je 0x14006253a
mov rdi, r15
movzx edx, word [rdi + 8]
mov ecx, 0x300
movzx eax, dx
mov r8d, 0x400
and ax, cx
neg ax
sbb ecx, ecx
and ecx, 0x29
mov ebx, ecx
or ebx, 4
test r8w, dx
cmove ebx, ecx
test dl, 0x10
je 0x140062501
mov r12, qword [rdi]
lea rax, [rbp + 0xc8]
mov rcx, r12
mov dword [rbp + 0xc8], 4
lea r9, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or ebx, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140062501
cmp dword [rbp + 0xd0], 1
jne 0x140062501
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test ebx, ebx
je 0x140062527
mov rax, qword [rbp + 0xa0]
mov r8d, ebx
mov rcx, qword [rdi]
mov rdx, qword [rax + 0x248]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x140062462
inc rsi
add rdi, 0x10
cmp rsi, r13
jb 0x14006247e
xor r12d, r12d
mov r13, qword [rbp + 0xa0]
lea r8, [rbp + 0xc8]
mov rcx, r13
lea rdx, [rsp + 0x48]
call fcn.140064e10
cmp dword [rbp + 0xc8], 0x3e7
mov edi, 0x3e8
cmovbe edi, dword [rbp + 0xc8]
test r14d, r14d
je 0x140062597
xor r8d, r8d
mov edx, r14d
mov rcx, r15
call fcn.140087460
test eax, eax
jns 0x14006258c
mov ebx, recv
jmp 0x140062643
jle 0x140062597
lea rbx, [r13 + 0x248]
jmp 0x1400625b7
lea rbx, [r13 + 0x248]
mov dword [rsp + 0x20], r12d
mov rdx, rbx
mov r9d, edi
xor r8d, r8d
mov ecx, 1
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test r14d, r14d
je 0x140062638
mov r14, qword [r13 + 0x30]
test r14, r14
je 0x140062638
nop word [rax + rax]
mov rsi, qword [r14 + 8]
mov rdi, r12
cmp dword [rsi + 0xc8], 0
jbe 0x140062628
lea rbx, [rsi + 0xa0]
nop word [rax + rax]
mov dword [rbp - 0x70], r12d
lea r8, [rbp - 0x70]
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov rdx, qword [r13 + 0x248]
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [rsi + 0xc8]
lea rbx, [rbx + 8]
inc rdi
cmp rdi, rax
jb 0x1400625f0
mov r14, qword [r14 + 0x18]
test r14, r14
jne 0x1400625d0
lea rbx, [r13 + 0x248]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
xor ebx, ebx
mov rax, qword [rbp + 0xa8]
mov r14, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x178]
test al, al
je 0x14006266f
mov rcx, r15
call qword [0x1401630a8]
mov r15, qword [rsp + 0x160]
mov eax, ebx
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop r13
pop r12
pop rbp
ret
mov eax, 1
add rsp, 0x180
pop r13
pop r12
pop rbp
ret