Function at 0x140027860
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140091208]
xor rax, rsp
mov qword [rbp], rax
mov rsi, qword [rcx]
mov r9d, dword [rcx + 0xec]
mov r8, qword [rcx + 0xb8]
movsxd rbx, edx
mov rdi, rcx
lea rdx, str.schannel:_SSL_TLS_connection_with__s_port__hu__step_1_3__n
xor r13d, r13d
mov r12, rbx
mov rcx, rsi
mov qword [rsp + 0x78], 0xffffffffffffffff
shl r12, 7
mov qword [rsp + 0x70], r13
call fcn.140023120
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rdi
call fcn.140018350
test eax, eax
jne 0x140027a22
mov rax, qword [rsp + 0x70]
lea rdx, str.schannel:_re_using_existing_credential_handle_n
mov rcx, rsi
mov qword [r12 + rdi + 0x200], rax
call fcn.140023120
mov rdx, qword [rdi + 0xb8]
lea r8, [rbp - 0x80]
mov ecx, 2
call sub.WS2_32.dll_inet_pton
test eax, eax
jne 0x140027928
mov rdx, qword [rdi + 0xb8]
lea r8, [rbp - 0x10]
lea ecx, [rax + 0x17]
call sub.WS2_32.dll_inet_pton
test eax, eax
je 0x140027937
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, rsi
call fcn.140023120
lea rax, [rsp + 0x60]
mov ecx, 0x18
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov dword [rbp - 0x78], r13d
mov dword [rbp - 0x74], 1
mov qword [rbp - 0x70], rax
mov dword [r12 + rdi + 0x258], 0x811c
call qword [section..data]
mov qword [r12 + rdi + 0x208], rax
test rax, rax
je 0x140027b0d
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov r8, qword [rdi + 0xb8]
test r8, r8
je 0x140027b1c
mov rdx, qword [r12 + rdi + 0x208]
mov r9d, dword [r12 + rdi + 0x258]
lea rcx, [r12 + rdi + 0x25c]
lea rax, [rdx + 0x10]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [r12 + rdi + 0x200]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [0x140094430]
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
xor edx, edx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [rax + 0x30]
cmp eax, 0x90312
je 0x140027c04
mov rcx, rdi
cmp eax, 0x80090322
jne 0x140027bd0
mov edx, eax
call fcn.1400473e0
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
jmp 0x140027bde
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x50]
call fcn.140054b20
mov dword [rbp - 0x60], 4
cmp dword [rsi + 0x3a0], r13d
je 0x140027a74
mov dword [rbp - 0x18], 0x20
cmp dword [rsi + 0x4e8], r13d
mov ecx, 0x1820
mov eax, 0x220
cmovne eax, ecx
mov rcx, rsi
mov dword [rbp - 0x18], eax
cmp dword [rsi + 0x4e8], r13d
jne 0x140027a7e
lea rdx, str.schannel:_checking_server_certificate_revocation_n
jmp 0x140027a85
mov dword [rbp - 0x18], 0x1808
mov rcx, rsi
lea rdx, str.schannel:_disabled_server_certificate_revocation_checks_n
call fcn.140023120
cmp dword [rsi + 0x3a4], r13d
jne 0x140027aa6
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._Also_disables_SNI._n
mov rcx, rsi
call fcn.140023120
mov ecx, dword [rsi + 0x398]
sub ecx, 2
je 0x140027aee
dec ecx
je 0x140027ae5
dec ecx
je 0x140027adc
dec ecx
je 0x140027ad3
dec ecx
je 0x140027aca
mov dword [rbp - 0x28], 0xa80
jmp 0x140027af5
mov dword [rbp - 0x28], 0x800
jmp 0x140027af5
mov dword [rbp - 0x28], 0x200
jmp 0x140027af5
mov dword [rbp - 0x28], 0x80
jmp 0x140027af5
mov dword [rbp - 0x28], 0x20
jmp 0x140027af5
mov dword [rbp - 0x28], 8
mov ecx, 0x20
call qword [section..data]
mov qword [r12 + rdi + 0x200], rax
test rax, rax
jne 0x140027b26
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rsi
call fcn.1400231d0
mov eax, 0x1b
jmp 0x140027ca6
xor ecx, ecx
xor r9d, r9d
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rcx, qword [r12 + rdi + 0x200]
lea r8d, [r9 + 2]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rax, qword [0x140094430]
xor ecx, ecx
call qword [rax + 0x18]
test eax, eax
je 0x1400278f8
mov rcx, rdi
cmp eax, 0x80090322
jne 0x140027b9c
mov edx, eax
call fcn.1400473e0
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
jmp 0x140027baa
mov edx, eax
call fcn.1400473e0
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov r8, rax
mov rcx, rsi
call fcn.1400231d0
mov rcx, qword [r12 + rdi + 0x200]
call qword [case.0x1400292fb.0]
mov qword [r12 + rdi + 0x200], r13
jmp 0x140027ca1
mov edx, eax
call fcn.1400473e0
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov r8, rax
mov rcx, rsi
call fcn.1400231d0
mov rcx, qword [r12 + rdi + 0x208]
call qword [case.0x1400292fb.0]
mov qword [r12 + rdi + 0x208], r13
jmp 0x140027ca1
mov r8d, dword [rsp + 0x60]
lea rdx, str.schannel:_sending_initial_handshake_data:_sending__lu_bytes..._n
mov rcx, rsi
call fcn.140023120
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rdi + rbx*8 + 0x1a8]
lea rax, [rsp + 0x78]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140023480
mov rdx, qword [0x140094430]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [rdx + 0x80]
mov r8, qword [rsp + 0x78]
mov r9d, dword [rsp + 0x60]
test ebx, ebx
jne 0x140027c92
cmp r9, r8
jne 0x140027c92
lea rdx, str.schannel:_sent_initial_handshake_data:_sent__zd_bytes_n
mov rcx, rsi
call fcn.140023120
mov qword [r12 + rdi + 0x260], r13
mov dword [r12 + rdi + 0x268], r13d
mov dword [r12 + rdi + 0x1f8], 1
xor eax, eax
jmp 0x140027ca6
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rsi
call fcn.1400231d0
mov eax, 0x23
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140051c70
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret