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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140090100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbp, qword [0x140094a30]
xor ebx, ebx
mov rsi, rcx
mov edi, ebx
mov ecx, 4
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x24]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140004300
add edi, eax
mov ecx, 4
sub ecx, edi
cmp edi, 4
jl 0x140004170
mov rbp, qword [0x140094a30]
mov edi, ebx
mov ecx, 8
nop
movsxd rax, edi
lea rdx, [rsp + 0x28]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400043f5
add edi, eax
mov ecx, 8
sub ecx, edi
cmp edi, 8
jl 0x1400041b0
mov rbp, qword [0x140094a30]
mov edi, ebx
mov ecx, 1
nop
movsxd rax, edi
lea rdx, [rsp + 0x20]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400043a8
add edi, eax
mov ecx, 1
sub ecx, edi
cmp edi, 1
jl 0x1400041f0
mov edi, dword [rsp + 0x24]
cmp edi, 0x1f40
jle 0x140004267
lea rdx, str.invalid_packet_n
lea rcx, [0x140092820]
call fcn.140006e40
mov eax, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140015600
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rbp, qword [0x140094a30]
test edi, edi
jle 0x1400042ac
mov eax, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rdx, ebx
xor r9d, r9d
add rdx, rsi
mov r8d, eax
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14000436e
add ebx, eax
mov eax, edi
sub eax, ebx
cmp ebx, edi
jl 0x140004280
mov edi, dword [rsp + 0x24]
movzx eax, byte [rsp + 0x20]
cmp al, 0x55
jne 0x1400042cc
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov rcx, rsi
call fcn.14000a780
xor eax, eax
jmp 0x140004245
cmp al, 0x70
jne 0x1400042e6
mov r8, qword [rsp + 0x28]
mov edx, edi
mov rcx, rsi
call fcn.1400034b0
xor eax, eax
jmp 0x140004245
lea rdx, str.unk___n
lea rcx, [0x140092820]
call fcn.140006e40
xor eax, eax
jmp 0x140004245
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x140092820]
call fcn.140006e40
mov rcx, rax
mov edx, ebx
call fcn.140004690
mov rcx, rax
lea rdx, [0x1400869b8]
call fcn.140006e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_1
mov ebx, eax
lea rcx, [0x140092820]
call fcn.140006e40
mov rcx, rax
mov edx, ebx
call fcn.140004690
mov rcx, rax
lea rdx, [0x1400869b8]
call fcn.140006e40
call fcn.140003100
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x140092820]
call fcn.140006e40
mov rcx, rax
mov edx, ebx
call fcn.140004690
mov rcx, rax
lea rdx, [0x1400869b8]
call fcn.140006e40
call fcn.140003100
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x140092820]
call fcn.140006e40
mov rcx, rax
mov edx, ebx
call fcn.140004690
mov rcx, rax
lea rdx, [0x1400869b8]
call fcn.140006e40
lea rdx, str.error_3_n
lea rcx, [0x140092820]
call fcn.140006e40
call fcn.140003100
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x140092820]
call fcn.140006e40
mov rcx, rax
mov edx, ebx
call fcn.140004690
mov rcx, rax
lea rdx, [0x1400869b8]
call fcn.140006e40
lea rdx, str.error_2_n
lea rcx, [0x140092820]
call fcn.140006e40
call fcn.140003100
int3