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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x18009e040]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor eax, eax
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
mov byte [rbp - 0x40], al
xor esi, esi
mov r15, rdx
cmp dword [0x1800a4e44], 0xffffffff
mov r12, rcx
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
jne 0x180052dbf
lea rcx, [0x1800a4e60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x180052dd7
mov rcx, qword [0x1800a4ae0]
lea rdx, [rbp - 0x60]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
mov qword [rsp + 0x240], r14
cmp rbx, 1
jl 0x1800531e6
mov rcx, qword [rbp - 0x48]
mov rax, 0xffffffffffffffff
add rcx, 1
cmovb rcx, rax
call fcn.1800656cc
mov r14, rax
test rax, rax
je 0x1800531e6
mov r8, qword [rbp - 0x48]
xor edx, edx
inc r8
mov qword [rsp + 0x290], rdi
mov rcx, rax
mov qword [rsp + 0x248], r13
call fcn.180079d00
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.18007a0c0
mov rdi, r14
test r12, r12
je 0x180052e50
lea rax, [r14 + 0x20]
mov qword [r12], rax
mov r8, qword [rdi + 0x18]
add r14, 0x20
mov r13d, 0x19000
movabs rax, 0xf6d3a1c9e486
movabs r12, 0x6a5d85c495e6fbc3
cmp rbx, r8
jge 0x18005310e
sub r8, rbx
mov rbx, rsi
mov qword [rdi + 0x18], r8
test r15, r15
je 0x1800530c0
xor eax, eax
movaps xmmword [rsp + 0x230], xmm6
movsd xmm6, qword [0x18007f050]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
mov r15d, esi
mov rax, qword [rdi + 0x10]
movups xmmword [rsp + 0x38], xmm0
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x38], rax
nop dword [rax]
mov rcx, r8
movsxd rax, r13d
sub rcx, rbx
cmp rcx, rax
jge 0x180052ed4
mov r13d, r8d
sub r13d, ebx
cmp dword [0x1800a4e44], 0xffffffff
jne 0x180052eef
lea rcx, [0x1800a4e60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12d, esi
jmp 0x180052f10
mov rcx, qword [0x1800a4ae0]
lea rdx, [r14 + rbx]
xor r9d, r9d
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r12, eax
test eax, eax
jle 0x180052f10
add rbx, r12
mov rdx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, rbx
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi + 0x18]
mulsd xmm1, xmm6
divsd xmm1, xmm0
cvttsd2si rcx, xmm1
cmp qword [rdx + 0x10], rcx
je 0x180053090
mov qword [rdx + 0x10], rcx
mov dword [rsp + 0x48], ecx
test r15d, r15d
jne 0x180053031
movabs rax, 0x6a5d85c495e6fbc3
cmp qword [rdi], rax
jne 0x180053031
cmp qword [rdi + 8], 0x63d
jne 0x180053031
movabs rax, 0xf6d3a1c9e486
cmp qword [rdi + 0x10], rax
jne 0x180053031
cmp rbx, 0x40
jl 0x180053031
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x104
lea r15d, [rdx + 1]
call fcn.180079d00
mov r9d, dword [0x1800a4d24]
lea r8, [rbp + 0x10]
lea rdx, [0x1800a4d40]
lea rcx, [0x1800a4c20]
call fcn.180055870
movsxd rax, dword [0x1800a4d24]
lea r9, [rbp - 0x68]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x68], rsi
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea edx, [r15 + 0x3f]
mov rcx, r14
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
call fcn.1800540e0
movabs r9, 0xd8a5f96af3e8fd
cmp qword [rbp - 0x68], rsi
je 0x18005302a
mov rdx, qword [rbp - 0x20]
mov eax, 2
cmp qword [rbp - 0x30], r9
mov qword [rbp - 0x70], rdx
cmove r15d, eax
mov qword [rsp + 0x38], rdx
mov rdx, qword [rsp + 0x30]
jmp 0x18005303b
movabs r9, 0xd8a5f96af3e8fd
mov rax, qword [rbp - 0x70]
sub rax, qword [rdi + 0x18]
add rax, rbx
mov qword [rsp + 0x40], rax
cmp r15d, 2
jne 0x18005306e
movups xmm0, xmmword [rsp + 0x38]
lea rcx, [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movaps xmmword [rsp + 0x50], xmm0
movsd qword [rsp + 0x60], xmm1
jmp 0x18005308d
cmp qword [rdi], r9
jne 0x180053090
movups xmm0, xmmword [rsp + 0x38]
lea rcx, [rsp + 0x70]
movsd xmm1, qword [rsp + 0x48]
movaps xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
call qword [rdx + htons]
mov r8, qword [rdi + 0x18]
cmp rbx, r8
je 0x1800530a2
test r12d, r12d
jg 0x180052ec0
mov rcx, qword [rsp + 0x30]
call fcn.1800656d4
movaps xmm6, xmmword [rsp + 0x230]
movabs r12, 0x6a5d85c495e6fbc3
jmp 0x180053104
cmp dword [0x1800a4e44], 0xffffffff
jne 0x1800530da
lea rcx, [0x1800a4e60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x1800530f1
mov rcx, qword [0x1800a4ae0]
lea rdx, [r14 + rbx]
sub r8d, ebx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov r8, qword [rdi + 0x18]
movsxd rcx, eax
add rbx, rcx
cmp rbx, r8
je 0x180053104
test eax, eax
jg 0x1800530c0
movabs rax, 0xf6d3a1c9e486
mov r13, qword [rsp + 0x248]
cmp qword [rdi], r12
jne 0x1800531d8
cmp qword [rdi + 8], 0x63d
jne 0x1800531d8
cmp qword [rdi + 0x10], rax
jne 0x1800531d8
xor edx, edx
mov qword [rbp - 0x70], rsi
mov r8d, 0x104
lea rcx, [rbp + 0x10]
call fcn.180079d00
mov r9d, dword [0x1800a4d24]
lea r8, [rbp + 0x10]
lea rdx, [0x1800a4d40]
lea rcx, [0x1800a4c20]
call fcn.180055870
movsxd rax, dword [0x1800a4d24]
lea r9, [rbp - 0x70]
mov rdx, qword [rdi + 0x18]
mov r8, r14
mov qword [rsp + 0x28], rax
mov rcx, r14
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.1800540e0
cmp qword [rbp - 0x70], rsi
je 0x1800531d8
movups xmm0, xmmword [r14]
lea rdi, [rbp - 0x60]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [r14 + 0x10]
movq rax, xmm1
movups xmmword [rbp - 0x50], xmm1
test rax, rax
je 0x1800531d3
mov rax, r14
nop word [rax + rax]
movzx ecx, byte [rax + 0x18]
inc rsi
mov byte [rax], cl
lea rax, [rax + 1]
cmp rsi, qword [rbp - 0x50]
jb 0x1800531c0
mov byte [rsi + r14], 0
mov rax, qword [rdi + 0x10]
mov rdi, qword [rsp + 0x290]
jmp 0x1800531e8
xor eax, eax
mov r14, qword [rsp + 0x240]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180056f00
add rsp, 0x250
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret