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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov rax, qword [0x140113480]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, r9
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
mov r14, rcx
lea rsi, [rcx + 0xb0]
mov qword [rbp - 0x41], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001abd0
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
jne 0x14001abeb
dec eax
mov dword [rsi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdi, [r14 + 0x60]
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14001afd2
lea r13, [rdi + 0x4c]
mov eax, dword [r13]
cmp eax, 0x7fffffff
je 0x14001af15
mov byte [r14 + 0x10c], 0
lea r12, [r14 + 0x50]
mov r15, qword [r12]
cmp r15, 0xffffffffffffffff
je 0x14001acd9
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.140012fb0
test rax, rax
je 0x14001ad8d
jns 0x14001ac55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x14001ac9d
lea rsi, [rbp + 7]
nop dword [rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x14001ac89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14001ac60
test ebx, ebx
lea rsi, [r14 + 0xb0]
jg 0x14001ad8d
mov rbx, qword [rsp + 0x48]
mov rax, qword [r14]
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call qword [rax + Ordinal_26]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001acc1
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001acd9
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12], 0xffffffffffffffff
mov rax, qword [r14]
mov r8, rbx
mov rdx, r12
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x14001ae45
mov rax, qword [r14]
mov rcx, r14
call qword [rax + Ordinal_41]
test al, al
je 0x14001ad8d
cmp qword [r14 + 0x2c8], 0
je 0x14001ad3f
cmp dword [r14 + 0x2d8], 0xffffffff
je 0x14001ad3f
mov byte [rbp + 7], 0
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 7]
mov r8, qword [rsp + 0x40]
mov rdx, r12
mov rcx, r14
call fcn.14001f5a0
test al, al
jne 0x14001ad3f
movzx ebx, byte [rbp + 7]
jmp 0x14001ae47
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x49], r12
movups xmm0, xmmword [rbp - 0x59]
movaps xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rbp - 0x79], xmm1
lea r8, [r14 + 0x418]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov rdx, qword [r14 + 0x410]
mov rcx, qword [r12]
call fcn.140041480
test rax, rax
je 0x14001ae18
mov qword [r12 + 8], rax
inc qword [r14 + 0x100]
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [r14 + 0x108], eax
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [r14 + 0x120]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x14001ae7e
mov r13, qword [rsp + 0x38]
lea rdx, [rbx + 0x20]
lea rcx, [r13 + 0x40]
call fcn.140042580
cmp rax, qword [r13 + 0x40]
jne 0x14001ade8
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [r13 + 0x40]
call fcn.14003fe70
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14001ae55
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14001ae13
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x14001ae13
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14001ae00
mov rbx, rax
jmp 0x14001ae70
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001ae2d
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001ae45
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12], 0xffffffffffffffff
xor bl, bl
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x14001afa6
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14001ae70
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14001ae61
cmp byte [rbx + 0x19], 0
je 0x14001adc3
lea r13, [rdi + 0x4c]
cmp byte [r14 + 0x240], 0
sete byte [rbp + 8]
mov rax, qword [r14]
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x79], rcx
lea rcx, [rbp + 8]
mov qword [rbp - 0x71], rcx
mov r15, qword [rsp + 0x48]
mov qword [rbp - 0x69], r15
lea rcx, vtable.std::_Func_impl_no_alloc_class__lambda_adf6fa973a90d9aad22bdd995fc7a703___bool__class_httplib::Stream____ptr64_.0
mov qword [rbp - 0x39], rcx
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rbp - 0x79]
movups xmmword [rbp - 0x21], xmm1
movsd xmm0, qword [rbp - 0x69]
movsd qword [rbp - 0x11], xmm0
lea rcx, [rbp - 0x39]
mov qword [rbp - 1], rcx
lea r8, [rbp - 0x39]
mov rdx, r12
mov rcx, r14
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
movzx ebx, al
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14001afd2
mov eax, dword [r13]
cmp eax, 0x7fffffff
jne 0x14001af27
dec eax
mov dword [r13], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
sub qword [r14 + 0x100], 1
jne 0x14001af3c
mov dword [r14 + 0x108], 0
cmp byte [r14 + 0x10c], 0
jne 0x14001af50
cmp byte [rbp + 8], 0
jne 0x14001af50
test bl, bl
jne 0x14001af8c
mov rax, qword [r14]
mov r8b, 1
mov rdx, r12
mov rcx, r14
call qword [rax + Ordinal_26]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001af74
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14001af8c
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12], 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test bl, bl
jne 0x14001afa6
cmp dword [r15], 0
jne 0x14001afa6
mov dword [r15], 1
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movzx eax, bl
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400d0f00
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3