Function at 0x140082440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
xorps xmm0, xmm0
xor esi, esi
mov byte [rsp + 0x58], al
cmp dword [0x1400d1528], 0xffffffff
mov r15, rdx
mov r14, rcx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
jne 0x140082495
lea rcx, [0x1400d1500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, esi
jmp 0x1400824bd
mov rcx, qword [0x1400d14e0]
lea rdx, [rsp + 0x38]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [sym.imp.WS2_32.dll_recv]
lea rcx, [0x1400d1500]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movsxd rbx, ebx
mov qword [rsp + 0x1d8], rdi
cmp rbx, 1
jl 0x1400827af
mov rcx, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
add rcx, 1
cmovb rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [rsp + 0x50]
xor edx, edx
inc r8
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rdx, [rsp + 0x38]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
cmp byte [0x1400c2058], sil
jne 0x14008252b
movzx eax, byte [rsp + 0x38]
and byte [0x1400c2059], 6
mov byte [0x1400c2058], al
mov qword [r14], rdi
mov r8, qword [rdi + 0x18]
mov qword [rsp + 0x1d0], rbp
cmp rbx, r8
jge 0x140082695
movzx eax, byte [0x1400c2059]
mov ebp, 0x19000
mov byte [0x1400d1e0a], al
mov byte [0x1400d1e08], 3
test r15, r15
je 0x140082640
mov qword [rsp + 0x190], r12
mov r12, qword [r15 + 8]
movaps xmmword [rsp + 0x180], xmm6
movsd xmm6, qword [0x1400b1450]
mov rcx, r8
movsxd rax, ebp
sub rcx, rbx
cmp rcx, rax
jge 0x140082594
mov ebp, r8d
sub ebp, ebx
cmp dword [0x1400d1528], 0xffffffff
jne 0x1400825af
lea rcx, [0x1400d1500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14d, esi
jmp 0x1400825d6
mov rcx, qword [0x1400d14e0]
lea rdx, [rdi + rbx]
xor r9d, r9d
mov r8d, ebp
call qword [sym.imp.WS2_32.dll_recv]
lea rcx, [0x1400d1500]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [rdi + 0x18]
xorps xmm1, xmm1
movsxd rcx, r14d
xorps xmm0, xmm0
add rbx, rcx
cvtsi2sd xmm0, r8
cvtsi2sd xmm1, rbx
mulsd xmm1, xmm6
divsd xmm1, xmm0
cvttsd2si rcx, xmm1
cmp qword [r15 + 0x10], rcx
je 0x140082610
xor edx, edx
mov qword [r15 + 0x10], rcx
call r12
mov r8, qword [rdi + 0x18]
cmp rbx, r8
je 0x14008261e
test r14d, r14d
jg 0x140082581
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
movaps xmm6, xmmword [rsp + 0x180]
mov r12, qword [rsp + 0x190]
jmp 0x1400826ab
cmp dword [0x1400d1528], 0xffffffff
jne 0x14008265a
lea rcx, [0x1400d1500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, esi
jmp 0x140082680
mov rcx, qword [0x1400d14e0]
lea rdx, [rdi + rbx]
sub r8d, ebx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
lea rcx, [0x1400d1500]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [rdi + 0x18]
movsxd rcx, ebp
add rbx, rcx
cmp rbx, r8
je 0x1400826ab
test ebp, ebp
jg 0x140082640
jmp 0x1400826ab
jne 0x1400826ab
movzx eax, byte [0x1400c2059]
mov byte [0x1400d1e0a], al
mov byte [0x1400d1e08], 3
mov rbp, qword [rsp + 0x1d0]
movabs rax, 0x6a5d85c495e6fbc3
cmp qword [rdi], rax
jne 0x1400827ab
cmp qword [rdi + 8], 0x63d
jne 0x1400827ab
movabs rax, 0xf6d3a1c9e486
cmp qword [rdi + 0x10], rax
jne 0x1400827ab
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [0x1400d1164]
lea r8, [rsp + 0x60]
lea rdx, [0x1400d1180]
lea rcx, [0x1400d1060]
call fcn.140084ae0
movsxd rax, dword [0x1400d1164]
lea r9, [rsp + 0x30]
mov rdx, qword [rdi + 0x18]
lea r8, [rdi + 0x20]
mov qword [rsp + 0x28], rax
lea rcx, [rdi + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
sub rdx, 0x20
mov qword [rsp + 0x20], rax
call fcn.1400832f0
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400827ab
mov rax, qword [rdi + 0x20]
mov qword [rdi], rax
mov rax, qword [rdi + 0x28]
mov qword [rdi + 8], rax
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x10], rcx
cmp rcx, rdx
ja 0x1400827af
movzx eax, byte [0x1400c2059]
add al, 2
mov byte [0x1400d1e09], 0xda
mov byte [0x1400d1e0b], al
test rcx, rcx
je 0x1400827a6
lea rcx, [rdi + 0x20]
movzx eax, byte [rcx + 0x18]
inc rsi
mov byte [rcx], al
lea rcx, [rcx + 1]
cmp rsi, qword [rdi + 0x10]
jb 0x140082793
mov byte [rsi + rdi + 0x20], 0
mov al, 1
jmp 0x1400827b1
xor al, al
mov rdi, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x198
pop r15
pop r14
pop rsi
pop rbx
ret