Function at 0x140015790
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
push r12
push r13
push r14
push r15
mov eax, 0x12a0
call fcn.140019a40
sub rsp, rax
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rsp + 0x1290], rax
mov rsi, rcx
lea rdx, [rsp + 0x290]
mov rcx, qword [rcx + 0x60]
xor r9d, r9d
mov r8d, 0xfff
call qword [sym.imp.WS2_32.dll_recv]
mov edx, eax
test eax, eax
jle 0x140015964
xor r15d, r15d
lea r13d, [r15 + 4]
nop word [rax + rax]
mov rax, qword [rsi + 8]
mov r14, r15
mov r12d, edx
mov rcx, qword [rax + 0x20]
mov qword [rsi + 0x48], rcx
test edx, edx
je 0x14001593f
lea rax, [rsi + 0x70]
mov rdi, rax
mov rcx, qword [rsi + 0x78]
mov rdx, rdi
mov rdi, rax
movzx ebp, byte [rsp + r14 + 0x290]
cmp qword [rsi + 0x70], rcx
jne 0x140015877
test rcx, rcx
lea rax, [rcx + rcx]
mov rdi, r15
sete dil
or rdi, rax
cmp rcx, rdi
jb 0x140015855
mov rdi, rdx
jmp 0x140015877
mov rcx, qword [rsi + 0x68]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400159ae
mov qword [rsi + 0x78], rdi
lea rdi, [rsi + 0x70]
mov qword [rsi + 0x68], rax
mov rax, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x68]
mov byte [rcx + rax], bpl
inc qword [rsi + 0x70]
cmp dword [rsi], r15d
jne 0x140015922
mov rcx, qword [rdi]
cmp rcx, r13
jb 0x140015922
mov rax, qword [rsi + 0x68]
lea r8, str._r_n_r_n
add rax, 0xfffffffffffffffc
mov rdx, r13
add rax, rcx
sub r8, rax
movzx ecx, byte [r8 + rax]
cmp byte [rax], cl
jne 0x140015922
inc rax
sub rdx, 1
jne 0x1400158b4
lea rcx, [rsi + 0x68]
mov dword [rsi], 1
call fcn.1400152b0
test eax, eax
jne 0x14001597d
dec qword [rsi + 0x70]
mov rcx, qword [rsi + 0x68]
call fcn.140015160
test rax, rax
je 0x1400159b5
lea r8, [rsp + 0x30]
mov rcx, rax
lea rdx, [0x14001c77c]
call fcn.140014ff0
mov rcx, qword [rdi]
cmp eax, 1
mov edx, r15d
mov qword [rsi + 0x58], rcx
cmove edx, dword [rsp + 0x30]
mov eax, edx
add rax, rcx
mov qword [rsi + 0x50], rax
mov rax, qword [rdi]
cmp qword [rsi + 0x50], rax
je 0x1400159b5
inc r14
lea rax, [rsi + 0x70]
cmp r14, r12
jl 0x140015821
mov rcx, qword [rsi + 0x60]
lea rdx, [rsp + 0x290]
xor r9d, r9d
mov r8d, 0xfff
call qword [sym.imp.WS2_32.dll_recv]
mov edx, eax
test eax, eax
jg 0x140015800
test edx, edx
je 0x140015975
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14001597b
mov dword [rsi], 6
xor eax, eax
mov rcx, qword [rsp + 0x1290]
xor rcx, rsp
call fcn.140018980
lea r11, [rsp + 0x12a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 0xfffffffe
jmp 0x14001597d
xor edx, edx
mov dword [rsi], 2
lea rcx, [rsi + 0x68]
call fcn.1400152b0
test eax, eax
jne 0x14001597d
dec qword [rsi + 0x70]
lea rax, [rsp + 0x70]
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rdx, str._15s__n_s__15s
call fcn.140014ff0
cmp eax, 2
jne 0x140015975
lea rcx, str.HTTP
nop word [rax + rax]
movzx eax, byte [r15 + rcx]
cmp byte [rsp + r15 + 0x70], al
jne 0x140015975
inc r15
sub r13, 1
jne 0x140015a10
movsxd rdx, dword [rsp + 0x30]
lea rcx, [rsp + 0x90]
add rdx, qword [rsi + 0x68]
call fcn.140015050
mov rdx, qword [rsi + 8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], rsi
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x40], rax
lea rax, [rsi + 0x10]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rdx
call qword [rdx + reloc.WS2_32.dll_htonl]
mov ecx, eax
test eax, eax
js 0x140015aa3
je 0x14001597b
cmp eax, 1
je 0x140015975
mov ecx, 0xfffffffb
mov eax, ecx
jmp 0x14001597d