Function at 0x14006486c
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 0x1400648ad
xor r8d, eax
mov r15d, r12d
mov dword [r11 + 0x18], r8d
jmp 0x1400648b0
xor r15d, r15d
test rdi, rdi
jne 0x1400648bf
mov eax, 0xfffffffc
jmp 0x140064d48
cmp qword [rcx + 0x290], 0
lea rbx, [rsp + 0xa8]
je 0x140064a72
test r15d, r15d
jne 0x1400648f2
mov rcx, qword [rcx + 0x270]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
xor ebp, ebp
test r8d, r8d
je 0x140064932
lea rsi, [rbx - 8]
mov r14, qword [rsi + 8]
mov r8d, dword [rsi + 0x10]
lea rsi, [rsi + 0x18]
mov rcx, qword [rdi + 0x290]
mov rdx, r14
mov ebx, dword [rsi]
call fcn.140134c30
test ebx, ebx
jne 0x140064926
mov rcx, r14
call fcn.140163938
add ebp, r12d
cmp ebp, dword [rsp + 0xa0]
jb 0x1400648fd
cmp qword [rdi + 0x268], 0
mov rax, qword [rdi + 0x2b8]
jne 0x1400649f3
cmp qword [rax], 0
jbe 0x140064a63
mov rcx, qword [rdi + 0x2a8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.140095e00
mov rdx, qword [rdi + 0x2b8]
xor r9d, r9d
mov rcx, qword [rdi + 0x50]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x14006498f
mov rax, qword [rdi + 0x2b8]
cmp esi, dword [rax]
jl 0x1400649a8
test esi, esi
jns 0x140064a34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140064a34
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140068c34
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x268], rax
mov qword [rdi + 0x260], rax
test esi, esi
jle 0x1400649f8
mov rax, qword [rdi + 0x2b8]
mov rcx, rsi
add qword [rax + 8], rcx
mov rax, qword [rdi + 0x2b8]
sub qword [rax], rcx
add dword [rdi + 0x5c], esi
mov rax, qword [rdi + 0x2b8]
mov ecx, dword [rax]
mov dword [rdi + 0x58], ecx
xor ebx, ebx
test r15d, r15d
jne 0x140064a12
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp ebx, r12d
je 0x140064a2d
mov rcx, qword [rdi + 0x18]
call fcn.14006e69c
test eax, eax
jne 0x140064a2d
mov rcx, qword [rdi + 0x18]
call fcn.140069148
mov eax, ebx
jmp 0x140064d48
mov rax, qword [rdi + 0x2b8]
cmp rsi, qword [rax]
jne 0x140064a63
and qword [rax], 0
mov ebx, r12d
mov rax, qword [rdi + 0x2b8]
add qword [rax + 8], rsi
mov rax, qword [rdi + 0x2b8]
add dword [rdi + 0x5c], esi
mov ecx, dword [rax]
mov dword [rdi + 0x58], ecx
jmp 0x1400649fa
mov rcx, rdi
mov ebx, 0xfffffffc
call fcn.140064808
jmp 0x1400649fa
test r15d, r15d
jne 0x140064a97
mov rcx, qword [rcx + 0x270]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
cmp qword [rdi + 0x50], 0xffffffffffffffff
jne 0x140064aec
xor esi, esi
test r8d, r8d
je 0x140064acb
add rbx, 0xfffffffffffffff8
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 0x18]
cmp dword [rbx], 0
jne 0x140064ac3
call fcn.140163938
mov r8d, dword [rsp + 0xa0]
add esi, r12d
cmp esi, r8d
jb 0x140064aa9
test r15d, r15d
jne 0x1400648b5
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400648b5
and dword [rsp + 0x34], 0
test r8d, r8d
je 0x140064d12
lea r12, [rbx - 8]
mov ebx, 0xfffffffc
cmp qword [rdi + 0x268], 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 0x140064c45
cmp dword [rdi + 0x240], 0
je 0x140064c45
mov r8d, ebp
test rdx, rdx
jne 0x140064b54
mov rcx, qword [rdi + 0x50]
xor r9d, r9d
mov rdx, r13
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140064b79
cmp word [rdx], 0x17
mov eax, reloc.WS2_32.dll_recv
cmove eax, ecx
mov rcx, qword [rdi + 0x50]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rdx, r13
call qword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
test eax, eax
jle 0x140064b85
cmp eax, ebp
jl 0x140064b98
test eax, eax
jns 0x140064c0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140064c0c
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140068c34
mov r14, rax
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140064bea
sub ebp, esi
movsxd rcx, ebp
mov dword [r14 + 8], ebp
call fcn.140164d80
mov qword [r14], rax
test rax, rax
je 0x140064d59
movsxd rdx, dword [r14 + 8]
mov rcx, rax
movsxd r8, esi
mov r9, rdx
add r8, r13
call section..text
and dword [r14 + 0x2c], 0
jmp 0x140064bf9
mov qword [r14], r13
mov dword [r14 + 8], ebp
mov dword [r14 + 0xc], esi
mov dword [r14 + 0x2c], eax
mov qword [rdi + 0x268], r14
mov qword [rdi + 0x260], r14
xor r14d, r14d
jmp 0x140064c32
cmp esi, ebp
jne 0x140064c27
cmp dword [rsp + 0x30], 0
mov r14d, 1
jne 0x140064c32
mov rcx, r13
call fcn.140163938
jmp 0x140064c32
mov rcx, rdi
mov r14d, ebx
call fcn.140064808
test esi, esi
jle 0x140064cec
add dword [rdi + 0x5c], esi
sub dword [rdi + 0x58], esi
jmp 0x140064cec
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140068c34
mov rsi, rax
mov dword [rax + 8], ebp
add dword [rdi + 0x58], ebp
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140064c94
movsxd rcx, dword [rsi + 8]
call fcn.140164d80
mov qword [rsi], rax
test rax, rax
je 0x140064d9f
movsxd rdx, dword [rsi + 8]
mov r9, rbp
mov r8, r13
mov rcx, rax
call section..text
and dword [rsi + 0x2c], 0
jmp 0x140064c9a
mov qword [rsi], r13
mov dword [rsi + 0x2c], eax
and dword [rsi + 0xc], 0
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x140064cc7
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 + 0x268]
test rax, rax
jne 0x140064ce8
mov qword [rdi + 0x268], rsi
mov qword [rdi + 0x260], rsi
jmp 0x140064cec
mov qword [rax + 0x30], rsi
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0xa0]
jae 0x140064d0c
mov rdx, qword [rsp + 0x98]
jmp 0x140064b03
mov r12d, 1
test r15d, r15d
jne 0x140064d2a
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp r14d, r12d
je 0x140064d45
mov rcx, qword [rdi + 0x18]
call fcn.14006e69c
test eax, eax
jne 0x140064d45
mov rcx, qword [rdi + 0x18]
call fcn.140069148
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, 0x2b4
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
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.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x287
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
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.14015ecf8
int3