Function at 0x1400516f0
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 - 0x100]
sub rsp, 0x200
mov rax, qword [0x14009a110]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, qword [rcx]
mov rbx, rcx
movsxd r15, edx
mov qword [rbp - 0x78], 0xffffffffffffffff
mov r13, r15
lea rax, [r15*2]
add rax, r15
lea rsi, [rcx + rax*8]
xor eax, eax
cmp dword [rbx + 0x164], 2
mov ecx, 0x30c
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x80], rax
lea r14d, [rcx - 0x18]
jne 0x14005177d
cmp qword [rbx + 0x240], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rbx], 2
je 0x14005177d
mov r12, qword [rbx + 0x150]
jmp 0x140051784
mov r12, qword [rbx + 0xd0]
mov r9d, dword [rbx + 0x17c]
lea rdx, str.schannel:_SSL_TLS_connection_with__s_port__hu__step_1_3__n
mov r8, r12
mov rcx, rdi
call fcn.140040ce0
mov edx, 1
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.140050a50
test al, al
je 0x1400517c4
lea rdx, str.schannel:_WinSSL_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
mov rcx, rdi
call fcn.140040ce0
cmp byte [rbx + 0x3c8], 0
je 0x14005180b
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14005180b
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.140050a50
test al, al
je 0x14005180b
mov cl, 1
jmp 0x14005180d
xor cl, cl
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x6a], cl
cmp dword [rbx + 0x164], 2
jne 0x140051843
cmp qword [rbx + 0x240], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x30c
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x140051843
mov rax, qword [rbx + 0x380]
jmp 0x14005184a
mov rax, qword [rbx + 0x340]
test rax, rax
je 0x14005188e
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.140050a50
test al, al
je 0x140051875
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x6b], 1
jmp 0x140051899
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rdi
call fcn.140040bd0
mov eax, Ordinal_79
jmp 0x140051ed2
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x6b], 0
mov rax, qword [rsi + 0x2d0]
mov qword [rax], 0
cmp dword [rbx + 0x164], 2
jne 0x1400518d1
cmp qword [rbx + 0x240], 0xffffffffffffffff
mov eax, 0x30c
cmovne r14, rax
cmp dword [r14 + rbx], 2
je 0x1400518d1
movzx eax, byte [rdi + 0x65b]
jmp 0x1400518d8
movzx eax, byte [rdi + 0x5c3]
test al, al
je 0x140051949
mov rcx, rbx
call fcn.140039da0
mov r9d, r15d
lea rdx, [rbp - 0x80]
xor r8d, r8d
mov rcx, rbx
call fcn.1400398c0
test al, al
jne 0x140051941
mov rcx, qword [rsi + 0x2d0]
lea rdx, str.schannel:_re_using_existing_credential_handle_n
mov rax, qword [rbp - 0x80]
mov qword [rcx], rax
mov rcx, rdi
call fcn.140040ce0
mov rax, qword [rsi + 0x2d0]
lea rdx, str.schannel:_incremented_credential_handle_refcount___d_n
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rax, qword [rsi + 0x2d0]
mov rcx, qword [rax]
mov r8d, dword [rcx + 0x18]
mov rcx, rdi
call fcn.140040ce0
mov rcx, rbx
call fcn.140039dd0
mov r14, qword [rsi + 0x2d0]
cmp qword [r14], 0
jne 0x140051c30
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
cmp byte [rbx + 0x330], 0
mov r15d, 8
mov dword [rbp - 0x30], 4
je 0x1400519b3
cmp byte [r14 + 0x6b], 0
mov eax, reloc.WLDAP32.dll_Ordinal_32
cmovne eax, r15d
mov dword [rbp + 0x18], eax
cmp byte [rdi + 0x5f9], 0
je 0x1400519a3
or eax, 0x1800
mov dword [rbp + 0x18], eax
jmp 0x1400519ba
bts eax, 9
lea rdx, str.schannel:_checking_server_certificate_revocation_n
mov dword [rbp + 0x18], eax
jmp 0x1400519c1
mov dword [rbp + 0x18], 0x1808
lea rdx, str.schannel:_disabled_server_certificate_revocation_checks_n
mov rcx, rdi
call fcn.140040ce0
cmp byte [rbx + 0x331], 0
jne 0x1400519e5
or dword [rbp + 0x18], 4
lea rdx, str.schannel:_verifyhost_setting_prevents_Schannel_from_comparing_the_supplied_target_name_with_the_subject_names_in_server_certificates._n
mov rcx, rdi
call fcn.140040ce0
movsxd rax, dword [rbx + 0x328]
cmp eax, 7
ja case.default.0x140051a06
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x51efc]
add rcx, rdx
jmp rcx
mov dword [rbp + 8], 0xa80
jmp 0x140051a33
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140053490
test eax, eax
je 0x140051a33
jmp 0x140051ed2
mov dword [rbp + 8], reloc.WLDAP32.dll_Ordinal_32
jmp 0x140051a33
mov dword [rbp + 8], r15d
mov rcx, qword [rdi + 0x628]
test rcx, rcx
je 0x140051b13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x68]
call fcn.140051200
test eax, eax
jne 0x140051ed2
mov rax, qword [rbp - 0x68]
xor edx, edx
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r14, rax
test rax, rax
je 0x140051ecd
mov rcx, qword [rbp - 0x60]
lea rax, [rbp + 0x50]
xor r15d, r15d
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], r15
lea r9, [rbp + 0x50]
mov dword [rbp - 0x58], reloc.WS2_32.dll_sendto
lea edx, [r15 + 0x28]
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140051ecd
mov r9d, 0x10000
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x58]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140051b06
lea rax, [rsp + 0x60]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x140051b16
xor r15d, r15d
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea ecx, [rdx - 0x1f]
call qword [str.p_a_a_]
mov rcx, qword [rsi + 0x2d0]
mov qword [rcx], rax
mov rax, qword [rsi + 0x2d0]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140051b6a
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.140040bd0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140051d5c
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140051ed2
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [rsi + 0x2d0]
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 2]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov rax, qword [0x14009fbb8]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x60]
mov r14d, eax
test rcx, rcx
je 0x140051bc9
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r14d, r14d
je 0x140051c33
mov edx, r14d
mov rcx, rbx
call fcn.14002ccf0
lea rcx, str.schannel:_AcquireCredentialsHandle_failed:__s
cmp r14d, 0x80090322
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
mov r8, rax
cmovne rdx, rcx
mov rcx, rdi
call fcn.140040bd0
mov rcx, qword [rsi + 0x2d0]
mov rcx, qword [rcx]
call qword [0x14009a030]
mov rax, qword [rsi + 0x2d0]
mov qword [rax], r15
jmp 0x140051ecd
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.140040bd0
jmp 0x140051ecd
xor r15d, r15d
lea r8, [rbp - 0x70]
mov rdx, r12
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140051c5d
lea r8, [rbp + 0x40]
mov rdx, r12
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140051c6c
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, rdi
call fcn.140040ce0
mov rax, qword [rsi + 0x2d0]
cmp byte [rax + 0x6a], 0
je 0x140051ccf
movabs rax, 0x312e312f70747468
mov dword [rbp + 0x74], 2
lea r8, str.http_1.1
mov qword [rbp + 0x7b], rax
lea rdx, str.schannel:_ALPN__offering__s_n
mov byte [rbp + 0x7a], 8
mov rcx, rdi
call fcn.140040ce0
mov ecx, 9
call fcn.140043190
mov r9d, reloc.WS2_32.dll_send
movzx ecx, ax
add ecx, 6
mov word [rbp + 0x78], ax
mov dword [rbp + 0x70], ecx
lea r8, [rbp + 0x70]
lea edx, [r9 - 1]
jmp 0x140051cd7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.1400511e0
mov r8d, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x20]
call fcn.1400511f0
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.1400511e0
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.1400511f0
mov rax, qword [rsi + 0x2d0]
lea edx, [r9 + 0x18]
mov ecx, r8d
mov dword [rax + 0x5c], 0x811c
call qword [str.p_a_a_]
mov rcx, qword [rsi + 0x2d0]
mov qword [rcx + 8], rax
mov r10, qword [rsi + 0x2d0]
mov r8, qword [r10 + 8]
test r8, r8
jne 0x140051d66
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.140040bd0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140051ed2
test r12, r12
je 0x140051d5c
cmp byte [r10 + 0x6a], 0
lea rax, [r8 + 0x10]
mov r9d, dword [r10 + 0x5c]
lea rcx, [r10 + 0x60]
mov qword [rsp + 0x58], rax
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x50], rcx
lea rax, [rbp + 0x30]
mov rcx, qword [r10]
cmove rdx, r15
mov qword [rsp + 0x48], rax
mov rax, qword [0x14009fbb8]
mov qword [rsp + 0x40], r8
mov r8, r12
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 + Ordinal_50]
mov r14d, eax
cmp eax, 0x90312
je 0x140051e1b
mov edx, eax
mov rcx, rbx
call fcn.14002ccf0
lea rcx, str.schannel:_initial_InitializeSecurityContext_failed:__s
cmp r14d, 0x80090322
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
mov r8, rax
cmovne rdx, rcx
mov rcx, rdi
call fcn.140040bd0
mov rcx, qword [rsi + 0x2d0]
mov rcx, qword [rcx + 8]
call qword [0x14009a030]
mov rax, qword [rsi + 0x2d0]
mov qword [rax + 8], r15
jmp 0x140051ecd
mov r8d, dword [rsp + 0x70]
lea rdx, str.schannel:_sending_initial_handshake_data:_sending__lu_bytes..._n
mov rcx, rdi
call fcn.140040ce0
mov r9d, dword [rsp + 0x70]
lea rax, [rbp - 0x78]
mov r8, qword [rsp + 0x78]
mov rcx, rbx
mov rdx, qword [rbx + r13*8 + 0x238]
mov qword [rsp + 0x20], rax
call fcn.140041250
mov rdx, qword [0x14009fbb8]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
call qword [rdx + 0x80]
mov r8, qword [rbp - 0x78]
mov r9d, dword [rsp + 0x70]
test ebx, ebx
jne 0x140051ebe
cmp r9, r8
jne 0x140051ebe
lea rdx, str.schannel:_sent_initial_handshake_data:_sent__zd_bytes_n
mov rcx, rdi
call fcn.140040ce0
mov rax, qword [rsi + 0x2d0]
mov dword [rax + 0x64], r15d
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x68], bl
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x69], bl
mov rax, qword [rsi + 0x2d0]
mov byte [rax + 0x58], bl
xor eax, eax
mov dword [rsi + 0x2c8], 1
jmp 0x140051ed2
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rdi
call fcn.140040bd0
mov eax, reloc.WLDAP32.dll_Ordinal_35
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14006f2e0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret