Function at 0x140058a20
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.14005b740
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 0x140058dfa
mov ebx, dword [r13 + 0x10]
mov qword [rsp + 0x48], 0
test ebx, ebx
jne 0x140058c9c
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 0x140058b47
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 0x140058b38
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 0x140058b14
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 0x140058b22
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
call fcn.140059af0
cmp byte [rsp + 0x40], 0xa
je 0x140058b42
mov rax, qword [rsp + 0x60]
mov ecx, 0x400
jmp 0x140058ab0
test eax, eax
je 0x140058b42
test ebx, ebx
cmove ebx, r14d
mov rax, qword [rsp + 0x60]
test ebx, ebx
jle 0x140058c5a
cmp byte [r13 + 5], 0
jne 0x140058e7d
lea rcx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
cmp rax, 0x10
cmovae rcx, r8
cmp qword [rsp + 0x58], 2
jne 0x140058bd1
cmp byte [rcx], 0xd
jne 0x140058b83
cmp byte [rcx + 1], 0xa
jne 0x140058b83
xor ecx, ecx
jmp 0x140058b88
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x140058bd1
cmp rax, 0x10
mov ecx, 0x400
jb 0x140058a74
lea rdx, [rax + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140058bc4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ead
mov rcx, r8
call fcn.14005a61c
jmp 0x140058a6f
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x48]
cmp rax, 0x10
cmovae rcx, r8
lea r8, [rsp + 0x68]
lea rdx, [0x1402791d8]
call fcn.1400188b0
mov eax, dword [rsp + 0x68]
test eax, eax
js 0x140058c55
mov dword [r13 + 0x10], eax
sete al
mov byte [r13 + 5], al
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
mov ecx, 0x400
jb 0x140058a74
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058c4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ead
call fcn.14005a61c
jmp 0x140058a6f
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140058df1
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058c92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ebb
call fcn.14005a61c
jmp 0x140058df1
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.14005b586
test ebx, ebx
jle 0x140058d7d
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 0x140058d7d
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 0x140058d4e
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 0x140058d65
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400508c0
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
test r14d, r14d
jg 0x140058ce0
sub ebx, r14d
test ebx, ebx
jle 0x140058dad
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.14004f580
mov rdi, qword [rsp + 0x60]
cmp rdi, 0x10
jb 0x140058de6
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058de1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ec2
call fcn.14005a61c
mov r14d, 0xffffffff
mov rdi, qword [rsp + 0x30]
test ebx, ebx
js 0x140058e50
jmp 0x140058a6f
xor edx, edx
mov r8d, 0x2801
lea rcx, [rbp + 0x370]
call fcn.14005b586
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 0x140058df1
add dword [r13 + 0xc], ebx
mov r8, rbx
lea rdx, [rbp + 0x370]
mov rcx, rdi
call fcn.14004f580
mov eax, dword [r13 + 8]
cmp dword [r13 + 0xc], eax
jb 0x140058df1
test ebx, ebx
setg al
mov rcx, qword [rbp + 0x2b80]
xor rcx, rsp
call fcn.14005a2a0
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 0x140058e4e
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058eb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058eb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
jmp 0x140058e4e
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