Function at 0x14009b09c
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 esi, edi
cmp dword [r14], edi
jle 0x14009b0f5
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14009b0d3
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.1400ab710
jmp 0x14009b800
mov ebp, 2
or r13, 0xffffffffffffffff
lea r12d, [rbp - 1]
test r15d, r15d
je 0x14009b584
cmp qword [rcx + 0x2a8], rdi
je 0x14009b18b
cmp dword [rcx + 0x12dc], edi
jne 0x14009b18b
mov r8d, dword [rcx + 0x270]
mov r9d, ebp
mov rdx, qword [rcx + 0x268]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x268]
cmp eax, 5
jl 0x14009b156
cmp byte [rcx], 0x16
movsx eax, byte [rcx + 5]
jne 0x14009b156
cmp byte [rcx + 1], r12b
jb 0x14009b156
cmp eax, ebp
jbe 0x14009b184
mov rcx, qword [rbx + 0x2a8]
call fcn.14019f430
mov rax, qword [rbx + 0x208]
mov qword [rbx + 0x2a8], rdi
test rax, rax
je 0x14009b184
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 0x14009b403
mov rcx, qword [rbx + 0x2b8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e1ec0
mov rax, qword [rbx + 0x2c8]
lea rdx, [rbx + 0x2d8]
xor r9d, r9d
mov r8d, dword [rax + 0x10]
sub r8d, dword [rax]
mov rax, qword [rax]
add rdx, rax
cmp word [rbx + 0x78], r12w
jne 0x14009b1e5
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009b208
lea rax, [rsp + 0x80]
lea rcx, [rbx + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test eax, eax
jle 0x14009b3cf
mov rcx, qword [rbx + 0x2c8]
cdqe
add qword [rcx], rax
cmp dword [rbx + 0x12d8], edi
jne 0x14009b2ae
mov rcx, qword [rbx + 0x2a8]
call fcn.14019f350
test eax, eax
je 0x14009b2a5
cmp eax, r12d
je 0x14009b25e
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.14019f960
cmp eax, r12d
jne 0x14009b287
mov dword [rbx + 0x2a0], r12d
mov esi, r13d
jmp 0x14009b2ae
mov rax, qword [rbx + 0x208]
mov dword [rbx + 0x12d8], r12d
mov dword [rbx + 0x2a4], r12d
test rax, rax
je 0x14009b287
mov r8, qword [rbx + 0x240]
mov edx, r13d
mov rcx, rbx
call rax
mov rcx, rbx
call fcn.14009af10
jmp 0x14009b2ae
mov r8d, 0x1000
lea rdx, [0x14030c380]
mov ecx, eax
call fcn.1400da9d0
call fcn.1400dab50
test eax, eax
jne 0x14009b291
cmp dword [rbx + 0x12d8], r12d
jne 0x14009b3cf
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jbe 0x14009b3cf
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.1401a0320
test eax, eax
jle 0x14009b3ab
test eax, eax
jle 0x14009b375
add dword [rbx + 0x260], eax
mov ecx, dword [rbx + 0x270]
cmp ecx, dword [rbx + 0x260]
jne 0x14009b375
mov eax, dword [rbx + 0x28c]
add ecx, 0x1000
cmp ecx, eax
jl 0x14009b329
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rbp, qword [rbx + 0x268]
mov dword [rbx + 0x270], ecx
movsxd rdx, ecx
mov rcx, rbp
call fcn.1401e812c
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009b818
cmp rax, rbp
je 0x14009b375
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009b375
mov rdx, qword [rbx + 0x240]
sub rax, rbp
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.1401a0320
test eax, eax
jg 0x14009b2fa
mov ebp, 2
test eax, eax
jns 0x14009b3cf
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.14019f960
mov rax, qword [rbx + 0x2d0]
cmp qword [rax], rdi
jbe 0x14009b3cf
mov rcx, rbx
call fcn.14009af10
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jne 0x14009b584
mov rcx, qword [rbx + 0x2b8]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.1400e1ef0
mov rax, qword [rbx + 0x2c8]
mov qword [rax], rdi
jmp 0x14009b584
movsxd rax, dword [rbx + 0x260]
xor r9d, r9d
mov r8d, dword [rbx + 0x270]
mov rdx, rax
add rdx, qword [rbx + 0x268]
sub r8d, eax
cmp word [rbx + 0x78], r12w
jne 0x14009b434
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009b457
lea rax, [rsp + 0x80]
lea rcx, [rbx + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp word [rbx + 0x78], r12w
je 0x14009b4d1
cmp word [rbx + 0xb0], 0x17
jne 0x14009b4a1
mov rax, qword [rbx + 0xb8]
cmp rax, qword [0x140300e20]
jne 0x14009b4a1
mov eax, dword [rbx + 0xc0]
cmp eax, dword [0x140300e28]
jne 0x14009b4a1
mov ecx, dword [rbx + 0xc4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0xb4], eax
mov word [rbx + 0xb0], bp
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14009b4b0
mov rcx, qword [rax + 8]
jmp 0x14009b4b3
mov rcx, rdi
mov edx, 0x40
mov dword [rsp + 0x28], esi
lea r9, str.AsyncSocket__p__recv_returned__d
mov qword [rsp + 0x20], rbx
lea r8d, [rdx - 0x3c]
call fcn.1400ab710
test esi, esi
jle 0x14009b584
add dword [rbx + 0x260], esi
jmp 0x14009b584
cmp dword [r14], edi
jg 0x14009b58e
movsxd rdx, dword [rbx + 0x25c]
mov r9d, dword [rbx + 0x260]
cmp edx, r9d
je 0x14009b58e
test r9d, r9d
je 0x14009b58e
mov r10, qword [rbx + 0x200]
mov dword [rsp + 0x90], edi
test r10, r10
je 0x14009b584
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 0x14009b584
mov eax, dword [rbx + 0x260]
mov edx, dword [rbx + 0x25c]
sub eax, edx
mov ecx, dword [rsp + 0x90]
cmp ecx, eax
jg 0x14009b584
test ecx, ecx
je 0x14009b58e
lea eax, [rdx + rcx]
mov dword [rbx + 0x25c], eax
cmp qword [rbx + 0x68], r13
jne 0x14009b4e4
mov eax, dword [rbx + 0x260]
cmp dword [rbx + 0x25c], eax
jne 0x14009b5a3
mov qword [rbx + 0x25c], rdi
test esi, esi
jg 0x14009b6e5
test r15d, r15d
je 0x14009b6e5
cmp esi, r13d
jne 0x14009b5ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14009b800
mov rcx, rbx
call fcn.14009a1d4
mov rcx, qword [rbx + 0x68]
mov edx, ebp
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.14009a1d4
mov rsi, qword [rbx + 0x2a8]
test rsi, rsi
je 0x14009b626
mov rcx, rsi
call fcn.14019f430
jmp 0x14009b60c
pause
xor eax, eax
lock cmpxchg dword [rbx + 0x288], r12d
je 0x14009b60a
mov qword [rbx + 0x2a8], rdi
mov dword [rbx + 0x288], edi
mov qword [rbx + 0x12f0], rdi
mov dword [rbx + 0x12e8], edi
test rsi, rsi
je 0x14009b664
cmp dword [rbx + 0x2a4], edi
jne 0x14009b68e
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009b65a
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x2a4], edi
je 0x14009b6a6
jmp 0x14009b68e
cmp dword [rbx + 0x258], edi
jg 0x14009b68e
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009b686
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x258], edi
jle 0x14009b6a6
mov rax, qword [rbx + 0x210]
test rax, rax
je 0x14009b6a6
mov rdx, qword [rbx + 0x240]
mov rcx, rbx
call rax
mov rcx, qword [rbx + 0x268]
mov dword [rbx + 0x2a4], edi
mov dword [rbx + 0x258], edi
test rcx, rcx
je 0x14009b800
lea rax, [0x14031d380]
cmp rcx, rax
je 0x14009b6d3
call fcn.1401e18f8
mov qword [rbx + 0x268], rdi
mov dword [rbx + 0x270], edi
jmp 0x14009b800
movsxd rcx, dword [rbx + 0x25c]
test ecx, ecx
je 0x14009b780
mov eax, dword [rbx + 0x260]
mov r9, qword [rbx + 0x268]
sub eax, ecx
movsxd r8, eax
movsxd rax, dword [rbx + 0x270]
lea rsi, [r9 + rcx]
je 0x14009b74c
test r9, r9
jne 0x14009b72a
call fcn.1401e17a0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e0a40
jmp 0x14009b74c
test rsi, rsi
je 0x14009b718
cmp rax, r8
jae 0x14009b741
call fcn.1401e17a0
mov dword [rax], 0x22
jmp 0x14009b723
mov rdx, rsi
mov rcx, r9
call fcn.1401d9d70
mov eax, dword [rbx + 0x25c]
sub dword [rbx + 0x260], eax
mov rax, qword [rbx + 0x230]
mov dword [rbx + 0x25c], edi
test rax, rax
je 0x14009b780
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 0x14009b800
mov eax, dword [rbx + 0x28c]
test eax, eax
je 0x14009b7a3
cmp ecx, eax
jge 0x14009b800
add ecx, 0x1000
cmp ecx, eax
jl 0x14009b7b4
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.1401e812c
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009b85e
cmp rax, rsi
je 0x14009b800
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009b800
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...microstackILibAsyncSocket.c
mov edi, 0x50f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400a8b44
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.1400010e4
mov ecx, ebx
call fcn.1401db608
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x5d5
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.1400a8b44
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.1400010e4
mov ecx, ebx
call fcn.1401db608
int3