Function at 0x140157c40
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1402d78c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, qword [rcx + 0x10]
mov rsi, rdx
mov r13, rcx
mov rdi, qword [r14 + 0x20]
call fcn.140141270
mov rdx, rsi
mov rcx, r13
mov rbx, rax
call fcn.140141250
mov r9d, 2
mov qword [rsp + 0x68], 0
mov r15, qword [r14 + 8]
xor r8d, r8d
mov r12, rax
mov dword [rsp + 0x20], 1
lea edx, [r9 - 1]
lea ecx, [rdx + 4]
call fcn.140185830
test al, al
je 0x140157cd1
lea rdx, str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc.
mov rcx, rsi
call fcn.140153190
cmp qword [r14 + 0x18], 0
je 0x140157d1c
lea rcx, [0x14023a8b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140157d1c
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea edx, [rax + 3]
lea ecx, [rax + 6]
call fcn.140185830
test al, al
je 0x140157d1c
mov al, 1
jmp 0x140157d1e
xor al, al
mov byte [rdi + 0x6b], al
cmp qword [rbx + 8], 0
jne 0x140157d33
cmp qword [rbx + 0x48], 0
jne 0x140157d33
xor al, al
jmp 0x140157d5a
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea edx, [r9 - 1]
lea ecx, [rdx + 5]
call fcn.140185830
test al, al
je 0x1401580da
mov al, 1
mov byte [rdi + 0x6c], al
mov qword [rdi], 0
cmp byte [r12 + 0x6c], 0
je 0x140157da9
mov rcx, rsi
call fcn.140141d30
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rsi
mov rcx, r13
call fcn.1401418c0
test al, al
jne 0x140157d9b
mov rax, qword [rsp + 0x68]
mov qword [rdi], rax
mov rax, qword [rsp + 0x68]
inc dword [rax + 0x28]
mov rcx, rsi
call fcn.140141d60
cmp qword [rdi], 0
jne 0x140157e09
mov rdx, rsi
mov rcx, r13
call fcn.140156a20
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1401580ee
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140141da0
test rax, rax
jne 0x140157dec
lea rdx, str.Failed_to_set_SNI
mov rcx, rsi
call fcn.1401530a0
mov eax, 0x23
jmp 0x1401580ee
mov rcx, rax
call fcn.14013d910
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi]
cmp qword [rax + 0x18], 0
je 0x140157f7d
lea r8, [rbp - 0x60]
mov rdx, r15
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140157e33
lea r8, [rbp - 0x20]
mov rdx, r15
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140157e42
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
mov rcx, rsi
call fcn.140153190
cmp byte [rdi + 0x6b], 0
je 0x140157efb
mov dword [rbp - 0xc], 2
lea rcx, [rbp - 0x48]
mov rdx, qword [r14 + 0x18]
call fcn.140140610
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140157e81
lea rdx, str.Error_setting_ALPN
mov rcx, rsi
call fcn.1401530a0
mov eax, 0x23
jmp 0x1401580ee
movsxd rbx, dword [rbp - 0x24]
lea rdx, [rbp - 0x48]
mov r8, rbx
lea rcx, [rbp - 6]
call fcn.14020e060
add ebx, 0xa
lea ecx, [rbx - 0xa]
call fcn.14013de80
movzx eax, ax
lea rcx, [rbp - 0x48]
mov word [rbp - 8], ax
xor r15d, r15d
add eax, 6
mov dword [rsp + 0x70], ebx
mov dword [rbp - 0x10], eax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov dword [rsp + 0x74], reloc.WS2_32.dll_select
mov dword [rbp - 0x70], r15d
mov dword [rbp - 0x6c], 1
mov rdx, qword [r14 + 0x18]
call fcn.1401406d0
lea r8, [rbp - 0x48]
mov rcx, rsi
lea rdx, str.ALPN:_curl_offers__s
call fcn.140153190
jmp 0x140157f1c
xor r15d, r15d
mov dword [rbp - 0x6c], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x70], r15d
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x80], 0
lea rax, [rbp - 0x80]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x58], r15d
mov dword [rbp - 0x54], 1
mov dword [rdi + 0x5c], 0x811c
cmp byte [r12 + 0xb7], 0
jne 0x140157f54
mov dword [rdi + 0x5c], 0x819c
mov edx, 0x18
lea ecx, [rdx - 0x17]
call qword [fcn.1401d3860]
mov qword [rdi + 8], rax
mov r8, rax
test rax, rax
jne 0x140157f87
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rsi
call fcn.1401530a0
mov eax, 0x1b
jmp 0x1401580ee
mov r10, qword [rdi]
lea rcx, [rdi + 0x60]
mov r9d, dword [rdi + 0x5c]
lea rdx, [rbp - 0x70]
add rax, 0x10
cmp byte [rdi + 0x6b], 0
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rcx
cmove rdx, r15
mov qword [rsp + 0x48], rax
mov rcx, r10
mov rax, qword [0x1402dbd78]
mov qword [rsp + 0x40], r8
mov r8, qword [r10 + 0x18]
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [rax + 0x30]
mov ebx, eax
cmp eax, 0x90312
je 0x140158061
mov rcx, qword [rdi + 8]
call qword [fcn.1401d5c8c]
mov r8d, 0x100
mov qword [rdi + 8], r15
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.140159080
mov r8, rax
mov rcx, rsi
cmp ebx, 0x80090300
je 0x14015804b
cmp ebx, 0x80090322
je 0x140158035
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.1401530a0
mov eax, 0x23
jmp 0x1401580ee
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
call fcn.1401530a0
mov eax, 0x3c
jmp 0x1401580ee
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.1401530a0
mov eax, 0x1b
jmp 0x1401580ee
mov r9d, dword [rbp - 0x80]
lea rax, [rsp + 0x60]
mov r8, qword [rbp - 0x78]
mov rdx, rsi
mov rcx, qword [r13 + 8]
mov qword [rsp + 0x20], rax
call fcn.140152520
mov rdx, qword [0x1402dbd78]
mov rbx, rax
mov rcx, qword [rbp - 0x78]
call qword [rdx + 0x80]
cmp dword [rsp + 0x60], 0
mov r9d, dword [rbp - 0x80]
jne 0x1401580c1
cmp r9, rbx
jne 0x1401580c1
mov dword [rdi + 0x64], r15d
xor eax, eax
mov word [rdi + 0x68], 0
mov byte [rdi + 0x6a], 0
mov byte [rdi + 0x58], 0
mov dword [r14 + 4], 1
jmp 0x1401580ee
mov r8, rbx
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rsi
call fcn.1401530a0
mov eax, 0x23
jmp 0x1401580ee
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rsi
call fcn.1401530a0
mov eax, 0x4d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401cc560
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret