Function at 0x14005a5d0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
push r12
push r14
push r15
lea rbp, [rsp - 0x210]
mov eax, 0x310
call fcn.14005d7e0
sub rsp, rax
mov rax, qword [0x1400ac2c8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x270]
mov r14d, r9d
mov r12, qword [rbp + 0x288]
mov rbx, r8
mov qword [rsp + 0x78], rax
mov r15, rdx
mov rax, qword [rbp + 0x278]
mov qword [rbp - 0x80], rcx
xor ecx, ecx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], r9d
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x48], ecx
call sub.libcrypto_3_x64.dll_BIO_sock_init
cmp eax, 1
je 0x14005a659
xor eax, eax
jmp 0x14005ab70
lea rax, [rsp + 0x40]
mov qword [rsp + 0x308], rsi
mov esi, dword [rbp + 0x268]
mov r9d, r14d
mov qword [rsp + 0x30], rax
mov r8d, 1
mov qword [rsp + 0x300], rdi
mov rdx, rbx
mov edi, dword [rbp + 0x260]
mov rcx, r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call sub.libcrypto_3_x64.dll_BIO_lookup_ex
test eax, eax
jne 0x14005a6b2
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
xor eax, eax
jmp 0x14005ab60
mov qword [rsp + 0x2f8], r13
test r14d, r14d
je 0x14005a6ce
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_family
cmp r14d, eax
jne 0x14005a6f2
test edi, edi
je 0x14005a6e0
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_socktype
cmp edi, eax
jne 0x14005a6f2
test esi, esi
je 0x14005a70b
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_protocol
cmp esi, eax
je 0x14005a70b
mov r8d, 0x120
lea rdx, str.appslib_s_socket.c
lea rcx, str.assertion_failed:__family__AF_UNSPEC__family__BIO_ADDRINFO_family_res_____type__0__type__BIO_ADDRINFO_socktype_res_____protocol__0__protocol__BIO_ADDRINFO_protocol_res__
call sub.libcrypto_3_x64.dll_OPENSSL_die
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_family
mov rcx, qword [rsp + 0x40]
mov r15d, eax
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_socktype
mov rcx, qword [rsp + 0x40]
mov r13d, eax
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_protocol
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x58], eax
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_address
mov rcx, qword [rsp + 0x40]
mov r14, rax
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_next
mov rsi, rax
cmp r15d, 0x17
mov eax, 1
mov edi, 3
cmovne edi, eax
mov ebx, edi
test rsi, rsi
je 0x14005a7c6
mov rcx, rsi
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_socktype
cmp eax, r13d
jne 0x14005a7c6
mov rcx, rsi
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_protocol
cmp eax, dword [rsp + 0x58]
jne 0x14005a7c6
cmp r15d, 2
jne 0x14005a7ad
mov rcx, rsi
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_family
cmp eax, 0x17
jne 0x14005a7ad
mov dword [rsp + 0x50], r15d
mov rcx, rsi
mov r15d, eax
mov qword [rsp + 0x60], r14
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_address
mov r14, rax
jmp 0x14005a7c6
cmp r15d, 0x17
jne 0x14005a7c6
mov rcx, rsi
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_family
cmp eax, 2
mov eax, 1
cmove ebx, eax
mov esi, dword [rsp + 0x58]
xor r9d, r9d
mov r8d, esi
mov edx, r13d
mov ecx, r15d
call sub.libcrypto_3_x64.dll_BIO_socket
mov edi, eax
cmp eax, 0xffffffff
jne 0x14005a80e
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14005ab08
xor r9d, r9d
mov r8d, esi
mov edx, r13d
mov ecx, eax
call sub.libcrypto_3_x64.dll_BIO_socket
mov r14, qword [rsp + 0x60]
mov edi, eax
cmp eax, 0xffffffff
je 0x14005ab08
mov r8d, ebx
mov rdx, r14
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_listen
test eax, eax
je 0x14005ab08
mov rcx, r14
call sub.libcrypto_3_x64.dll_BIO_ADDR_rawport
mov rcx, qword [rsp + 0x40]
movzx ebx, ax
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_free
lea rdx, str.ACCEPT
mov qword [rsp + 0x40], 0
mov rcx, r12
call sub.libcrypto_3_x64.dll_BIO_printf
test eax, eax
jle 0x14005aae7
test bx, bx
jne 0x14005a93b
xor ebx, ebx
xor esi, esi
call sub.libcrypto_3_x64.dll_BIO_ADDR_new
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005a8f0
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_sock_info
test eax, eax
je 0x14005a8f0
mov rcx, qword [rsp + 0x50]
mov r14d, 1
mov edx, r14d
call sub.libcrypto_3_x64.dll_BIO_ADDR_hostname_string
mov rbx, rax
test rax, rax
je 0x14005a8f0
mov rcx, qword [rsp + 0x50]
mov edx, r14d
call sub.libcrypto_3_x64.dll_BIO_ADDR_service_string
mov rsi, rax
test rax, rax
je 0x14005a8f0
lea edx, [r14 + 0x39]
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
lea rcx, str.__s:_s
lea rdx, str.___s_:_s
mov r9, rsi
cmove rdx, rcx
mov r8, rbx
mov rcx, r12
call sub.libcrypto_3_x64.dll_BIO_printf
xor r14d, r14d
test eax, eax
setg r14b
jmp 0x14005a902
lea rdx, str.unknown:error_n
mov rcx, r12
call sub.libcrypto_3_x64.dll_BIO_printf
xor r14d, r14d
mov r8d, 0xe3
lea rdx, str.appslib_s_socket.c
mov rcx, rbx
call sub.libcrypto_3_x64.dll_CRYPTO_free
mov r8d, 0xe4
lea rdx, str.appslib_s_socket.c
mov rcx, rsi
call sub.libcrypto_3_x64.dll_CRYPTO_free
mov rcx, qword [rsp + 0x50]
call sub.libcrypto_3_x64.dll_BIO_ADDR_free
test r14d, r14d
je 0x14005a959
lea rdx, [0x140062640]
mov rcx, r12
call sub.libcrypto_3_x64.dll_BIO_printf
test eax, eax
jle 0x14005a959
mov r14d, 1
mov ebx, r14d
jmp 0x14005a95f
xor ebx, ebx
lea r14d, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0xb]
call sub.libcrypto_3_x64.dll_BIO_ctrl
test ebx, ebx
je 0x14005aae7
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14005a984
mov dword [rax], edi
mov r13d, dword [rbp + 0x280]
mov ebx, dword [rbp + 0x268]
mov rsi, qword [rsp + 0x70]
nop word [rax + rax]
mov eax, dword [rbp + 0x260]
cmp eax, 1
jne 0x14005aa9f
mov rcx, qword [0x1400ad588]
call sub.libcrypto_3_x64.dll_BIO_ADDR_free
call sub.libcrypto_3_x64.dll_BIO_ADDR_new
mov qword [0x1400ad588], rax
test rax, rax
je 0x14005aae7
xor r8d, r8d
mov rdx, rax
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_accept_ex
mov ebx, eax
mov ecx, ebx
test eax, eax
jns 0x14005a9fb
call sub.libcrypto_3_x64.dll_BIO_sock_should_retry
test eax, eax
je 0x14005aad9
mov rax, qword [0x1400ad588]
jmp 0x14005a9d0
mov edx, r14d
call sub.libcrypto_3_x64.dll_BIO_set_tcp_ndelay
mov r9, qword [rsp + 0x70]
mov edx, r14d
mov r8d, dword [rbp + 0x268]
mov ecx, ebx
call qword [rsp + 0x78]
movsxd rsi, ebx
mov edx, r14d
mov rcx, rsi
mov r12d, eax
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x60], 0
mov r13d, 1
mov dword [rsp + 0x64], 0x7a120
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x70], r13d
lea rdx, [rbp - 0x70]
lea ecx, [rbx + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14005aa84
xor r9d, r9d
lea rdx, [rbp + 0x1a0]
mov rcx, rsi
lea r8d, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14005aa40
mov ecx, ebx
call sub.libcrypto_3_x64.dll_BIO_closesocket
mov r13d, dword [rbp + 0x280]
mov ebx, dword [rbp + 0x268]
mov rsi, qword [rsp + 0x70]
jmp 0x14005aab0
mov r9, rsi
mov r8d, ebx
mov edx, eax
mov ecx, edi
call qword [rsp + 0x78]
mov r12d, eax
cmp r13d, 0xffffffff
lea eax, [r13 - 1]
cmove eax, r13d
mov dword [rbp + 0x280], eax
mov r13d, eax
test r12d, r12d
js 0x14005aafc
test eax, eax
je 0x14005aafc
mov r14d, 1
jmp 0x14005a9a0
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
jmp 0x14005ab23
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_closesocket
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
jmp 0x14005ab2a
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_closesocket
mov ebx, r12d
jmp 0x14005ab2e
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_3_x64.dll_BIO_ADDRINFO_free
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
cmp edi, 0xffffffff
je 0x14005ab2a
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_closesocket
mov ebx, dword [rsp + 0x48]
cmp dword [rsp + 0x68], 1
mov r13, qword [rsp + 0x2f8]
jne 0x14005ab47
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov rcx, qword [0x1400ad588]
call sub.libcrypto_3_x64.dll_BIO_ADDR_free
mov eax, ebx
mov qword [0x1400ad588], 0
mov rsi, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x300]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14005d840
add rsp, 0x310
pop r15
pop r14
pop r12
pop rbx
pop rbp
ret