Function at 0x140063788
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 0x1400637c9
xor r8d, eax
mov r15d, r12d
mov dword [r11 + 0x18], r8d
jmp 0x1400637cc
xor r15d, r15d
test rdi, rdi
jne 0x1400637db
mov eax, 0xfffffffc
jmp 0x140063c64
cmp qword [rcx + 0x290], 0
lea rbx, [rsp + 0xa8]
je 0x14006398e
test r15d, r15d
jne 0x14006380e
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 0x14006384e
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.140134430
test ebx, ebx
jne 0x140063842
mov rcx, r14
call fcn.1401630c0
add ebp, r12d
cmp ebp, dword [rsp + 0xa0]
jb 0x140063819
cmp qword [rdi + 0x268], 0
mov rax, qword [rdi + 0x2b8]
jne 0x14006390f
cmp qword [rax], 0
jbe 0x14006397f
mov rcx, qword [rdi + 0x2a8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.140095600
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 0x1400638ab
mov rax, qword [rdi + 0x2b8]
cmp esi, dword [rax]
jl 0x1400638c4
test esi, esi
jns 0x140063950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140063950
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.1400686a4
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x268], rax
mov qword [rdi + 0x260], rax
test esi, esi
jle 0x140063914
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 0x14006392e
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp ebx, r12d
je 0x140063949
mov rcx, qword [rdi + 0x18]
call fcn.14006decc
test eax, eax
jne 0x140063949
mov rcx, qword [rdi + 0x18]
call fcn.140068b3c
mov eax, ebx
jmp 0x140063c64
mov rax, qword [rdi + 0x2b8]
cmp rsi, qword [rax]
jne 0x14006397f
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 0x140063916
mov rcx, rdi
mov ebx, 0xfffffffc
call fcn.140063724
jmp 0x140063916
test r15d, r15d
jne 0x1400639b3
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 0x140063a08
xor esi, esi
test r8d, r8d
je 0x1400639e7
add rbx, 0xfffffffffffffff8
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 0x18]
cmp dword [rbx], 0
jne 0x1400639df
call fcn.1401630c0
mov r8d, dword [rsp + 0xa0]
add esi, r12d
cmp esi, r8d
jb 0x1400639c5
test r15d, r15d
jne 0x1400637d1
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400637d1
and dword [rsp + 0x34], 0
test r8d, r8d
je 0x140063c2e
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 0x140063b61
cmp dword [rdi + 0x240], 0
je 0x140063b61
mov r8d, ebp
test rdx, rdx
jne 0x140063a70
mov rcx, qword [rdi + 0x50]
xor r9d, r9d
mov rdx, r13
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140063a95
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 0x140063aa1
cmp eax, ebp
jl 0x140063ab4
test eax, eax
jns 0x140063b28
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140063b28
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.1400686a4
mov r14, rax
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140063b06
sub ebp, esi
movsxd rcx, ebp
mov dword [r14 + 8], ebp
call fcn.140164508
mov qword [r14], rax
test rax, rax
je 0x140063c75
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 0x140063b15
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 0x140063b4e
cmp esi, ebp
jne 0x140063b43
cmp dword [rsp + 0x30], 0
mov r14d, 1
jne 0x140063b4e
mov rcx, r13
call fcn.1401630c0
jmp 0x140063b4e
mov rcx, rdi
mov r14d, ebx
call fcn.140063724
test esi, esi
jle 0x140063c08
add dword [rdi + 0x5c], esi
sub dword [rdi + 0x58], esi
jmp 0x140063c08
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.1400686a4
mov rsi, rax
mov dword [rax + 8], ebp
add dword [rdi + 0x58], ebp
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140063bb0
movsxd rcx, dword [rsi + 8]
call fcn.140164508
mov qword [rsi], rax
test rax, rax
je 0x140063cbb
movsxd rdx, dword [rsi + 8]
mov r9, rbp
mov r8, r13
mov rcx, rax
call section..text
and dword [rsi + 0x2c], 0
jmp 0x140063bb6
mov qword [rsi], r13
mov dword [rsi + 0x2c], eax
and dword [rsi + 0xc], 0
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x140063be3
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 0x140063c04
mov qword [rdi + 0x268], rsi
mov qword [rdi + 0x260], rsi
jmp 0x140063c08
mov qword [rax + 0x30], rsi
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, dword [rsp + 0xa0]
jae 0x140063c28
mov rdx, qword [rsp + 0x98]
jmp 0x140063a1f
mov r12d, 1
test r15d, r15d
jne 0x140063c46
mov rcx, qword [rdi + 0x270]
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp r14d, r12d
je 0x140063c61
mov rcx, qword [rdi + 0x18]
call fcn.14006decc
test eax, eax
jne 0x140063c61
mov rcx, qword [rdi + 0x18]
call fcn.140068b3c
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, 0x2b5
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006ddcc
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.14015e4d8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x288
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006ddcc
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.14015e4d8
int3