Function at 0x1400870ac
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 0x1400870ed
xor r8d, eax
mov r15d, r12d
mov dword [r11 + 0x18], r8d
jmp 0x1400870f0
xor r15d, r15d
test rdi, rdi
jne 0x1400870ff
mov eax, 0xfffffffc
jmp 0x140087607
cmp qword [rcx + 0x2a8], 0
lea rbx, [rsp + 0xa8]
je 0x14008731a
test r15d, r15d
jne 0x140087132
mov rcx, qword [rcx + 0x288]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
xor ebp, ebp
test r8d, r8d
je 0x140087172
lea rsi, [rbx - 8]
mov r14, qword [rsi + 8]
mov r8d, dword [rsi + 0x10]
lea rsi, [rsi + 0x18]
mov rcx, qword [rdi + 0x2a8]
mov rdx, r14
mov ebx, dword [rsi]
call fcn.140181930
test ebx, ebx
jne 0x140087166
mov rcx, r14
call fcn.1401c141c
add ebp, r12d
cmp ebp, dword [rsp + 0xa0]
jb 0x14008713d
cmp qword [rdi + 0x280], 0
mov rax, qword [rdi + 0x2d0]
jne 0x1400872d9
cmp qword [rax], 0
jbe 0x1400872ca
mov rcx, qword [rdi + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400c4240
mov rdx, qword [rdi + 0x2d0]
xor r9d, r9d
mov rcx, qword [rdi + 0x68]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x1400871cf
mov rax, qword [rdi + 0x2d0]
cmp esi, dword [rax]
jl 0x1400871e8
test esi, esi
jns 0x140087295
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140087295
test esi, esi
jns 0x1400871f0
xor edx, edx
jmp 0x1400871fb
mov rax, qword [rdi + 0x2d0]
mov edx, dword [rax]
sub edx, esi
xor r9d, r9d
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.14008bc74
mov rcx, rax
and dword [rax + 0xc], 0
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x280], rax
mov qword [rdi + 0x278], rax
test esi, esi
jle 0x1400872de
add rax, 0x3c
mov r8, rsi
mov qword [rcx], rax
mov rax, qword [rdi + 0x2d0]
mov ecx, dword [rax]
mov rax, qword [rdi + 0x278]
sub ecx, esi
mov dword [rax + 8], ecx
mov rcx, qword [rdi + 0x278]
mov rax, qword [rdi + 0x2d0]
movsxd rdx, dword [rcx + 8]
add r8, qword [rax + 8]
mov r9, rdx
mov rcx, qword [rcx]
call section..text
mov rax, qword [rdi + 0x278]
xor r9d, r9d
add dword [rdi + 0x74], esi
xor r8d, r8d
mov edx, r12d
mov ecx, dword [rax + 8]
mov dword [rdi + 0x70], ecx
mov rcx, qword [rdi + 0x2c0]
call fcn.1400c4270
jmp 0x1400872de
mov rax, qword [rdi + 0x2d0]
cmp rsi, qword [rax]
jne 0x1400872ca
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ebx, r12d
call fcn.1400c4270
mov rax, qword [rdi + 0x2d0]
add dword [rdi + 0x74], esi
mov ecx, dword [rax]
mov dword [rdi + 0x70], ecx
jmp 0x1400872e0
mov rcx, rdi
mov ebx, 0xfffffffc
call fcn.140087048
jmp 0x1400872e0
mov ecx, dword [rax]
mov dword [rdi + 0x70], ecx
xor ebx, ebx
test r15d, r15d
jne 0x1400872f8
mov rcx, qword [rdi + 0x288]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp ebx, r12d
je 0x140087313
mov rcx, qword [rdi + 0x20]
call fcn.140093f4c
test eax, eax
jne 0x140087313
mov rcx, qword [rdi + 0x20]
call fcn.14008c208
mov eax, ebx
jmp 0x140087607
test r15d, r15d
jne 0x14008733f
mov rcx, qword [rcx + 0x288]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
cmp qword [rdi + 0x68], 0xffffffffffffffff
jne 0x140087394
xor esi, esi
test r8d, r8d
je 0x140087373
add rbx, 0xfffffffffffffff8
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 0x18]
cmp dword [rbx], 0
jne 0x14008736b
call fcn.1401c141c
mov r8d, dword [rsp + 0xa0]
add esi, r12d
cmp esi, r8d
jb 0x140087351
test r15d, r15d
jne 0x1400870f5
mov rcx, qword [rdi + 0x288]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400870f5
and dword [rsp + 0x34], 0
test r8d, r8d
je 0x1400875d1
lea r12, [rbx - 8]
mov ebx, 0xfffffffc
cmp qword [rdi + 0x280], 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 0x140087504
cmp dword [rdi + 0x258], 0
je 0x140087504
lea r14d, [rcx - 0x1b]
test rdx, rdx
je 0x140087419
cmp word [rdx], r14w
je 0x140087419
cmp word [rdx], 0x17
lea eax, [rcx - 0xc]
mov r8d, ebp
cmove eax, ecx
mov rcx, qword [rdi + 0x68]
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 0x14008742c
mov rcx, qword [rdi + 0x68]
xor r9d, r9d
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
test eax, eax
jle 0x140087438
cmp eax, ebp
jl 0x14008744b
test eax, eax
jns 0x1400874c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400874c7
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.14008bc74
mov r14, rax
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x1400874a5
sub ebp, esi
movsxd rcx, ebp
mov dword [r14 + 8], ebp
call fcn.1401c2864
mov qword [r14], rax
test rax, rax
je 0x140087618
movsxd rdx, dword [r14 + 8]
lea r8, [rsi + r13]
mov r9, rdx
mov rcx, rax
call section..text
and dword [r14 + 0x2c], 0
jmp 0x1400874b4
mov qword [r14], r13
mov dword [r14 + 8], ebp
mov dword [r14 + 0xc], esi
mov dword [r14 + 0x2c], eax
mov qword [rdi + 0x280], r14
mov qword [rdi + 0x278], r14
xor r14d, r14d
jmp 0x1400874e7
cmp esi, ebp
jne 0x1400874dc
cmp dword [rsp + 0x30], 0
jne 0x1400874e7
mov rcx, r13
call fcn.1401c141c
jmp 0x1400874e7
mov rcx, rdi
mov r14d, ebx
call fcn.140087048
test esi, esi
jle 0x1400875ab
add dword [rdi + 0x74], esi
sub dword [rdi + 0x70], esi
jns 0x1400875ab
and dword [rdi + 0x70], 0
jmp 0x1400875ab
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.14008bc74
mov rsi, rax
mov dword [rax + 8], ebp
add dword [rdi + 0x70], ebp
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140087553
movsxd rcx, dword [rsi + 8]
call fcn.1401c2864
mov qword [rsi], rax
test rax, rax
je 0x14008765e
movsxd rdx, dword [rsi + 8]
mov r9, rbp
mov r8, r13
mov rcx, rax
call section..text
and dword [rsi + 0x2c], 0
jmp 0x140087559
mov qword [rsi], r13
mov dword [rsi + 0x2c], eax
and dword [rsi + 0xc], 0
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x140087586
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 + 0x280]
test rax, rax
jne 0x1400875a0
mov qword [rdi + 0x278], rsi
jmp 0x1400875a4
mov qword [rax + 0x30], rsi
mov qword [rdi + 0x280], rsi
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0xa0]
jae 0x1400875cb
mov rdx, qword [rsp + 0x98]
jmp 0x1400873ab
mov r12d, 1
test r15d, r15d
jne 0x1400875e9
mov rcx, qword [rdi + 0x288]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp r14d, r12d
je 0x140087604
mov rcx, qword [rdi + 0x20]
call fcn.140093f4c
test eax, eax
jne 0x140087604
mov rcx, qword [rdi + 0x20]
call fcn.14008c208
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, 0x2d8
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x2a9
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140093d88
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.1401bbfb8
int3