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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b90]
mov eax, 0x2c90
call fcn.14005b340
sub rsp, rax
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rbp + 0x2b80], rax
mov rdi, r9
mov qword [rsp + 0x30], r9
mov r13, r8
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov r14d, 0xffffffff
mov ecx, 0x400
cmp byte [r13 + 4], 0
je 0x1400589fa
mov ebx, dword [r13 + 0x10]
mov qword [rsp + 0x48], 0
test ebx, ebx
jne 0x14005889c
mov eax, send
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], bl
mov byte [rsp + 0x40], bl
nop
cmp ebx, ecx
jae 0x140058747
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x140058738
inc ebx
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x48]
cmp rax, 1
jb 0x140058714
lea rax, [rdx + 1]
mov qword [rsp + 0x58], rax
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x48]
movsx eax, byte [rsp + 0x40]
movzx eax, al
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140058722
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
call fcn.1400596f0
cmp byte [rsp + 0x40], 0xa
je 0x140058742
mov rax, qword [rsp + 0x60]
mov ecx, 0x400
jmp 0x1400586b0
test eax, eax
je 0x140058742
test ebx, ebx
cmove ebx, r14d
mov rax, qword [rsp + 0x60]
test ebx, ebx
jle 0x14005885a
cmp byte [r13 + 5], 0
jne 0x140058a7d
lea rcx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
cmp rax, 0x10
cmovae rcx, r8
cmp qword [rsp + 0x58], 2
jne 0x1400587d1
cmp byte [rcx], 0xd
jne 0x140058783
cmp byte [rcx + 1], 0xa
jne 0x140058783
xor ecx, ecx
jmp 0x140058788
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x1400587d1
cmp rax, 0x10
mov ecx, 0x400
jb 0x140058674
lea rdx, [rax + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400587c4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058aad
mov rcx, r8
call fcn.14005a21c
jmp 0x14005866f
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x48]
cmp rax, 0x10
cmovae rcx, r8
lea r8, [rsp + 0x68]
lea rdx, [0x140279178]
call fcn.140018840
mov eax, dword [rsp + 0x68]
test eax, eax
js 0x140058855
mov dword [r13 + 0x10], eax
sete al
mov byte [r13 + 5], al
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
mov ecx, 0x400
jb 0x140058674
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005884b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058aad
call fcn.14005a21c
jmp 0x14005866f
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x1400589f1
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058892
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058abb
call fcn.14005a21c
jmp 0x1400589f1
mov edi, send
mov qword [rsp + 0x60], rdi
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x48], r15b
mov r14d, ebx
mov r12d, ebx
cmp ebx, ecx
cmovg r12d, ecx
mov r8, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14005b186
test ebx, ebx
jle 0x14005897d
nop word [rax + rax]
xor r9d, r9d
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14005897d
sub r14d, eax
mov r12d, r14d
mov ecx, 0x400
cmp r14d, ecx
cmovg r12d, ecx
movsxd rsi, eax
mov rax, rdi
sub rax, r15
cmp rsi, rax
ja 0x14005894e
lea rax, [rsi + r15]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdi, 0x10
cmovae rax, qword [rsp + 0x48]
lea rdi, [rax + r15]
mov r8, rsi
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rdi], 0
jmp 0x140058965
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400504e0
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
test r14d, r14d
jg 0x1400588e0
sub ebx, r14d
test ebx, ebx
jle 0x1400589ad
add dword [r13 + 0xc], ebx
sub dword [r13 + 0x10], ebx
lea rdx, [rsp + 0x48]
cmp rdi, 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, r15
mov rcx, qword [rsp + 0x30]
call fcn.14004f1a0
mov rdi, qword [rsp + 0x60]
cmp rdi, 0x10
jb 0x1400589e6
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400589e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ac2
call fcn.14005a21c
mov r14d, 0xffffffff
mov rdi, qword [rsp + 0x30]
test ebx, ebx
js 0x140058a50
jmp 0x14005866f
xor edx, edx
mov r8d, 0x2801
lea rcx, [rbp + 0x370]
call fcn.14005b186
xor r9d, r9d
mov r8d, 0x2800
lea rdx, [rbp + 0x370]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jle 0x1400589f1
add dword [r13 + 0xc], ebx
mov r8, rbx
lea rdx, [rbp + 0x370]
mov rcx, rdi
call fcn.14004f1a0
mov eax, dword [r13 + 8]
cmp dword [r13 + 0xc], eax
jb 0x1400589f1
test ebx, ebx
setg al
mov rcx, qword [rbp + 0x2b80]
xor rcx, rsp
call fcn.140059ea0
mov rbx, qword [rsp + 0x2cd0]
add rsp, 0x2c90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp rax, 0x10
jb 0x140058a4e
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058ab4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058ab4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
jmp 0x140058a4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3