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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x1e0]
lea rbp, [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov r12d, r8d
xor eax, eax
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x3c], r8d
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov r15, rcx
mov qword [rsp + 0x58], rcx
mov r14d, eax
mov dword [rsp + 0x38], eax
mov r13d, eax
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x30], al
test rcx, rcx
je 0x14022ed18
cmp dword [rcx], 0xbab1e
jne 0x14022ed18
cmp byte [rcx + 0x182], al
je 0x14022e6e2
mov eax, 8
jmp 0x14022e7f4
test r9d, r9d
jns 0x14022e6f1
mov eax, 0xa
jmp 0x14022e7f4
mov qword [rsp + 0x180], rbx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x178], rsi
mov esi, 1
test rbx, rbx
je 0x14022e791
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.14022d1c0
mov r10d, eax
lea r8, [rsp + 0x98]
mov eax, esi
xor r9d, r9d
mov rdx, 0xffffffffffffffff
test r10d, eax
je 0x14022e75a
mov rcx, qword [r8]
cmp rcx, rdx
jae 0x14022e75a
inc r14d
mov rdx, rcx
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x14022e773
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
jae 0x14022e773
inc r14d
mov rdx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14022e788
inc r9d
rol eax, 1
add r8, 8
cmp r9d, 5
jb 0x14022e740
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14022e720
lea rdx, [rsp + 0x34]
mov rcx, r15
call fcn.14022e540
mov eax, dword [rsp + 0x34]
test eax, eax
js 0x14022e7b3
mov ecx, dword [rsp + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov dword [rsp + 0x40], ecx
cmp byte [rsp + 0x1f0], r13b
lea eax, [r12 + r14]
lea ecx, [rax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x14022e81b
shl rcx, 4
call qword [fcn.140299e90]
mov qword [rsp + 0x48], rax
mov rbp, rax
test rax, rax
jne 0x14022e816
lea eax, [rbp + 3]
mov rbx, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140283120
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov byte [rsp + 0x30], sil
xor r8d, r8d
mov dword [rsp + 0x34], r8d
mov r12d, r8d
test r14d, r14d
je 0x14022e946
mov r13, qword [r15 + 8]
test r13, r13
je 0x14022ea53
nop dword [rax]
lea rdx, [rsp + 0x98]
mov rcx, r13
call fcn.14022d1c0
mov r15d, eax
lea rsi, [rsp + 0x98]
xor eax, eax
mov edi, eax
nop
bt r15d, edi
mov rbx, 0xffffffffffffffff
mov ebp, eax
jae 0x14022e8a0
mov rcx, qword [rsi]
cmp rcx, rbx
jae 0x14022e8a0
mov rdx, qword [rsp + 0x48]
mov rbx, rcx
mov eax, r12d
mov ebp, 0x29
add rax, rax
inc r12d
mov dword [rsp + 0x34], r12d
mov qword [rdx + rax*8], rcx
mov ecx, 1
mov word [rdx + rax*8 + 8], cx
lea ecx, [rdi + 0x10]
movzx eax, cl
bt r15d, eax
jae 0x14022e8ed
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jae 0x14022e8ed
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
or ebp, 0x32
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x48]
mov edx, 4
mov eax, r12d
add rax, rax
inc r12d
mov dword [rsp + 0x34], r12d
mov qword [rcx + rax*8], rbx
mov word [rcx + rax*8 + 8], dx
cmp rbx, 0xffffffffffffffff
je 0x14022e922
mov rax, qword [rsp + 0x58]
mov r8d, ebp
mov rcx, rbx
mov rdx, qword [rax + 0x178]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14022ea37
inc edi
add rsi, 8
cmp edi, 5
jb 0x14022e860
mov r13, qword [r13 + 8]
test r13, r13
jne 0x14022e840
mov r13d, dword [rsp + 0x38]
xor r8d, r8d
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp dword [rsp + 0x3c], 0
mov esi, r8d
jbe 0x14022ea18
lea rbx, [rdi + 8]
nop dword [rax + rax]
movzx edx, word [rbx]
movzx eax, dl
and al, 1
neg al
movzx eax, dl
sbb ecx, ecx
and ecx, 0x29
mov edi, ecx
or edi, 4
and al, 2
cmove edi, ecx
test dl, 4
je 0x14022e996
mov rcx, qword [rbx - 8]
or edi, 0x32
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [r15 + 0x178]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x14022ea5b
mov rax, qword [rbx - 8]
xor r8d, r8d
mov edx, r12d
shl rdx, 4
add rdx, rbp
mov qword [rdx], rax
movzx eax, r8w
mov word [rdx + 8], r8w
movzx ecx, word [rbx]
test cl, 1
je 0x14022e9e3
mov eax, 1
mov word [rdx + 8], ax
movzx ecx, word [rbx]
test cl, 2
je 0x14022e9f3
or ax, 2
mov word [rdx + 8], ax
movzx ecx, word [rbx]
test cl, 4
je 0x14022ea00
or ax, 4
mov word [rdx + 8], ax
inc r12d
inc esi
add rbx, 0x10
mov dword [rsp + 0x34], r12d
cmp esi, dword [rsp + 0x3c]
jb 0x14022e960
test r12d, r12d
jne 0x14022ea75
movzx ebx, byte [rsp + 0x1f0]
test bl, bl
je 0x14022ec9a
mov rbx, qword [rsp + 0x48]
mov ebp, r8d
jmp 0x14022ea8d
cmp byte [rsp + 0x30], 0
je 0x14022ea6b
mov rcx, qword [rsp + 0x48]
call qword [fcn.140299e88]
mov eax, 4
jmp 0x14022e7e4
mov r13d, r8d
jmp 0x14022e946
cmp byte [rsp + 0x30], 0
je 0x14022ea6b
mov rcx, rbp
call qword [fcn.140299e88]
mov eax, 4
jmp 0x14022e7e4
mov rbx, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov edx, r12d
call fcn.14024a8d0
mov ebp, eax
xor r8d, r8d
test ebp, ebp
jg 0x14022eaaf
mov r9d, dword [rsp + 0x40]
lea rdx, [r15 + 0x178]
mov dword [rsp + 0x20], r8d
xor r8d, r8d
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edx, 0
test ebp, ebp
mov r13d, ebp
mov edi, edx
cmovle r13d, edx
cmp dword [rsp + 0x3c], edx
jbe 0x14022eba4
mov r12, qword [rsp + 0x50]
jmp 0x14022ead2
xor edx, edx
lea ecx, [r14 + rdi]
add rcx, rcx
lea r8, [rsp + 0x68]
movsx esi, word [rbx + rcx*8 + 0xa]
movzx ebx, dx
mov rcx, qword [r12]
mov dword [rsp + 0x68], edx
xor edx, edx
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x14022eb3f
mov r8d, dword [rsp + 0x68]
mov ecx, eax
test r8b, 0x29
mov eax, r8d
setne cl
movzx edx, cx
or dx, 4
and al, 0x32
mov eax, r8d
cmove dx, cx
movzx ecx, dx
or cx, 2
and al, 4
cmove cx, dx
cmp qword [rsp + 0x60], 0
movzx ebx, cx
je 0x14022eb3f
test ebp, ebp
jg 0x14022eb3f
test r8d, r8d
je 0x14022eb3f
inc r13d
mov rdx, qword [r15 + 0x178]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebp, ebp
jle 0x14022eb8a
mov eax, esi
movzx ecx, bx
or cx, 1
and al, 1
mov eax, esi
cmove cx, bx
movzx edx, cx
or dx, 4
and al, 4
cmove dx, cx
movzx eax, dx
or ax, 2
and sil, 2
cmove ax, dx
mov word [r12 + 0xa], ax
mov rbx, qword [rsp + 0x48]
inc edi
add r12, 0x10
cmp edi, dword [rsp + 0x3c]
jb 0x14022ead0
mov r12d, dword [rsp + 0x34]
test r14d, r14d
je 0x14022ec80
mov r14, qword [r15 + 8]
mov qword [rsp + 0x50], r14
test r14, r14
je 0x14022ec80
mov r12d, 1
nop word [rax + rax]
lea rdx, [rsp + 0x98]
mov rcx, r14
call fcn.14022d1c0
mov r14, qword [rsp + 0x58]
lea rsi, [rsp + 0x98]
mov r15d, eax
mov ebx, r12d
xor eax, eax
mov edi, eax
nop word [rax + rax]
lea ecx, [rdi + 0x10]
mov edx, ebx
bts edx, ecx
test r15d, edx
je 0x14022ec5f
mov rcx, qword [rsi]
lea r8, [rsp + 0x68]
xor edx, edx
mov dword [rsp + 0x68], eax
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x14022ec3a
cmp qword [rsp + 0x60], 0
je 0x14022ec3a
test ebp, ebp
jg 0x14022ec3a
cmp dword [rsp + 0x68], eax
je 0x14022ec3a
inc r13d
mov rdx, qword [r14 + 0x178]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
inc edi
rol ebx, 1
add rsi, 8
mov eax, 0
cmp edi, 5
jb 0x14022ec00
mov r14, qword [rsp + 0x50]
mov r14, qword [r14 + 8]
mov qword [rsp + 0x50], r14
test r14, r14
jne 0x14022ebd0
mov r12d, dword [rsp + 0x34]
mov r15, qword [rsp + 0x58]
mov rcx, qword [r15 + 0x178]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov rbp, qword [rsp + 0x48]
movzx ebx, byte [rsp + 0x1f0]
cmp byte [rsp + 0x30], 0
je 0x14022ecaa
mov rcx, rbp
call qword [fcn.140299e88]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14022ecb7
mov dword [rax], r13d
cmp byte [rsp + 0x1e8], 0
je 0x14022ed11
test r12d, r12d
jne 0x14022ed11
test bl, bl
jne 0x14022ed11
xor eax, eax
cmp dword [r15], 0xbab1e
mov dword [rsp + 0x38], eax
jne 0x14022ed11
cmp byte [r15 + 0x182], al
jne 0x14022ed11
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.14022e540
test eax, eax
jne 0x14022ed11
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14022ed11
mov ecx, dword [rsp + 0x40]
cmp eax, ecx
jg 0x14022ed07
test eax, eax
jns 0x14022ed09
mov eax, ecx
movsxd rcx, eax
call fcn.14024ada0
xor eax, eax
jmp 0x14022e7e4
mov eax, 1
jmp 0x14022e7f4