Function at 0x14009ba94
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
lea r14, [rcx + 0x254]
mov r15d, edx
mov rbx, rcx
mov ebp, edi
cmp dword [r14], edi
jle 0x14009baed
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14009bacb
mov rdi, qword [rax + 8]
mov edx, 0x40
mov qword [rsp + 0x20], rbx
lea r9, str.AsyncSocket__p__is_PAUSED
mov rcx, rdi
lea r8d, [rdx - 0x3c]
call fcn.1400acf60
jmp 0x14009c1d1
mov esi, 2
or r13, 0xffffffffffffffff
lea r12d, [rsi - 1]
test r15d, r15d
je 0x14009bf36
cmp qword [rcx + 0x2a8], rdi
je 0x14009bb81
cmp dword [rcx + 0x12dc], edi
jne 0x14009bb81
mov r8d, dword [rcx + 0x270]
mov r9d, esi
mov rdx, qword [rcx + 0x268]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 5
jl 0x14009bb4c
mov rax, qword [rbx + 0x268]
cmp byte [rax], 0x16
jne 0x14009bb4c
cmp byte [rax + 1], r12b
jb 0x14009bb4c
cmp byte [rax + 5], sil
jbe 0x14009bb7a
mov rcx, qword [rbx + 0x2a8]
call fcn.1401a2290
mov rax, qword [rbx + 0x208]
mov qword [rbx + 0x2a8], rdi
test rax, rax
je 0x14009bb7a
mov r8, qword [rbx + 0x240]
mov edx, r13d
mov rcx, rbx
call rax
mov dword [rbx + 0x12dc], r12d
mov dword [rsp + 0x80], 0x1c
cmp qword [rbx + 0x2a8], rdi
je 0x14009bdc4
mov rcx, qword [rbx + 0x2b8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e4d80
mov rax, qword [rbx + 0x2c8]
mov rcx, qword [rbx + 0x68]
mov edx, dword [rax]
mov r8d, dword [rax + 0x10]
mov r9, qword [rax]
sub r8d, edx
lea rdx, [rbx + 0x2d8]
add rdx, r9
cmp word [rbx + 0x78], r12w
jne 0x14009bbdd
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009bbff
lea r9, [rsp + 0x80]
mov qword [rsp + 0x28], r9
lea rax, [rbx + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebp, eax
test eax, eax
jle 0x14009bd90
mov rcx, qword [rbx + 0x2c8]
cdqe
add qword [rcx], rax
cmp dword [rbx + 0x12d8], edi
jne 0x14009bca5
mov rcx, qword [rbx + 0x2a8]
call fcn.1401a21b0
test eax, eax
je 0x14009bc9c
cmp eax, r12d
je 0x14009bc55
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a27c0
cmp eax, r12d
jne 0x14009bc7e
mov dword [rbx + 0x2a0], r12d
mov ebp, r13d
jmp 0x14009bca5
mov rax, qword [rbx + 0x208]
mov dword [rbx + 0x12d8], r12d
mov dword [rbx + 0x2a4], r12d
test rax, rax
je 0x14009bc7e
mov r8, qword [rbx + 0x240]
mov edx, r13d
mov rcx, rbx
call rax
mov rcx, rbx
call fcn.14009b8e4
jmp 0x14009bca5
mov r8d, 0x1000
lea rdx, [0x14031c520]
mov ecx, eax
call fcn.1400dd880
call fcn.1400dda00
test eax, eax
jne 0x14009bc88
cmp dword [rbx + 0x12d8], r12d
jne 0x14009bd90
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jbe 0x14009bd90
jmp 0x14009bd3b
add dword [rbx + 0x260], eax
mov ecx, dword [rbx + 0x270]
cmp ecx, dword [rbx + 0x260]
jne 0x14009bd3b
mov eax, dword [rbx + 0x28c]
add ecx, 0x1000
cmp ecx, eax
jl 0x14009bcef
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rsi, qword [rbx + 0x268]
mov dword [rbx + 0x270], ecx
movsxd rdx, ecx
mov rcx, rsi
call fcn.1401f2724
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009c1e9
cmp rax, rsi
je 0x14009bd3b
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009bd3b
mov rdx, qword [rbx + 0x240]
sub rax, rsi
mov r8, rax
mov rcx, rbx
call r9
movsxd rax, dword [rbx + 0x260]
mov r8d, dword [rbx + 0x270]
mov rdx, rax
add rdx, qword [rbx + 0x268]
sub r8d, eax
mov rcx, qword [rbx + 0x2a8]
call fcn.1401a3180
test eax, eax
jg 0x14009bcc4
test eax, eax
jns 0x14009bd90
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a27c0
mov rax, qword [rbx + 0x2d0]
cmp qword [rax], rdi
jbe 0x14009bd90
mov rcx, rbx
call fcn.14009b8e4
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jne 0x14009bf36
mov rcx, qword [rbx + 0x2b8]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.1400e4db0
mov rax, qword [rbx + 0x2c8]
mov qword [rax], rdi
jmp 0x14009bf36
movsxd rax, dword [rbx + 0x260]
xor r9d, r9d
mov r8d, dword [rbx + 0x270]
mov rdx, rax
add rdx, qword [rbx + 0x268]
sub r8d, eax
mov rcx, qword [rbx + 0x68]
cmp word [rbx + 0x78], r12w
jne 0x14009bdfc
call qword [sym.imp.WS2_32.dll_recv]
lea rsi, [rbx + 0xb0]
jmp 0x14009be1b
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rsi, [rbx + 0xb0]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebp, eax
cmp word [rbx + 0x78], r12w
je 0x14009be83
cmp word [rsi], 0x17
jne 0x14009be53
mov rax, qword [rsi + 8]
cmp rax, qword [0x140310f48]
jne 0x14009be53
mov eax, dword [rsi + 0x10]
cmp eax, dword [0x140310f50]
jne 0x14009be53
mov ecx, dword [rsi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsi + 4], eax
mov word [rsi], 2
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14009be62
mov rcx, qword [rax + 8]
jmp 0x14009be65
mov rcx, rdi
mov edx, 0x40
mov dword [rsp + 0x28], ebp
lea r9, str.AsyncSocket__p__recv_returned__d
mov qword [rsp + 0x20], rbx
lea r8d, [rdx - 0x3c]
call fcn.1400acf60
test ebp, ebp
jle 0x14009bf36
add dword [rbx + 0x260], ebp
jmp 0x14009bf36
cmp dword [r14], edi
jg 0x14009bf40
movsxd rdx, dword [rbx + 0x25c]
mov r9d, dword [rbx + 0x260]
cmp edx, r9d
je 0x14009bf40
test r9d, r9d
je 0x14009bf40
mov r10, qword [rbx + 0x200]
mov dword [rsp + 0x90], edi
test r10, r10
je 0x14009bf36
lea rax, [rbx + 0x240]
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x220]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x90]
sub r9d, edx
mov rcx, rbx
add rdx, qword [rbx + 0x268]
call r10
cmp qword [rbx + 0x268], rdi
je 0x14009bf36
mov eax, dword [rbx + 0x260]
mov edx, dword [rbx + 0x25c]
sub eax, edx
mov ecx, dword [rsp + 0x90]
cmp ecx, eax
jg 0x14009bf36
test ecx, ecx
je 0x14009bf40
lea eax, [rdx + rcx]
mov dword [rbx + 0x25c], eax
cmp qword [rbx + 0x68], r13
jne 0x14009be96
mov eax, dword [rbx + 0x25c]
mov ecx, dword [rbx + 0x260]
cmp eax, ecx
jne 0x14009bf5b
mov qword [rbx + 0x25c], rdi
mov eax, edi
mov ecx, edi
test ebp, ebp
jg 0x14009c0c1
test r15d, r15d
je 0x14009c0c1
cmp ebp, r13d
jne 0x14009bf82
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14009c1d1
mov rcx, rbx
call fcn.14009a9b8
mov rcx, qword [rbx + 0x68]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
mov qword [rbx + 0x68], r13
call fcn.14009a9b8
mov rsi, qword [rbx + 0x2a8]
test rsi, rsi
je 0x14009bfe1
mov rcx, rsi
call fcn.1401a2290
jmp 0x14009bfc7
pause
xor eax, eax
lock cmpxchg dword [rbx + 0x288], r12d
je 0x14009bfc5
mov qword [rbx + 0x2a8], rdi
mov dword [rbx + 0x288], edi
mov qword [rbx + 0x12f0], rdi
mov dword [rbx + 0x12e8], edi
test rsi, rsi
je 0x14009c03e
cmp dword [rbx + 0x2a4], edi
jne 0x14009c01d
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009c015
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x2a4], edi
je 0x14009c035
mov rax, qword [rbx + 0x210]
test rax, rax
je 0x14009c035
mov rdx, qword [rbx + 0x240]
mov rcx, rbx
call rax
lea rax, [rbx + 0x258]
jmp 0x14009c086
lea rsi, [rbx + 0x258]
cmp dword [rsi], edi
jg 0x14009c063
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009c063
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
mov rax, rsi
cmp dword [rsi], edi
jle 0x14009c086
mov r8, qword [rbx + 0x210]
test r8, r8
je 0x14009c086
mov rdx, qword [rbx + 0x240]
mov rcx, rbx
call r8
mov rax, rsi
mov rcx, qword [rbx + 0x268]
mov dword [rbx + 0x2a4], edi
mov dword [rax], edi
test rcx, rcx
je 0x14009c1d1
lea rax, [0x14032d520]
cmp rcx, rax
je 0x14009c0af
call fcn.1401ebcd0
mov qword [rbx + 0x268], rdi
mov dword [rbx + 0x270], edi
jmp 0x14009c1d1
test eax, eax
je 0x14009c151
mov r9, qword [rbx + 0x268]
movsxd rsi, eax
add rsi, r9
sub ecx, eax
movsxd rax, dword [rbx + 0x270]
movsxd r8, ecx
je 0x14009c11d
test r9, r9
jne 0x14009c0fb
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
jmp 0x14009c11d
test rsi, rsi
je 0x14009c0e9
cmp rax, r8
jae 0x14009c112
call fcn.1401ebba4
mov dword [rax], 0x22
jmp 0x14009c0f4
mov rdx, rsi
mov rcx, r9
call fcn.140210d80
mov eax, dword [rbx + 0x25c]
sub dword [rbx + 0x260], eax
mov rax, qword [rbx + 0x230]
mov dword [rbx + 0x25c], edi
test rax, rax
je 0x14009c151
sub rsi, qword [rbx + 0x268]
mov rcx, rbx
mov rdx, qword [rbx + 0x240]
mov r8, rsi
call rax
mov ecx, dword [rbx + 0x270]
mov eax, ecx
sub eax, dword [rbx + 0x260]
cmp eax, 0x400
jge 0x14009c1d1
mov eax, dword [rbx + 0x28c]
test eax, eax
je 0x14009c174
cmp ecx, eax
jge 0x14009c1d1
add ecx, 0x1000
cmp ecx, eax
jl 0x14009c185
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rsi, qword [rbx + 0x268]
mov dword [rbx + 0x270], ecx
movsxd rdx, ecx
mov rcx, rsi
call fcn.1401f2724
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009c22f
cmp rax, rsi
je 0x14009c1d1
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009c1d1
mov rdx, qword [rbx + 0x240]
sub rax, rsi
mov r8, rax
mov rcx, rbx
call r9
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
mov edi, 0x50f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400aa2f8
mov r8d, edi
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, ebx
call fcn.1401e2ef8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
mov edi, 0x5d5
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400aa2f8
mov r8d, edi
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, ebx
call fcn.1401e2ef8
int3