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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor eax, eax
mov r13, rcx
mov qword [rsp + 0x70], rax
test r8, r8
mov qword [rbp - 0x80], rax
mov rdi, r9
mov qword [rbp - 0x78], rax
mov rsi, r8
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
lea rax, [rsp + 0x54]
cmovne rax, rdx
mov dword [rbp - 0x80], 1
mov qword [rbp - 0x58], rax
mov eax, 1
cmovne eax, r8d
mov dword [rsp + 0x70], 0x1c
mov dword [rbp - 0x60], eax
xor ebx, ebx
lea rax, [rbp - 0x60]
mov dword [rbp - 0x78], 0x40
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x70], rax
mov rax, qword [rcx + 0xd0]
mov rcx, qword [rcx + 0xa8]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
test rax, rax
je 0x1403281fb
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
call rax
jmp 0x140328237
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x50]
mov r8d, 1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
movsxd rcx, eax
mov qword [rsp + 0x128], r14
cmp rcx, 0xffffffffffffffff
jne 0x1403282c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp eax, 0x2738
jne 0x140328265
mov r14d, dword [rsp + 0x50]
cmp r14, rsi
cmovg r14, rsi
jmp 0x1403282ca
sub ecx, 0x2744
je 0x140328285
cmp ecx, 2
mov rcx, r13
je 0x14032827d
mov r8d, setsockopt
jmp 0x14032828e
xor edx, edx
lea r8d, [rdx + 0x1b]
jmp 0x140328293
mov r8d, 0x1a
mov rcx, r13
mov edx, 7
call fcn.1403147c0
test rdi, rdi
je 0x1403282bc
mov rcx, rdi
call fcn.140303150
lea rcx, [rdi + 8]
call fcn.140303150
mov dword [rdi + 0x10], ebx
mov qword [rdi + 0x14], 0xffffffffffffffff
mov byte [rdi + 0x20], bl
or rax, 0xffffffffffffffff
jmp 0x14032843a
mov r14d, dword [rsp + 0x50]
test byte [rbp + 0x80], 1
je 0x1403282ea
mov rcx, qword [r13 + 0xa8]
lea r8, [rdi + 0x1c]
mov r9, rdi
lea rdx, [rbp - 0x50]
call fcn.140328ef0
cmp r14, 0xffffffffffffffff
je 0x14032845c
cmp qword [r13 + 0xd0], rbx
je 0x14032845c
cmp dword [rbp + 0x80], ebx
je 0x14032845c
cmp dword [rbp - 0x78], 0x10
movzx eax, word [r13 + 0x80]
cmovae rbx, qword [rbp - 0x70]
mov word [rdi + 0x1e], ax
test rbx, rbx
je 0x14032845c
mov qword [rsp + 0x120], r15
cmp dword [rbx + 8], 0x29
jne 0x1403283aa
cmp dword [rbx + 0xc], 0x13
jne 0x1403283aa
cmp qword [rbx], 0x24
jb 0x1403283aa
lea rdx, [rbx + 0x10]
lea rcx, [rdi + 8]
call fcn.140303fe0
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x10], eax
test eax, eax
je 0x1403283aa
mov edx, dword [rbx + 0x20]
lea rcx, [rsp + 0x60]
mov r8d, 0xa
call fcn.1403692f0
mov rdx, rax
lea rcx, [rdi + 8]
call fcn.140304330
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14032839c
cmp eax, 0xffffffff
je 0x1403283aa
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1403283aa
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
cmp dword [rbx + 8], 0
jne 0x1403283e4
cmp dword [rbx + 0xc], 0x13
jne 0x1403283e4
cmp qword [rbx], 0x18
jb 0x1403283e4
mov edx, dword [rbx + 0x10]
lea r8, [rsp + 0x5c]
mov rcx, qword [r13 + 0xa8]
call qword [sym.imp.WS2_32.dll_WSANtohl]
mov edx, dword [rsp + 0x5c]
lea rcx, [rdi + 8]
call fcn.140304060
mov eax, dword [rbx + 0x14]
mov dword [rdi + 0x10], eax
cmp qword [rbx], 0x14
jne 0x140328408
mov eax, dword [rbx + 8]
cmp eax, 0x29
jne 0x1403283f8
cmp dword [rbx + 0xc], 0x15
je 0x140328402
test eax, eax
jne 0x140328408
cmp dword [rbx + 0xc], 4
jne 0x140328408
mov eax, dword [rbx + 0x10]
mov dword [rdi + 0x14], eax
mov rcx, qword [rbx]
mov edx, dword [rbp - 0x78]
add rcx, 7
add rdx, qword [rbp - 0x70]
and rcx, 0xfffffffffffffff8
add rbx, rcx
lea rcx, [rbx + 0x10]
cmp rcx, rdx
ja 0x14032842f
test rbx, rbx
jne 0x140328333
mov r15, qword [rsp + 0x120]
mov rax, r14
mov r14, qword [rsp + 0x128]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0x130
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, r14
jmp 0x14032843a