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

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
mov eax, 0x2f8
call fcn.1400473e0
sub rsp, rax
mov rax, qword [0x1400826b8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rbp + 0x260]
mov r14d, r9d
mov r13, qword [rbp + 0x278]
mov rbx, r8
mov qword [rsp + 0x68], rax
mov r15, rdx
mov rax, qword [rbp + 0x268]
mov qword [rsp + 0x60], rax
xor eax, eax
mov dword [rsp + 0x5c], r9d
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
lea r12d, [rax + 1]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call sub.libcrypto_1_1_x64.dll_BIO_sock_init
cmp eax, r12d
je 0x140044888
xor eax, eax
jmp 0x140044d06
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2f0], rsi
mov esi, dword [rbp + 0x258]
mov r9d, r14d
mov qword [rsp + 0x30], rax
mov r8d, r12d
mov qword [rsp + 0x2e8], rdi
mov rdx, rbx
mov edi, dword [rbp + 0x250]
mov rcx, r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call sub.libcrypto_1_1_x64.dll_BIO_lookup_ex
test eax, eax
jne 0x1400448de
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
xor eax, eax
jmp 0x140044cf6
test r14d, r14d
je 0x1400448f2
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_family
cmp r14d, eax
jne 0x140044916
test edi, edi
je 0x140044904
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_socktype
cmp edi, eax
jne 0x140044916
test esi, esi
je 0x14004492f
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_protocol
cmp esi, eax
je 0x14004492f
mov r8d, 0xe9
lea rdx, str.apps_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_1_1_x64.dll_OPENSSL_die
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_family
mov rcx, qword [rsp + 0x40]
mov edi, eax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_socktype
mov rcx, qword [rsp + 0x40]
mov r15d, eax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_protocol
mov rcx, qword [rsp + 0x40]
mov r12d, eax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_address
mov rcx, qword [rsp + 0x40]
mov r14, rax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_next
mov rbx, rax
cmp edi, 0x17
mov eax, 3
mov esi, 1
cmove esi, eax
test rbx, rbx
je 0x1400449d4
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_socktype
cmp eax, r15d
jne 0x1400449d4
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_protocol
cmp eax, r12d
jne 0x1400449d4
cmp edi, 2
jne 0x1400449bf
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_family
cmp eax, 0x17
jne 0x1400449d4
mov rcx, rbx
mov edi, eax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_address
mov r14, rax
jmp 0x1400449d4
cmp edi, 0x17
jne 0x1400449d4
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_family
cmp eax, 2
jne 0x1400449d4
and esi, 0xfffffffd
xor r9d, r9d
mov r8d, r12d
mov edx, r15d
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_socket
mov dword [rsp + 0x58], eax
mov edi, eax
cmp eax, 0xffffffff
je 0x140044ca5
mov r8d, esi
mov rdx, r14
mov ecx, eax
call sub.libcrypto_1_1_x64.dll_BIO_listen
test eax, eax
je 0x140044ca5
mov rcx, r14
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_rawport
mov rcx, qword [rsp + 0x40]
movzx ebx, ax
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_free
mov qword [rsp + 0x40], 0
test ebx, ebx
jne 0x140044b1e
xor ebx, ebx
xor esi, esi
xor r14d, r14d
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_new
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140044abb
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_sock_info
test eax, eax
je 0x140044abb
mov rcx, qword [rsp + 0x50]
mov r15d, 1
mov edx, r15d
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_hostname_string
mov rbx, rax
test rax, rax
je 0x140044abb
mov rcx, qword [rsp + 0x50]
mov edx, r15d
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_service_string
mov rsi, rax
test rax, rax
je 0x140044abb
lea edx, [r14 + 0x3a]
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
lea rcx, str.ACCEPT___s_:_s_n
lea rdx, str.ACCEPT__s:_s_n
mov r9, rsi
cmovne rdx, rcx
mov r8, rbx
mov rcx, r13
call sub.libcrypto_1_1_x64.dll_BIO_printf
test eax, eax
cmovg r14d, r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
lea edx, [r9 + 0xb]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
mov r8d, 0x134
lea rdx, str.apps_s_socket.c
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_CRYPTO_free
mov r8d, 0x135
lea rdx, str.apps_s_socket.c
mov rcx, rsi
call sub.libcrypto_1_1_x64.dll_CRYPTO_free
mov rcx, qword [rsp + 0x50]
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_free
test r14d, r14d
jne 0x140044b3f
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_closesocket
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
jmp 0x140044cc7
lea rdx, str.ACCEPT_n
mov rcx, r13
call sub.libcrypto_1_1_x64.dll_BIO_printf
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
lea edx, [r9 + 0xb]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140044b4b
mov dword [rax], edi
mov r13d, dword [rbp + 0x270]
mov ebx, dword [rbp + 0x258]
mov rsi, qword [rsp + 0x60]
nop dword [rax]
mov eax, dword [rbp + 0x250]
cmp eax, 1
jne 0x140044c5e
mov rcx, qword [0x140083c30]
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_free
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_new
mov qword [0x140083c30], rax
test rax, rax
je 0x140044b06
xor r8d, r8d
mov rdx, rax
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_accept_ex
mov ebx, eax
mov ecx, ebx
test eax, eax
jns 0x140044bbb
call sub.libcrypto_1_1_x64.dll_BIO_sock_should_retry
test eax, eax
je 0x140044c97
mov rax, qword [0x140083c30]
jmp 0x140044b90
mov r14d, 1
mov edx, r14d
call sub.libcrypto_1_1_x64.dll_BIO_set_tcp_ndelay
mov r9, qword [rsp + 0x60]
mov edx, r14d
mov r8d, dword [rbp + 0x258]
mov ecx, ebx
call qword [rsp + 0x68]
movsxd rsi, ebx
mov edx, r14d
mov rcx, rsi
mov r12d, eax
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x50], 0
mov edi, r14d
mov dword [rsp + 0x54], _crt_atexit
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x80], edi
lea rdx, [rbp - 0x80]
lea ecx, [rbx + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x140044c46
xor r9d, r9d
lea rdx, [rbp + 0x190]
mov rcx, rsi
lea r8d, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140044c03
mov ecx, ebx
call sub.libcrypto_1_1_x64.dll_BIO_closesocket
mov edi, dword [rsp + 0x58]
mov ebx, dword [rbp + 0x258]
mov rsi, qword [rsp + 0x60]
jmp 0x140044c6f
mov r9, rsi
mov r8d, ebx
mov edx, eax
mov ecx, edi
call qword [rsp + 0x68]
mov r12d, eax
cmp r13d, 0xffffffff
lea eax, [r13 - 1]
cmove eax, r13d
mov r13d, eax
test r12d, r12d
js 0x140044c8b
test eax, eax
jne 0x140044b60
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_closesocket
mov ebx, r12d
jmp 0x140044ccb
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
jmp 0x140044cc0
mov rcx, qword [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_BIO_ADDRINFO_free
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
cmp edi, 0xffffffff
je 0x140044cc7
mov ecx, edi
call sub.libcrypto_1_1_x64.dll_BIO_closesocket
mov ebx, dword [rsp + 0x48]
cmp dword [rsp + 0x5c], 1
jne 0x140044cdd
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov rcx, qword [0x140083c30]
call sub.libcrypto_1_1_x64.dll_BIO_ADDR_free
mov eax, ebx
mov qword [0x140083c30], 0
mov rsi, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400474c0
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret