Function at 0x140074a9c
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 0x140074add
xor r8d, eax
mov r15d, r12d
mov dword [r11 + 0x18], r8d
jmp 0x140074ae0
xor r15d, r15d
test rdi, rdi
jne 0x140074aef
mov eax, 0xfffffffc
jmp 0x140074ff7
cmp qword [rcx + 0x2a0], 0
lea rbx, [rsp + 0xa8]
je 0x140074d0a
test r15d, r15d
jne 0x140074b22
mov rcx, qword [rcx + 0x280]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
xor ebp, ebp
test r8d, r8d
je 0x140074b62
lea rsi, [rbx - 8]
mov r14, qword [rsi + 8]
mov r8d, dword [rsi + 0x10]
lea rsi, [rsi + 0x18]
mov rcx, qword [rdi + 0x2a0]
mov rdx, r14
mov ebx, dword [rsi]
call fcn.14016dec0
test ebx, ebx
jne 0x140074b56
mov rcx, r14
call fcn.1401ad038
add ebp, r12d
cmp ebp, dword [rsp + 0xa0]
jb 0x140074b2d
cmp qword [rdi + 0x278], 0
mov rax, qword [rdi + 0x2c8]
jne 0x140074cc9
cmp qword [rax], 0
jbe 0x140074cba
mov rcx, qword [rdi + 0x2b8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400af940
mov rdx, qword [rdi + 0x2c8]
xor r9d, r9d
mov rcx, qword [rdi + 0x60]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x140074bbf
mov rax, qword [rdi + 0x2c8]
cmp esi, dword [rax]
jl 0x140074bd8
test esi, esi
jns 0x140074c85
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140074c85
test esi, esi
jns 0x140074be0
xor edx, edx
jmp 0x140074beb
mov rax, qword [rdi + 0x2c8]
mov edx, dword [rax]
sub edx, esi
xor r9d, r9d
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.1400791e8
mov rcx, rax
and dword [rax + 0xc], 0
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x270], rax
test esi, esi
jle 0x140074cce
add rax, 0x3c
mov r8, rsi
mov qword [rcx], rax
mov rax, qword [rdi + 0x2c8]
mov ecx, dword [rax]
mov rax, qword [rdi + 0x270]
sub ecx, esi
mov dword [rax + 8], ecx
mov rcx, qword [rdi + 0x270]
mov rax, qword [rdi + 0x2c8]
movsxd rdx, dword [rcx + 8]
add r8, qword [rax + 8]
mov r9, rdx
mov rcx, qword [rcx]
call section..text
mov rax, qword [rdi + 0x270]
xor r9d, r9d
add dword [rdi + 0x6c], esi
xor r8d, r8d
mov edx, r12d
mov ecx, dword [rax + 8]
mov dword [rdi + 0x68], ecx
mov rcx, qword [rdi + 0x2b8]
call fcn.1400af970
jmp 0x140074cce
mov rax, qword [rdi + 0x2c8]
cmp rsi, qword [rax]
jne 0x140074cba
mov rcx, qword [rdi + 0x2b8]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ebx, r12d
call fcn.1400af970
mov rax, qword [rdi + 0x2c8]
add dword [rdi + 0x6c], esi
mov ecx, dword [rax]
mov dword [rdi + 0x68], ecx
jmp 0x140074cd0
mov rcx, rdi
mov ebx, 0xfffffffc
call fcn.140074a38
jmp 0x140074cd0
mov ecx, dword [rax]
mov dword [rdi + 0x68], ecx
xor ebx, ebx
test r15d, r15d
jne 0x140074ce8
mov rcx, qword [rdi + 0x280]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp ebx, r12d
je 0x140074d03
mov rcx, qword [rdi + 0x18]
call fcn.14007f570
test eax, eax
jne 0x140074d03
mov rcx, qword [rdi + 0x18]
call fcn.140079768
mov eax, ebx
jmp 0x140074ff7
test r15d, r15d
jne 0x140074d2f
mov rcx, qword [rcx + 0x280]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
cmp qword [rdi + 0x60], 0xffffffffffffffff
jne 0x140074d84
xor esi, esi
test r8d, r8d
je 0x140074d63
add rbx, 0xfffffffffffffff8
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 0x18]
cmp dword [rbx], 0
jne 0x140074d5b
call fcn.1401ad038
mov r8d, dword [rsp + 0xa0]
add esi, r12d
cmp esi, r8d
jb 0x140074d41
test r15d, r15d
jne 0x140074ae5
mov rcx, qword [rdi + 0x280]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140074ae5
and dword [rsp + 0x34], 0
test r8d, r8d
je 0x140074fc1
lea r12, [rbx - 8]
mov ebx, 0xfffffffc
cmp qword [rdi + 0x278], 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 0x140074ef4
cmp dword [rdi + 0x250], 0
je 0x140074ef4
lea r14d, [rcx - 0x1b]
test rdx, rdx
je 0x140074e09
cmp word [rdx], r14w
je 0x140074e09
cmp word [rdx], 0x17
lea eax, [rcx - 0xc]
mov r8d, ebp
cmove eax, ecx
mov rcx, qword [rdi + 0x60]
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 0x140074e1c
mov rcx, qword [rdi + 0x60]
xor r9d, r9d
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
test eax, eax
jle 0x140074e28
cmp eax, ebp
jl 0x140074e3b
test eax, eax
jns 0x140074eb7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140074eb7
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.1400791e8
mov r14, rax
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140074e95
sub ebp, esi
movsxd rcx, ebp
mov dword [r14 + 8], ebp
call fcn.1401ae494
mov qword [r14], rax
test rax, rax
je 0x140075008
movsxd rdx, dword [r14 + 8]
lea r8, [rsi + r13]
mov r9, rdx
mov rcx, rax
call section..text
and dword [r14 + 0x2c], 0
jmp 0x140074ea4
mov qword [r14], r13
mov dword [r14 + 8], ebp
mov dword [r14 + 0xc], esi
mov dword [r14 + 0x2c], eax
mov qword [rdi + 0x278], r14
mov qword [rdi + 0x270], r14
xor r14d, r14d
jmp 0x140074ed7
cmp esi, ebp
jne 0x140074ecc
cmp dword [rsp + 0x30], 0
jne 0x140074ed7
mov rcx, r13
call fcn.1401ad038
jmp 0x140074ed7
mov rcx, rdi
mov r14d, ebx
call fcn.140074a38
test esi, esi
jle 0x140074f9b
add dword [rdi + 0x6c], esi
sub dword [rdi + 0x68], esi
jns 0x140074f9b
and dword [rdi + 0x68], 0
jmp 0x140074f9b
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.1400791e8
mov rsi, rax
mov dword [rax + 8], ebp
add dword [rdi + 0x68], ebp
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140074f43
movsxd rcx, dword [rsi + 8]
call fcn.1401ae494
mov qword [rsi], rax
test rax, rax
je 0x14007504e
movsxd rdx, dword [rsi + 8]
mov r9, rbp
mov r8, r13
mov rcx, rax
call section..text
and dword [rsi + 0x2c], 0
jmp 0x140074f49
mov qword [rsi], r13
mov dword [rsi + 0x2c], eax
and dword [rsi + 0xc], 0
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x140074f76
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 + 0x278]
test rax, rax
jne 0x140074f97
mov qword [rdi + 0x278], rsi
mov qword [rdi + 0x270], rsi
jmp 0x140074f9b
mov qword [rax + 0x30], rsi
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0xa0]
jae 0x140074fbb
mov rdx, qword [rsp + 0x98]
jmp 0x140074d9b
mov r12d, 1
test r15d, r15d
jne 0x140074fd9
mov rcx, qword [rdi + 0x280]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp r14d, r12d
je 0x140074ff4
mov rcx, qword [rdi + 0x18]
call fcn.14007f570
test eax, eax
jne 0x140074ff4
mov rcx, qword [rdi + 0x18]
call fcn.140079768
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, 0x2c9
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
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.1401a83f8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x29b
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
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.1401a83f8
int3