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

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x830
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0x820], rax
movsxd r14, dword [0x140264cc8]
mov rdi, rcx
mov rcx, qword [rcx + 0x128]
xor ebp, ebp
test rcx, rcx
jne 0x1400437fd
xor eax, eax
jmp 0x140043a4e
mov qword [rsp + 0x858], rbx
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov qword [rsp + 0x860], rsi
mov qword [rsp + 0x868], r15
call qword [sym.imp.MSVCR120.dll_strstr]
or rsi, 0xffffffffffffffff
test rax, rax
jne 0x140043992
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__time64]
mov rcx, qword [rdi + 0x118]
mov edx, r14d
mov r15, rax
call fcn.140043750
test eax, eax
jne 0x140043860
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.140041b60
jmp 0x140043a33
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x800
call sub.MSVCR120.dll_memset
mov rcx, qword [rdi + 0x118]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, 0x7fc
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400438b9
jns 0x1400438d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400438b9
mov rcx, qword [rdi + 0x118]
mov edx, 1
call fcn.140043750
test eax, eax
jne 0x140043962
cmp dword [0x1402d4dbc], ebp
je 0x140043a33
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.140041b60
jmp 0x140043a33
mov rcx, qword [rdi + 0x128]
mov rbx, rsi
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x1400438e2
lea rdx, [rsp + 0x20]
mov rax, rsi
inc rax
cmp byte [rdx + rax], bpl
jne 0x1400438f3
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rdi + 0x120]
jb 0x140043932
mov rax, rdx
and eax, 0x7ff
sub rdx, rax
add rdx, 0x800
mov qword [rdi + 0x120], rdx
call qword [sym.imp.MSVCR120.dll_realloc]
mov qword [rdi + 0x128], rax
mov rax, qword [rdi + 0x128]
lea rdx, [rsp + 0x20]
add rax, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rax, [rax + 1]
lea rdx, [rdx + 1]
mov byte [rax - 1], cl
test cl, cl
jne 0x140043950
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__time64]
mov rcx, rax
sub rcx, r15
cmp rcx, r14
jge 0x140043992
mov rcx, qword [rdi + 0x128]
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
je 0x140043860
mov rcx, qword [rdi + 0x128]
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x1400439a0
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.MSVCR120.dll_strtok]
test rax, rax
jne 0x1400439cb
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.140041b60
jmp 0x140043a33
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__strdup]
mov rbp, rax
inc rsi
cmp byte [rsi + rax], 0
jne 0x1400439d7
lea eax, [rsi + 1]
cmp ebx, eax
jle 0x140043a07
mov rcx, qword [rdi + 0x128]
sub ebx, esi
movsxd rax, esi
lea rdx, [rcx + 1]
inc ebx
add rdx, rax
movsxd r8, ebx
call qword [sym.imp.MSVCR120.dll_memmove]
jmp 0x140043a11
mov rax, qword [rdi + 0x128]
mov byte [rax], 0
test rbp, rbp
je 0x140043a33
cmp dword [0x1402d4cd4], 0
je 0x140043a33
lea rdx, str.___s
mov r8, rbp
mov ecx, 4
call fcn.140041b60
mov r15, qword [rsp + 0x868]
mov rsi, qword [rsp + 0x860]
mov rbx, qword [rsp + 0x858]
mov rax, rbp
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1401bb2c0
add rsp, 0x830
pop r14
pop rdi
pop rbp
ret