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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov eax, 0x40000000
mov r12d, 1
mov rdi, rcx
mov r14d, r12d
test eax, r8d
je 0x14006ed59
xor r8d, eax
mov r15d, r12d
mov dword [r11 + 0x18], r8d
jmp 0x14006ed5c
xor r15d, r15d
test rdi, rdi
jne 0x14006ed6b
mov eax, 0xfffffffc
jmp 0x14006f20b
cmp qword [rcx + 0x298], 0
lea rbx, [rsp + 0xa8]
je 0x14006ef1e
test r15d, r15d
jne 0x14006ed9e
mov rcx, qword [rcx + 0x278]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
xor ebp, ebp
test r8d, r8d
je 0x14006edde
lea rsi, [rbx - 8]
mov r14, qword [rsi + 8]
mov r8d, dword [rsi + 0x10]
lea rsi, [rsi + 0x18]
mov rcx, qword [rdi + 0x298]
mov rdx, r14
mov ebx, dword [rsi]
call fcn.1401406c0
test ebx, ebx
jne 0x14006edd2
mov rcx, r14
call fcn.14016f3a8
add ebp, r12d
cmp ebp, dword [rsp + 0xa0]
jb 0x14006eda9
cmp qword [rdi + 0x270], 0
mov rax, qword [rdi + 0x2c0]
jne 0x14006ee9f
cmp qword [rax], 0
jbe 0x14006ef0f
mov rcx, qword [rdi + 0x2b0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400a6f30
mov rdx, qword [rdi + 0x2c0]
xor r9d, r9d
mov rcx, qword [rdi + 0x58]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x14006ee3b
mov rax, qword [rdi + 0x2c0]
cmp esi, dword [rax]
jl 0x14006ee54
test esi, esi
jns 0x14006eee0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14006eee0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140073214
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x270], rax
mov qword [rdi + 0x268], rax
test esi, esi
jle 0x14006eea4
mov rax, qword [rdi + 0x2c0]
mov rcx, rsi
add qword [rax + 8], rcx
mov rax, qword [rdi + 0x2c0]
sub qword [rax], rcx
add dword [rdi + 0x64], esi
mov rax, qword [rdi + 0x2c0]
mov ecx, dword [rax]
mov dword [rdi + 0x60], ecx
xor ebx, ebx
test r15d, r15d
jne 0x14006eebe
mov rcx, qword [rdi + 0x278]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp ebx, r12d
je 0x14006eed9
mov rcx, qword [rdi + 0x18]
call fcn.140079008
test eax, eax
jne 0x14006eed9
mov rcx, qword [rdi + 0x18]
call fcn.140073780
mov eax, ebx
jmp 0x14006f20b
mov rax, qword [rdi + 0x2c0]
cmp rsi, qword [rax]
jne 0x14006ef0f
and qword [rax], 0
mov ebx, r12d
mov rax, qword [rdi + 0x2c0]
add qword [rax + 8], rsi
mov rax, qword [rdi + 0x2c0]
add dword [rdi + 0x64], esi
mov ecx, dword [rax]
mov dword [rdi + 0x60], ecx
jmp 0x14006eea6
mov rcx, rdi
mov ebx, 0xfffffffc
call fcn.14006ecb4
jmp 0x14006eea6
test r15d, r15d
jne 0x14006ef43
mov rcx, qword [rcx + 0x278]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
cmp qword [rdi + 0x58], 0xffffffffffffffff
jne 0x14006ef98
xor esi, esi
test r8d, r8d
je 0x14006ef77
add rbx, 0xfffffffffffffff8
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 0x18]
cmp dword [rbx], 0
jne 0x14006ef6f
call fcn.14016f3a8
mov r8d, dword [rsp + 0xa0]
add esi, r12d
cmp esi, r8d
jb 0x14006ef55
test r15d, r15d
jne 0x14006ed61
mov rcx, qword [rdi + 0x278]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14006ed61
and dword [rsp + 0x34], 0
test r8d, r8d
je 0x14006f1d5
lea r12, [rbx - 8]
mov ebx, 0xfffffffc
cmp qword [rdi + 0x270], 0
mov ecx, 0x1c
mov r13, qword [r12 + 8]
movsxd rbp, dword [r12 + 0x10]
lea r12, [r12 + 0x18]
mov eax, dword [r12]
mov dword [rsp + 0x30], eax
jne 0x14006f108
cmp dword [rdi + 0x248], 0
je 0x14006f108
lea r14d, [rcx - 0x1b]
test rdx, rdx
je 0x14006f01d
cmp word [rdx], r14w
je 0x14006f01d
cmp word [rdx], 0x17
lea eax, [rcx - 0xc]
mov r8d, ebp
cmove eax, ecx
mov rcx, qword [rdi + 0x58]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rdx, r13
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x14006f030
mov rcx, qword [rdi + 0x58]
xor r9d, r9d
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
test eax, eax
jle 0x14006f03c
cmp eax, ebp
jl 0x14006f04f
test eax, eax
jns 0x14006f0cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14006f0cb
xor eax, eax
test esi, esi
cmovns eax, esi
xor edx, edx
xor r9d, r9d
movsxd rsi, eax
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140073214
mov r14, rax
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x14006f0a9
sub ebp, esi
movsxd rcx, ebp
mov dword [r14 + 8], ebp
call fcn.1401707f0
mov qword [r14], rax
test rax, rax
je 0x14006f21c
movsxd rdx, dword [r14 + 8]
lea r8, [rsi + r13]
mov r9, rdx
mov rcx, rax
call section..text
and dword [r14 + 0x2c], 0
jmp 0x14006f0b8
mov qword [r14], r13
mov dword [r14 + 8], ebp
mov dword [r14 + 0xc], esi
mov dword [r14 + 0x2c], eax
mov qword [rdi + 0x270], r14
mov qword [rdi + 0x268], r14
xor r14d, r14d
jmp 0x14006f0eb
cmp esi, ebp
jne 0x14006f0e0
cmp dword [rsp + 0x30], 0
jne 0x14006f0eb
mov rcx, r13
call fcn.14016f3a8
jmp 0x14006f0eb
mov rcx, rdi
mov r14d, ebx
call fcn.14006ecb4
test esi, esi
jle 0x14006f1af
add dword [rdi + 0x64], esi
sub dword [rdi + 0x60], esi
jns 0x14006f1af
and dword [rdi + 0x60], 0
jmp 0x14006f1af
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140073214
mov rsi, rax
mov dword [rax + 8], ebp
add dword [rdi + 0x60], ebp
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x14006f157
movsxd rcx, dword [rsi + 8]
call fcn.1401707f0
mov qword [rsi], rax
test rax, rax
je 0x14006f262
movsxd rdx, dword [rsi + 8]
mov r9, rbp
mov r8, r13
mov rcx, rax
call section..text
and dword [rsi + 0x2c], 0
jmp 0x14006f15d
mov qword [rsi], r13
mov dword [rsi + 0x2c], eax
and dword [rsi + 0xc], 0
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x14006f18a
cmp word [r8], 0x17
lea rcx, [rsi + 0x10]
mov r9d, reloc.WS2_32.dll_recv
lea edx, [r9 + 0xc]
cmove r9d, edx
call section..text
and qword [rsi + 0x30], 0
mov rax, qword [rdi + 0x270]
test rax, rax
jne 0x14006f1ab
mov qword [rdi + 0x270], rsi
mov qword [rdi + 0x268], rsi
jmp 0x14006f1af
mov qword [rax + 0x30], rsi
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0xa0]
jae 0x14006f1cf
mov rdx, qword [rsp + 0x98]
jmp 0x14006efaf
mov r12d, 1
test r15d, r15d
jne 0x14006f1ed
mov rcx, qword [rdi + 0x278]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp r14d, r12d
je 0x14006f208
mov rcx, qword [rdi + 0x18]
call fcn.140079008
test eax, eax
jne 0x14006f208
mov rcx, qword [rdi + 0x18]
call fcn.140073780
mov eax, r14d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x2c5
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x297
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3