Function at 0x1400757d0
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 + 0x24c]
mov r14d, edx
mov rbx, rcx
mov edi, r15d
cmp dword [rbp], r15d
jg 0x140075ea9
or r13, 0xffffffffffffffff
lea esi, [r15 + 2]
lea r12d, [r15 + 1]
test edx, edx
je 0x140075c1c
cmp qword [rcx + 0x2a0], r15
je 0x140075896
cmp dword [rcx + 0x12d4], r15d
jne 0x140075896
mov r8d, dword [rcx + 0x268]
mov r9d, esi
mov rdx, qword [rcx + 0x260]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x260]
cmp eax, 5
jl 0x140075861
cmp byte [rcx], 0x16
movsx eax, byte [rcx + 5]
jne 0x140075861
cmp byte [rcx + 1], r12b
jb 0x140075861
cmp eax, esi
jbe 0x14007588f
mov rcx, qword [rbx + 0x2a0]
call fcn.14016c9e0
mov rax, qword [rbx + 0x200]
mov qword [rbx + 0x2a0], r15
test rax, rax
je 0x14007588f
mov r8, qword [rbx + 0x238]
mov edx, r13d
mov rcx, rbx
call rax
mov dword [rbx + 0x12d4], r12d
mov dword [rsp + 0x80], 0x1c
cmp qword [rbx + 0x2a0], r15
je 0x140075af6
mov rcx, qword [rbx + 0x2b0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400af940
mov rax, qword [rbx + 0x2c0]
lea rdx, [rbx + 0x2d0]
xor r9d, r9d
mov r8d, dword [rax + 0x10]
sub r8d, dword [rax]
mov rax, qword [rax]
add rdx, rax
cmp word [rbx + 0x70], r12w
jne 0x1400758f0
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140075913
lea rax, [rsp + 0x80]
lea rcx, [rbx + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test eax, eax
jle 0x140075ac2
mov rcx, qword [rbx + 0x2c0]
cdqe
add qword [rcx], rax
mov rcx, qword [rbx + 0x2a0]
cmp dword [rbx + 0x12d0], r15d
jne 0x1400759c5
call fcn.14016c910
test eax, eax
je 0x1400759b7
cmp eax, r12d
je 0x140075971
mov rcx, qword [rbx + 0x2a0]
mov edx, eax
call fcn.14016cee0
cmp eax, r12d
jne 0x140075aba
mov dword [rbx + 0x298], r12d
mov edi, r13d
jmp 0x140075ac2
mov rax, qword [rbx + 0x200]
mov dword [rbx + 0x12d0], r12d
mov dword [rbx + 0x29c], r12d
test rax, rax
je 0x140075aba
mov r8, qword [rbx + 0x238]
mov edx, r13d
mov rcx, rbx
call rax
jmp 0x140075aba
mov r8d, 0x1000
lea rdx, [0x1402cffc0]
mov ecx, eax
call fcn.1400a8110
call fcn.1400a8370
test eax, eax
jne 0x1400759a3
jmp 0x140075ac2
movsxd rax, dword [rbx + 0x258]
mov r8d, dword [rbx + 0x268]
mov rdx, rax
add rdx, qword [rbx + 0x260]
sub r8d, eax
call fcn.14016d7b0
test eax, eax
jle 0x140075a9e
test eax, eax
jle 0x140075a68
add dword [rbx + 0x258], eax
mov ecx, dword [rbx + 0x268]
cmp ecx, dword [rbx + 0x258]
jne 0x140075a68
mov eax, dword [rbx + 0x288]
add ecx, 0x1000
cmp ecx, eax
jl 0x140075a1c
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rsi, qword [rbx + 0x260]
mov dword [rbx + 0x268], ecx
movsxd rdx, ecx
mov rcx, rsi
call fcn.1401b3804
mov qword [rbx + 0x260], rax
test rax, rax
je 0x140075ec1
cmp rax, rsi
je 0x140075a68
mov r9, qword [rbx + 0x228]
test r9, r9
je 0x140075a68
mov rdx, qword [rbx + 0x238]
sub rax, rsi
mov r8, rax
mov rcx, rbx
call r9
movsxd rax, dword [rbx + 0x258]
mov r8d, dword [rbx + 0x268]
mov rdx, rax
add rdx, qword [rbx + 0x260]
sub r8d, eax
mov rcx, qword [rbx + 0x2a0]
call fcn.14016d7b0
test eax, eax
jg 0x1400759ed
mov esi, 2
test eax, eax
jns 0x140075ac2
mov rcx, qword [rbx + 0x2a0]
mov edx, eax
call fcn.14016cee0
mov rax, qword [rbx + 0x2c8]
cmp qword [rax], r15
jbe 0x140075ac2
mov rcx, rbx
call fcn.140075650
mov rax, qword [rbx + 0x2c0]
cmp qword [rax], r15
jne 0x140075c1c
mov rcx, qword [rbx + 0x2b0]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.1400af970
mov rax, qword [rbx + 0x2c0]
mov qword [rax], r15
jmp 0x140075c1c
movsxd rax, dword [rbx + 0x258]
xor r9d, r9d
mov r8d, dword [rbx + 0x268]
mov rdx, rax
add rdx, qword [rbx + 0x260]
sub r8d, eax
cmp word [rbx + 0x70], r12w
jne 0x140075b27
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140075b4a
lea rax, [rsp + 0x80]
lea rcx, [rbx + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp word [rbx + 0x70], r12w
je 0x140075b94
cmp word [rbx + 0xa8], 0x17
jne 0x140075b94
mov rax, qword [rbx + 0xb0]
cmp rax, qword [0x1402cdb70]
jne 0x140075b94
mov eax, dword [rbx + 0xb8]
cmp eax, dword [0x1402cdb78]
jne 0x140075b94
mov ecx, dword [rbx + 0xbc]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0xac], eax
mov word [rbx + 0xa8], si
test edi, edi
jle 0x140075c1c
add dword [rbx + 0x258], edi
jmp 0x140075c1c
cmp dword [rbp], r15d
jg 0x140075c22
movsxd rdx, dword [rbx + 0x254]
mov r9d, dword [rbx + 0x258]
cmp edx, r9d
je 0x140075c22
test r9d, r9d
je 0x140075c22
mov r10, qword [rbx + 0x1f8]
mov dword [rsp + 0x90], r15d
test r10, r10
je 0x140075c1c
lea rax, [rbx + 0x238]
mov qword [rsp + 0x30], rbp
lea rcx, [rbx + 0x218]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x90]
sub r9d, edx
mov rcx, rbx
add rdx, qword [rbx + 0x260]
call r10
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x140075c22
add dword [rbx + 0x254], eax
cmp qword [rbx + 0x60], r13
jne 0x140075ba4
mov eax, dword [rbx + 0x258]
cmp dword [rbx + 0x254], eax
jne 0x140075c37
mov qword [rbx + 0x254], r15
test edi, edi
jg 0x140075d8d
test r14d, r14d
je 0x140075d8d
cmp edi, r13d
jne 0x140075c5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x140075ea9
mov rcx, rbx
call fcn.1400749e0
mov rcx, qword [rbx + 0x60]
mov edx, esi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
mov qword [rbx + 0x60], r13
call fcn.1400749e0
mov rdi, qword [rbx + 0x2a0]
test rdi, rdi
je 0x140075cc6
mov rcx, rdi
call fcn.14016c9e0
mov rcx, qword [rbx + 0x280]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x280]
xor r8d, r8d
mov edx, r12d
mov qword [rbx + 0x2a0], r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov qword [rbx + 0x12e8], r15
mov dword [rbx + 0x12e0], r15d
test rdi, rdi
je 0x140075d07
cmp dword [rbx + 0x29c], r15d
jne 0x140075d33
mov rax, qword [rbx + 0x200]
test rax, rax
je 0x140075cfc
mov r8, qword [rbx + 0x238]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x29c], r15d
je 0x140075d4b
jmp 0x140075d33
cmp dword [rbx + 0x250], r15d
jg 0x140075d33
mov rax, qword [rbx + 0x200]
test rax, rax
je 0x140075d2a
mov r8, qword [rbx + 0x238]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x250], r15d
jle 0x140075d4b
mov rax, qword [rbx + 0x208]
test rax, rax
je 0x140075d4b
mov rdx, qword [rbx + 0x238]
mov rcx, rbx
call rax
mov rcx, qword [rbx + 0x260]
mov dword [rbx + 0x29c], r15d
mov dword [rbx + 0x250], r15d
test rcx, rcx
je 0x140075ea9
lea rax, [0x1402e1fc0]
cmp rcx, rax
je 0x140075d7a
call fcn.1401ad038
mov qword [rbx + 0x260], r15
mov dword [rbx + 0x268], r15d
jmp 0x140075ea9
movsxd rcx, dword [rbx + 0x254]
test ecx, ecx
je 0x140075e29
mov eax, dword [rbx + 0x258]
mov r9, qword [rbx + 0x260]
sub eax, ecx
movsxd r8, eax
movsxd rax, dword [rbx + 0x268]
lea rdi, [r9 + rcx]
je 0x140075df4
test r9, r9
jne 0x140075dd2
call fcn.1401acd9c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401ac8bc
jmp 0x140075df4
test rdi, rdi
je 0x140075dc0
cmp rax, r8
jae 0x140075de9
call fcn.1401acd9c
mov dword [rax], 0x22
jmp 0x140075dcb
mov rdx, rdi
mov rcx, r9
call fcn.1401a6b60
mov eax, dword [rbx + 0x254]
sub dword [rbx + 0x258], eax
mov rax, qword [rbx + 0x228]
mov dword [rbx + 0x254], r15d
test rax, rax
je 0x140075e29
sub rdi, qword [rbx + 0x260]
mov rcx, rbx
mov rdx, qword [rbx + 0x238]
mov r8, rdi
call rax
mov ecx, dword [rbx + 0x268]
mov eax, ecx
sub eax, dword [rbx + 0x258]
cmp eax, 0x400
jge 0x140075ea9
mov eax, dword [rbx + 0x288]
test eax, eax
je 0x140075e4c
cmp ecx, eax
jge 0x140075ea9
add ecx, 0x1000
cmp ecx, eax
jl 0x140075e5d
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rdi, qword [rbx + 0x260]
mov dword [rbx + 0x268], ecx
movsxd rdx, ecx
mov rcx, rdi
call fcn.1401b3804
mov qword [rbx + 0x260], rax
test rax, rax
je 0x140075f07
cmp rax, rdi
je 0x140075ea9
mov r9, qword [rbx + 0x228]
test r9, r9
je 0x140075ea9
mov rdx, qword [rbx + 0x238]
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, 0x4cf
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
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.1401a83f8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x58f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14007f3d4
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.1401a83f8
int3