Function at 0x14009b3e4
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 0x14009b43d
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14009b41b
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.1400aba58
jmp 0x14009bb48
mov ebp, 2
or r13, 0xffffffffffffffff
lea r12d, [rbp - 1]
test r15d, r15d
je 0x14009b8cc
cmp qword [rcx + 0x2a8], rdi
je 0x14009b4d3
cmp dword [rcx + 0x12dc], edi
jne 0x14009b4d3
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 0x14009b49e
cmp byte [rcx], 0x16
movsx eax, byte [rcx + 5]
jne 0x14009b49e
cmp byte [rcx + 1], r12b
jb 0x14009b49e
cmp eax, ebp
jbe 0x14009b4cc
mov rcx, qword [rbx + 0x2a8]
call fcn.14019fcf0
mov rax, qword [rbx + 0x208]
mov qword [rbx + 0x2a8], rdi
test rax, rax
je 0x14009b4cc
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 0x14009b74b
mov rcx, qword [rbx + 0x2b8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e2700
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 0x14009b52d
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009b550
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 0x14009b717
mov rcx, qword [rbx + 0x2c8]
cdqe
add qword [rcx], rax
cmp dword [rbx + 0x12d8], edi
jne 0x14009b5f6
mov rcx, qword [rbx + 0x2a8]
call fcn.14019fc10
test eax, eax
je 0x14009b5ed
cmp eax, r12d
je 0x14009b5a6
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a0220
cmp eax, r12d
jne 0x14009b5cf
mov dword [rbx + 0x2a0], r12d
mov esi, r13d
jmp 0x14009b5f6
mov rax, qword [rbx + 0x208]
mov dword [rbx + 0x12d8], r12d
mov dword [rbx + 0x2a4], r12d
test rax, rax
je 0x14009b5cf
mov r8, qword [rbx + 0x240]
mov edx, r13d
mov rcx, rbx
call rax
mov rcx, rbx
call fcn.14009b258
jmp 0x14009b5f6
mov r8d, 0x1000
lea rdx, [0x14030f3a0]
mov ecx, eax
call fcn.1400db200
call fcn.1400db380
test eax, eax
jne 0x14009b5d9
cmp dword [rbx + 0x12d8], r12d
jne 0x14009b717
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jbe 0x14009b717
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.1401a0be0
test eax, eax
jle 0x14009b6f3
test eax, eax
jle 0x14009b6bd
add dword [rbx + 0x260], eax
mov ecx, dword [rbx + 0x270]
cmp ecx, dword [rbx + 0x260]
jne 0x14009b6bd
mov eax, dword [rbx + 0x28c]
add ecx, 0x1000
cmp ecx, eax
jl 0x14009b671
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.1401e8a3c
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009bb60
cmp rax, rbp
je 0x14009b6bd
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009b6bd
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.1401a0be0
test eax, eax
jg 0x14009b642
mov ebp, 2
test eax, eax
jns 0x14009b717
mov rcx, qword [rbx + 0x2a8]
mov edx, eax
call fcn.1401a0220
mov rax, qword [rbx + 0x2d0]
cmp qword [rax], rdi
jbe 0x14009b717
mov rcx, rbx
call fcn.14009b258
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], rdi
jne 0x14009b8cc
mov rcx, qword [rbx + 0x2b8]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.1400e2730
mov rax, qword [rbx + 0x2c8]
mov qword [rax], rdi
jmp 0x14009b8cc
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 0x14009b77c
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14009b79f
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 0x14009b819
cmp word [rbx + 0xb0], 0x17
jne 0x14009b7e9
mov rax, qword [rbx + 0xb8]
cmp rax, qword [0x140303e20]
jne 0x14009b7e9
mov eax, dword [rbx + 0xc0]
cmp eax, dword [0x140303e28]
jne 0x14009b7e9
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 0x14009b7f8
mov rcx, qword [rax + 8]
jmp 0x14009b7fb
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.1400aba58
test esi, esi
jle 0x14009b8cc
add dword [rbx + 0x260], esi
jmp 0x14009b8cc
cmp dword [r14], edi
jg 0x14009b8d6
movsxd rdx, dword [rbx + 0x25c]
mov r9d, dword [rbx + 0x260]
cmp edx, r9d
je 0x14009b8d6
test r9d, r9d
je 0x14009b8d6
mov r10, qword [rbx + 0x200]
mov dword [rsp + 0x90], edi
test r10, r10
je 0x14009b8cc
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 0x14009b8cc
mov eax, dword [rbx + 0x260]
mov edx, dword [rbx + 0x25c]
sub eax, edx
mov ecx, dword [rsp + 0x90]
cmp ecx, eax
jg 0x14009b8cc
test ecx, ecx
je 0x14009b8d6
lea eax, [rdx + rcx]
mov dword [rbx + 0x25c], eax
cmp qword [rbx + 0x68], r13
jne 0x14009b82c
mov eax, dword [rbx + 0x260]
cmp dword [rbx + 0x25c], eax
jne 0x14009b8eb
mov qword [rbx + 0x25c], rdi
test esi, esi
jg 0x14009ba2d
test r15d, r15d
je 0x14009ba2d
cmp esi, r13d
jne 0x14009b912
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x14009bb48
mov rcx, rbx
call fcn.14009a51c
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.14009a51c
mov rsi, qword [rbx + 0x2a8]
test rsi, rsi
je 0x14009b96e
mov rcx, rsi
call fcn.14019fcf0
jmp 0x14009b954
pause
xor eax, eax
lock cmpxchg dword [rbx + 0x288], r12d
je 0x14009b952
mov qword [rbx + 0x2a8], rdi
mov dword [rbx + 0x288], edi
mov qword [rbx + 0x12f0], rdi
mov dword [rbx + 0x12e8], edi
test rsi, rsi
je 0x14009b9ac
cmp dword [rbx + 0x2a4], edi
jne 0x14009b9d6
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009b9a2
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x2a4], edi
je 0x14009b9ee
jmp 0x14009b9d6
cmp dword [rbx + 0x258], edi
jg 0x14009b9d6
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x14009b9ce
mov r8, qword [rbx + 0x240]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x258], edi
jle 0x14009b9ee
mov rax, qword [rbx + 0x210]
test rax, rax
je 0x14009b9ee
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 0x14009bb48
lea rax, [0x1403203a0]
cmp rcx, rax
je 0x14009ba1b
call fcn.1401e2208
mov qword [rbx + 0x268], rdi
mov dword [rbx + 0x270], edi
jmp 0x14009bb48
movsxd rcx, dword [rbx + 0x25c]
test ecx, ecx
je 0x14009bac8
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 0x14009ba94
test r9, r9
jne 0x14009ba72
call fcn.1401e20b0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e1350
jmp 0x14009ba94
test rsi, rsi
je 0x14009ba60
cmp rax, r8
jae 0x14009ba89
call fcn.1401e20b0
mov dword [rax], 0x22
jmp 0x14009ba6b
mov rdx, rsi
mov rcx, r9
call fcn.1401da680
mov eax, dword [rbx + 0x25c]
sub dword [rbx + 0x260], eax
mov rax, qword [rbx + 0x230]
mov dword [rbx + 0x25c], edi
test rax, rax
je 0x14009bac8
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 0x14009bb48
mov eax, dword [rbx + 0x28c]
test eax, eax
je 0x14009baeb
cmp ecx, eax
jge 0x14009bb48
add ecx, 0x1000
cmp ecx, eax
jl 0x14009bafc
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.1401e8a3c
mov qword [rbx + 0x268], rax
test rax, rax
je 0x14009bba6
cmp rax, rsi
je 0x14009bb48
mov r9, qword [rbx + 0x230]
test r9, r9
je 0x14009bb48
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.1400a8e8c
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.1401dbf18
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.1400a8e8c
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.1401dbf18
int3