Function at 0x140051fe0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx r12d, r8w
mov r15, rdx
mov rdi, rcx
lea rcx, str.SSL_library_init
call fcn.1400ee110
call fcn.1400b0c50
mov rax, qword [0x140a04578]
mov ecx, 4
test rax, rax
je 0x140052034
call rax
jmp 0x140052039
call fcn.140182c38
mov rbx, rax
lea rcx, str.TLS_client_method_ex
call fcn.1400ee110
test rbx, rbx
je 0x140052062
mov word [rsp + 0x40], 0x303
movzx eax, word [rsp + 0x40]
mov word [rbx], ax
mov word [rbx + 2], 0x101
mov rcx, rbx
call fcn.1400af900
mov rbx, rax
mov qword [rdi + 0x10], rax
mov r14d, dword [0x140a045b8]
lea rsi, [0x140a045a8]
cmp qword [0x140a045c0], 0x10
cmovae rsi, qword [0x140a045a8]
lea rcx, str.wolfSSL_CTX_load_verify_buffer_ex
call fcn.1400ee110
mov ebp, 1
test rbx, rbx
je 0x1400520b2
test byte [rbx + 0xb1], 2
je 0x1400520b2
xor eax, eax
jmp 0x1400520b4
mov eax, ebp
mov dword [rsp + 0x30], eax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1400b2280
cmp eax, ebp
jne 0x1400522f7
mov rbx, qword [rdi + 0x10]
lea rcx, str.wolfSSL_CTX_set_verify
call fcn.1400ee110
test rbx, rbx
je 0x140052100
movzx eax, byte [rbx + 0xb1]
and al, 0xfd
or al, bpl
mov byte [rbx + 0xb1], al
mov qword [rbx + 0x110], 0
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400522f7
lea r8d, [rax + 6]
mov edx, ebp
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x1400522f7
mov word [rsp + 0x50], bx
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x54], eax
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movsxd rcx, dword [rdi]
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400522f7
mov r14, qword [rdi + 0x10]
xor esi, esi
lea rcx, str.SSL_new
call fcn.1400ee110
test r14, r14
jne 0x14005219d
mov qword [rdi + 8], rsi
lea rcx, str.SSL_set_fd
call fcn.1400ee110
jmp 0x140052272
mov rax, qword [0x140a04578]
mov ecx, 0x1a30
test rax, rax
je 0x1400521b2
call rax
jmp 0x1400521b7
call fcn.140182c38
mov rbx, rax
test rax, rax
je 0x1400521ff
mov rdx, r14
mov rcx, rax
call fcn.1400b9530
mov esi, eax
test eax, eax
jns 0x1400521ff
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400521dd
call fcn.1400b7c60
mov rcx, rbx
call fcn.1400b9df0
mov rdx, qword [0x140a04568]
mov rcx, rbx
test rdx, rdx
je 0x1400521f8
call rdx
jmp 0x1400521fd
call fcn.14017d748
xor ebx, ebx
mov edx, esi
lea rcx, str.SSL_new
call fcn.1400ee1b0
mov qword [rdi + 8], rbx
mov esi, dword [rdi]
lea rcx, str.SSL_set_fd
call fcn.1400ee110
test rbx, rbx
je 0x140052272
lea rcx, str.SSL_set_read_fd
call fcn.1400ee110
lea rax, [rbx + 0x29c]
mov dword [rax], esi
mov qword [rbx + 0x20], rax
mov edx, ebp
lea rcx, str.SSL_set_read_fd
call fcn.1400ee1b0
lea rcx, str.SSL_set_write_fd
call fcn.1400ee110
lea rax, [rbx + 0x2a0]
mov dword [rax], esi
mov qword [rbx + 0x28], rax
mov edx, ebp
lea rcx, str.SSL_set_write_fd
call fcn.1400ee1b0
mov rcx, qword [rdi + 8]
call fcn.1400b2790
mov esi, eax
cmp eax, ebp
je 0x1400522ae
mov rbx, qword [rdi + 8]
lea rcx, str.SSL_get_error
call fcn.1400ee110
test esi, esi
jg 0x1400522f7
test rbx, rbx
je 0x1400522f7
mov edx, dword [rbx + 0x298]
lea rcx, str.SSL_get_error
call fcn.1400ee1b0
jmp 0x1400522f7
xchg byte [rdi + 4], bpl
lea rsi, [rdi + 0x2e8]
mov qword [rsp + 0x48], rsi
mov rcx, rsi
call fcn.140167934
test eax, eax
jne 0x140052319
mov rbx, qword [rsi + 0x50]
mov rdi, qword [rsi + 0x58]
cmp rbx, rdi
je 0x1400522ef
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400522e6
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 0x40
cmp rbx, rdi
jne 0x1400522d7
mov rcx, rsi
call fcn.14016793c
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140167e90
add rsp, 0x210
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, eax
call fcn.14016767c
int3