Function at 0x1400653ec
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 r15d, r15d
lea rbp, [rcx + 0x23c]
mov r14d, edx
mov rbx, rcx
mov esi, r15d
cmp dword [rbp], r15d
jg 0x140065a5d
or r13, 0xffffffffffffffff
lea edi, [r15 + 2]
lea r12d, [r15 + 1]
test edx, edx
je 0x1400657cd
cmp qword [rcx + 0x290], r15
je 0x1400654b2
cmp dword [rcx + 0x12c4], r15d
jne 0x1400654b2
mov r8d, dword [rcx + 0x258]
mov r9d, edi
mov rdx, qword [rcx + 0x250]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x250]
cmp eax, 5
jl 0x14006547d
cmp byte [rcx], 0x16
movsx eax, byte [rcx + 5]
jne 0x14006547d
cmp byte [rcx + 1], r12b
jb 0x14006547d
cmp eax, edi
jbe 0x1400654ab
mov rcx, qword [rbx + 0x290]
call fcn.140133ad0
mov rax, qword [rbx + 0x1f0]
mov qword [rbx + 0x290], r15
test rax, rax
je 0x1400654ab
mov r8, qword [rbx + 0x228]
mov edx, r13d
mov rcx, rbx
call rax
mov dword [rbx + 0x12c4], r12d
mov dword [rsp + 0x80], 0x1c
cmp qword [rbx + 0x290], r15
je 0x1400656d0
mov rcx, qword [rbx + 0x2a0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.140095e00
mov rax, qword [rbx + 0x2b0]
lea rcx, [rbx + 0x98]
xor r9d, r9d
mov r8d, dword [rax + 0x10]
mov rdx, qword [rax]
sub r8d, dword [rax]
add rdx, 0x2c0
lea rax, [rsp + 0x80]
add rdx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rsi, eax
test eax, eax
jle 0x14006569c
mov rdx, qword [rbx + 0x2b0]
add qword [rdx], rsi
mov rcx, qword [rbx + 0x290]
cmp dword [rbx + 0x12c0], r15d
jne 0x1400655cd
call fcn.140133a10
test eax, eax
je 0x1400655bf
cmp eax, r12d
je 0x140065579
mov rcx, qword [rbx + 0x290]
mov edx, eax
call fcn.140133df0
cmp eax, r12d
jne 0x140065694
mov dword [rbx + 0x288], r12d
mov esi, r13d
jmp 0x14006569c
mov rax, qword [rbx + 0x1f0]
mov dword [rbx + 0x12c0], r12d
mov dword [rbx + 0x28c], r12d
test rax, rax
je 0x140065694
mov r8, qword [rbx + 0x228]
mov edx, r13d
mov rcx, rbx
call rax
jmp 0x140065694
mov r8d, 0x1000
lea rdx, [0x1402030c0]
mov ecx, eax
call fcn.140099240
call fcn.1400994e0
test eax, eax
jne 0x1400655ab
jmp 0x14006569c
movsxd rax, dword [rbx + 0x248]
mov r8d, dword [rbx + 0x258]
mov rdx, rax
add rdx, qword [rbx + 0x250]
sub r8d, eax
call fcn.1401345e0
test eax, eax
jle 0x140065678
add dword [rbx + 0x248], eax
mov ecx, dword [rbx + 0x258]
cmp ecx, dword [rbx + 0x248]
jne 0x14006566c
mov eax, dword [rbx + 0x278]
add ecx, 0x1000
cmp ecx, eax
jl 0x140065620
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rdi, qword [rbx + 0x250]
mov dword [rbx + 0x258], ecx
movsxd rdx, ecx
mov rcx, rdi
call fcn.14016a0e4
mov qword [rbx + 0x250], rax
test rax, rax
je 0x140065a75
cmp rax, rdi
je 0x14006566c
mov r9, qword [rbx + 0x218]
test r9, r9
je 0x14006566c
mov rdx, qword [rbx + 0x228]
sub rax, rdi
mov r8, rax
mov rcx, rbx
call r9
mov rcx, qword [rbx + 0x290]
jmp 0x1400655cd
jns 0x14006569c
mov rcx, qword [rbx + 0x290]
mov edx, eax
call fcn.140133df0
mov rax, qword [rbx + 0x2b8]
cmp qword [rax], r15
jbe 0x14006569c
mov rcx, rbx
call fcn.1400652f4
mov rax, qword [rbx + 0x2b0]
cmp qword [rax], r15
jne 0x1400657cd
mov rcx, qword [rbx + 0x2a0]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.140095e30
mov rax, qword [rbx + 0x2b0]
mov qword [rax], r15
jmp 0x1400657cd
movsxd rax, dword [rbx + 0x248]
lea rdi, [rbx + 0x98]
mov r8d, dword [rbx + 0x258]
mov rdx, rax
add rdx, qword [rbx + 0x250]
sub r8d, eax
mov rcx, qword [rbx + 0x50]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp word [rdi], 0x17
mov esi, eax
jne 0x140065745
mov rax, qword [rdi + 8]
cmp rax, qword [0x140200190]
jne 0x140065745
mov eax, dword [rdi + 0x10]
cmp eax, dword [0x140200198]
jne 0x140065745
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rdi + 4], eax
mov eax, 2
mov word [rdi], ax
test esi, esi
jle 0x1400657cd
add dword [rbx + 0x248], esi
jmp 0x1400657cd
cmp dword [rbp], r15d
jg 0x1400657d3
movsxd rdx, dword [rbx + 0x244]
mov r9d, dword [rbx + 0x248]
cmp edx, r9d
je 0x1400657d3
test r9d, r9d
je 0x1400657d3
mov r10, qword [rbx + 0x1e8]
mov dword [rsp + 0x90], r15d
test r10, r10
je 0x1400657cd
lea rax, [rbx + 0x228]
mov qword [rsp + 0x30], rbp
lea rcx, [rbx + 0x208]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x90]
sub r9d, edx
mov rcx, rbx
add rdx, qword [rbx + 0x250]
call r10
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400657d3
add dword [rbx + 0x244], eax
cmp qword [rbx + 0x50], r13
jne 0x140065755
mov eax, dword [rbx + 0x248]
cmp dword [rbx + 0x244], eax
jne 0x1400657e8
mov qword [rbx + 0x244], r15
test esi, esi
jg 0x140065941
test r14d, r14d
je 0x140065941
cmp esi, r13d
jne 0x14006580f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x140065a5d
mov rcx, rbx
call fcn.1400647b0
mov rcx, qword [rbx + 0x50]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
mov qword [rbx + 0x50], r13
call fcn.1400647b0
mov rdi, qword [rbx + 0x290]
test rdi, rdi
je 0x14006587a
mov rcx, rdi
call fcn.140133ad0
mov rcx, qword [rbx + 0x270]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x270]
xor r8d, r8d
mov edx, r12d
mov qword [rbx + 0x290], r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov qword [rbx + 0x12d8], r15
mov dword [rbx + 0x12d0], r15d
test rdi, rdi
je 0x1400658bb
cmp dword [rbx + 0x28c], r15d
jne 0x1400658e7
mov rax, qword [rbx + 0x1f0]
test rax, rax
je 0x1400658b0
mov r8, qword [rbx + 0x228]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x28c], r15d
je 0x1400658ff
jmp 0x1400658e7
cmp dword [rbx + 0x240], r15d
jg 0x1400658e7
mov rax, qword [rbx + 0x1f0]
test rax, rax
je 0x1400658de
mov r8, qword [rbx + 0x228]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x240], r15d
jle 0x1400658ff
mov rax, qword [rbx + 0x1f8]
test rax, rax
je 0x1400658ff
mov rdx, qword [rbx + 0x228]
mov rcx, rbx
call rax
mov rcx, qword [rbx + 0x250]
mov dword [rbx + 0x28c], r15d
mov dword [rbx + 0x240], r15d
test rcx, rcx
je 0x140065a5d
lea rax, [0x1402140c0]
cmp rcx, rax
je 0x14006592e
call fcn.140163938
mov qword [rbx + 0x250], r15
mov dword [rbx + 0x258], r15d
jmp 0x140065a5d
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
je 0x1400659dd
mov eax, dword [rbx + 0x248]
mov r9, qword [rbx + 0x250]
sub eax, ecx
movsxd r8, eax
movsxd rax, dword [rbx + 0x258]
lea rdi, [r9 + rcx]
je 0x1400659a8
test r9, r9
jne 0x140065986
call fcn.14016369c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401631bc
jmp 0x1400659a8
test rdi, rdi
je 0x140065974
cmp rax, r8
jae 0x14006599d
call fcn.14016369c
mov dword [rax], 0x22
jmp 0x14006597f
mov rdx, rdi
mov rcx, r9
call fcn.14015d460
mov eax, dword [rbx + 0x244]
sub dword [rbx + 0x248], eax
mov rax, qword [rbx + 0x218]
mov dword [rbx + 0x244], r15d
test rax, rax
je 0x1400659dd
sub rdi, qword [rbx + 0x250]
mov rcx, rbx
mov rdx, qword [rbx + 0x228]
mov r8, rdi
call rax
mov ecx, dword [rbx + 0x258]
mov eax, ecx
sub eax, dword [rbx + 0x248]
cmp eax, 0x400
jge 0x140065a5d
mov eax, dword [rbx + 0x278]
test eax, eax
je 0x140065a00
cmp ecx, eax
jge 0x140065a5d
add ecx, 0x1000
cmp ecx, eax
jl 0x140065a11
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rdi, qword [rbx + 0x250]
mov dword [rbx + 0x258], ecx
movsxd rdx, ecx
mov rcx, rdi
call fcn.14016a0e4
mov qword [rbx + 0x250], rax
test rax, rax
je 0x140065abb
cmp rax, rdi
je 0x140065a5d
mov r9, qword [rbx + 0x218]
test r9, r9
je 0x140065a5d
mov rdx, qword [rbx + 0x228]
sub rax, rdi
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, 0x46e
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
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.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x51c
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006e59c
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.14015ecf8
int3