Function at 0x14009ba10
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 0x14009ba69
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14009ba47
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.1400acec4
jmp 0x14009c14d
mov esi, 2
or r13, 0xffffffffffffffff
lea r12d, [rsi - 1]
test r15d, r15d
je 0x14009beb2
cmp qword [rcx + 0x2a8], rdi
je 0x14009bafd
cmp dword [rcx + 0x12dc], edi
jne 0x14009bafd
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 0x14009bac8
mov rax, qword [rbx + 0x268]
cmp byte [rax], 0x16
jne 0x14009bac8
cmp byte [rax + 1], r12b
jb 0x14009bac8
cmp byte [rax + 5], sil
jbe 0x14009baf6
mov rcx, qword [rbx + 0x2a8]
call fcn.1401a0360
mov rax, qword [rbx + 0x208]
mov qword [rbx + 0x2a8], rdi
test rax, rax
je 0x14009baf6
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 0x14009bd40
mov rcx, qword [rbx + 0x2b8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e2e50
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 0x14009bb59
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009bb7b
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 0x14009bd0c
mov rcx, qword [rbx + 0x2c8]
cdqe
add qword [rcx], rax
cmp dword [rbx + 0x12d8], edi
jne 0x14009bc21
mov rcx, qword [rbx + 0x2a8]
call fcn.1401a0280
test eax, eax
je 0x14009bc18
cmp eax, r12d
je 0x14009bbd1
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a0890
cmp eax, r12d
jne 0x14009bbfa
mov dword [rbx + 0x2a0], r12d
mov ebp, r13d
jmp 0x14009bc21
mov rax, qword [rbx + 0x208]
mov dword [rbx + 0x12d8], r12d
mov dword [rbx + 0x2a4], r12d
test rax, rax
je 0x14009bbfa
mov r8, qword [rbx + 0x240]
mov edx, r13d
mov rcx, rbx
call rax
mov rcx, rbx
call fcn.14009b860
jmp 0x14009bc21
mov r8d, 0x1000
lea rdx, [0x14031a480]
mov ecx, eax
call fcn.1400db950
call fcn.1400dbad0
test eax, eax
jne 0x14009bc04
cmp dword [rbx + 0x12d8], r12d
jne 0x14009bd0c
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jbe 0x14009bd0c
jmp 0x14009bcb7
add dword [rbx + 0x260], eax
mov ecx, dword [rbx + 0x270]
cmp ecx, dword [rbx + 0x260]
jne 0x14009bcb7
mov eax, dword [rbx + 0x28c]
add ecx, 0x1000
cmp ecx, eax
jl 0x14009bc6b
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.1401ef934
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009c165
cmp rax, rsi
je 0x14009bcb7
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009bcb7
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.1401a1250
test eax, eax
jg 0x14009bc40
test eax, eax
jns 0x14009bd0c
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a0890
mov rax, qword [rbx + 0x2d0]
cmp qword [rax], rdi
jbe 0x14009bd0c
mov rcx, rbx
call fcn.14009b860
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jne 0x14009beb2
mov rcx, qword [rbx + 0x2b8]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.1400e2e80
mov rax, qword [rbx + 0x2c8]
mov qword [rax], rdi
jmp 0x14009beb2
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 0x14009bd78
call qword [sym.imp.WS2_32.dll_recv]
lea rsi, [rbx + 0xb0]
jmp 0x14009bd97
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 0x14009bdff
cmp word [rsi], 0x17
jne 0x14009bdcf
mov rax, qword [rsi + 8]
cmp rax, qword [0x14030ef58]
jne 0x14009bdcf
mov eax, dword [rsi + 0x10]
cmp eax, dword [0x14030ef60]
jne 0x14009bdcf
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 0x14009bdde
mov rcx, qword [rax + 8]
jmp 0x14009bde1
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.1400acec4
test ebp, ebp
jle 0x14009beb2
add dword [rbx + 0x260], ebp
jmp 0x14009beb2
cmp dword [r14], edi
jg 0x14009bebc
movsxd rdx, dword [rbx + 0x25c]
mov r9d, dword [rbx + 0x260]
cmp edx, r9d
je 0x14009bebc
test r9d, r9d
je 0x14009bebc
mov r10, qword [rbx + 0x200]
mov dword [rsp + 0x90], edi
test r10, r10
je 0x14009beb2
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 0x14009beb2
mov eax, dword [rbx + 0x260]
mov edx, dword [rbx + 0x25c]
sub eax, edx
mov ecx, dword [rsp + 0x90]
cmp ecx, eax
jg 0x14009beb2
test ecx, ecx
je 0x14009bebc
lea eax, [rdx + rcx]
mov dword [rbx + 0x25c], eax
cmp qword [rbx + 0x68], r13
jne 0x14009be12
mov eax, dword [rbx + 0x25c]
mov ecx, dword [rbx + 0x260]
cmp eax, ecx
jne 0x14009bed7
mov qword [rbx + 0x25c], rdi
mov eax, edi
mov ecx, edi
test ebp, ebp
jg 0x14009c03d
test r15d, r15d
je 0x14009c03d
cmp ebp, r13d
jne 0x14009befe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14009c14d
mov rcx, rbx
call fcn.14009a934
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.14009a934
mov rsi, qword [rbx + 0x2a8]
test rsi, rsi
je 0x14009bf5d
mov rcx, rsi
call fcn.1401a0360
jmp 0x14009bf43
pause
xor eax, eax
lock cmpxchg dword [rbx + 0x288], r12d
je 0x14009bf41
mov qword [rbx + 0x2a8], rdi
mov dword [rbx + 0x288], edi
mov qword [rbx + 0x12f0], rdi
mov dword [rbx + 0x12e8], edi
test rsi, rsi
je 0x14009bfba
cmp dword [rbx + 0x2a4], edi
jne 0x14009bf99
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009bf91
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x2a4], edi
je 0x14009bfb1
mov rax, qword [rbx + 0x210]
test rax, rax
je 0x14009bfb1
mov rdx, qword [rbx + 0x240]
mov rcx, rbx
call rax
lea rax, [rbx + 0x258]
jmp 0x14009c002
lea rsi, [rbx + 0x258]
cmp dword [rsi], edi
jg 0x14009bfdf
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009bfdf
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
mov rax, rsi
cmp dword [rsi], edi
jle 0x14009c002
mov r8, qword [rbx + 0x210]
test r8, r8
je 0x14009c002
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 0x14009c14d
lea rax, [0x14032b480]
cmp rcx, rax
je 0x14009c02b
call fcn.1401e8ee0
mov qword [rbx + 0x268], rdi
mov dword [rbx + 0x270], edi
jmp 0x14009c14d
test eax, eax
je 0x14009c0cd
mov r9, qword [rbx + 0x268]
movsxd rsi, eax
add rsi, r9
sub ecx, eax
movsxd rax, dword [rbx + 0x270]
movsxd r8, ecx
je 0x14009c099
test r9, r9
jne 0x14009c077
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
jmp 0x14009c099
test rsi, rsi
je 0x14009c065
cmp rax, r8
jae 0x14009c08e
call fcn.1401e8db4
mov dword [rax], 0x22
jmp 0x14009c070
mov rdx, rsi
mov rcx, r9
call fcn.14020df90
mov eax, dword [rbx + 0x25c]
sub dword [rbx + 0x260], eax
mov rax, qword [rbx + 0x230]
mov dword [rbx + 0x25c], edi
test rax, rax
je 0x14009c0cd
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 0x14009c14d
mov eax, dword [rbx + 0x28c]
test eax, eax
je 0x14009c0f0
cmp ecx, eax
jge 0x14009c14d
add ecx, 0x1000
cmp ecx, eax
jl 0x14009c101
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.1401ef934
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009c1ab
cmp rax, rsi
je 0x14009c14d
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009c14d
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_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
mov edi, 0x50f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400aa25c
mov r8d, edi
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, ebx
call fcn.1401e0110
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
mov edi, 0x5d5
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400aa25c
mov r8d, edi
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, ebx
call fcn.1401e0110
int3