Function at 0x14004d1e0
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 - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400d41c0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r13, qword [rcx]
mov rdi, rcx
xor r12d, r12d
movsxd r14, edx
mov esi, 0x310
mov dword [rsp + 0x70], r14d
mov qword [rbp - 0x48], 0xffffffffffffffff
cmp dword [rdi + 0x16c], 2
lea rcx, [r14 + r14*2]
mov qword [rsp + 0x68], r12
lea r15, [rdi + rcx*8]
mov qword [rbp - 0x58], r12
lea ebx, [rsi + 0x18]
jne 0x14004d267
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov eax, esi
cmovne eax, ebx
cmp dword [rax + rdi], 2
je 0x14004d267
mov rax, qword [rdi + 0x158]
jmp 0x14004d26e
mov rax, qword [rdi + 0xd0]
mov edx, 1
mov qword [rbp - 0x50], rax
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.14003e090
test al, al
je 0x14004d299
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._n
mov rcx, r13
call fcn.14003b5a0
cmp byte [rdi + 0x40a], r12b
je 0x14004d2e0
lea rcx, [0x1400b17ec]
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 0x14004d2e0
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.14003e090
test al, al
je 0x14004d2e0
mov cl, 1
jmp 0x14004d2e2
xor cl, cl
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x6a], cl
cmp dword [rdi + 0x16c], 2
jne 0x14004d313
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov rax, rsi
cmovne rax, rbx
cmp dword [rax + rdi], 2
je 0x14004d313
mov rax, qword [rdi + 0x3a8]
jmp 0x14004d31a
mov rax, qword [rdi + 0x358]
test rax, rax
je 0x14004d35e
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.14003e090
test al, al
je 0x14004d345
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x6b], 1
jmp 0x14004d369
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, r13
call fcn.14003b420
mov eax, Ordinal_79
jmp 0x14004dca2
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x6b], r12b
mov rax, qword [r15 + 0x2e8]
mov qword [rax], r12
cmp dword [rdi + 0x16c], 2
jne 0x14004d39b
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov rax, rsi
cmovne rax, rbx
cmp dword [rax + rdi], 2
je 0x14004d39b
movzx eax, byte [r13 + 0xafb]
jmp 0x14004d3a3
movzx eax, byte [r13 + 0xa53]
test al, al
je 0x14004d3e8
mov rcx, rdi
call fcn.140036200
mov r9d, r14d
lea rdx, [rbp - 0x58]
xor r8d, r8d
mov rcx, rdi
call fcn.140035b70
test al, al
jne 0x14004d3e0
mov rcx, qword [r15 + 0x2e8]
mov rax, qword [rbp - 0x58]
mov qword [rcx], rax
mov rax, qword [r15 + 0x2e8]
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rcx, rdi
call fcn.140036230
mov rcx, qword [r15 + 0x2e8]
cmp qword [rcx], r12
jne 0x14004d9e8
xorps xmm0, xmm0
mov r9d, 8
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x40], 4
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
cmp byte [rdi + 0x390], r12b
je 0x14004d44b
cmp byte [rcx + 0x6b], r12b
mov eax, reloc.WLDAP32.dll_Ordinal_32
cmovne eax, r9d
mov dword [rbp + 8], eax
cmp byte [r13 + 0xaab], r12b
je 0x14004d445
or eax, 0x1800
jmp 0x14004d450
bts eax, 9
jmp 0x14004d450
mov eax, 0x1808
mov dword [rbp + 8], eax
cmp byte [rdi + 0x391], r12b
jne 0x14004d462
or eax, 4
mov dword [rbp + 8], eax
movsxd r8, dword [rdi + 0x348]
cmp r8d, 7
ja case.default.0x14004d48e
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0x4dccc]
add rcx, rdx
mov edx, 0x60000
mov dword [rsp + 0x60], edx
jmp rcx
cmp dword [rdi + 0x16c], 2
mov r10, qword [rdi]
jne 0x14004d4c1
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov rax, rsi
cmovne rax, rbx
cmp dword [rax + rdi], 2
je 0x14004d4c1
mov r8d, dword [rdi + 0x398]
mov r9d, dword [rdi + 0x39c]
jmp 0x14004d4c8
mov r9d, dword [rdi + 0x34c]
test r9d, 0xfffeffff
cmove r9d, edx
sar r9d, 0x10
cmp r8d, r9d
jg 0x14004d535
mov edx, dword [rbp - 8]
nop
mov ecx, r8d
sub ecx, 4
je 0x14004d517
sub ecx, 1
je 0x14004d511
sub ecx, 1
je 0x14004d50b
cmp ecx, 1
jne 0x14004d51e
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, r10
call fcn.14003b420
jmp case.0x14004d9cd.2146893055
bts edx, 0xb
jmp 0x14004d51b
bts edx, 9
jmp 0x14004d51b
bts edx, 7
mov dword [rbp - 8], edx
inc r8d
cmp r8d, r9d
jle 0x14004d4e0
jmp 0x14004d535
mov dword [rbp - 8], reloc.WLDAP32.dll_Ordinal_32
jmp 0x14004d535
mov dword [rbp - 8], r9d
mov ecx, dword [rdi + 0x16c]
cmp ecx, 2
jne 0x14004d55d
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov rax, rsi
cmovne rax, rbx
cmp dword [rax + rdi], ecx
je 0x14004d55d
mov rax, qword [rdi + 0x3c8]
jmp 0x14004d564
mov rax, qword [rdi + 0x378]
mov ebx, Ordinal_60
test rax, rax
je 0x14004d614
cmp ecx, 2
jne 0x14004d596
cmp qword [rdi + 0x260], 0xffffffffffffffff
mov eax, 0x328
cmovne rsi, rax
cmp dword [rsi + rdi], ecx
je 0x14004d596
mov rsi, qword [rdi + 0x3c8]
jmp 0x14004d59d
mov rsi, qword [rdi + 0x378]
lea rcx, [0x1400d5c20]
test rsi, rsi
je 0x14004d609
mov r14, rcx
cmp byte [rsi], 0
lea rax, [0x1400d5cd4]
je 0x14004d602
cmp r14, rax
jge 0x14004d602
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1400852bc
test eax, eax
jne 0x14004d5de
mov rcx, rsi
call fcn.14004c9d0
test eax, eax
je 0x14004d666
mov dword [r14], eax
mov edx, ebx
mov rcx, rsi
add r14, 4
inc r12d
call fcn.140076110
test rax, rax
lea rsi, [rax + 1]
cmove rsi, rax
test rsi, rsi
jne 0x14004d5ac
lea rcx, [0x1400d5c20]
mov dword [rbp - 0x18], r12d
xor r12d, r12d
mov qword [rbp - 0x10], rcx
mov rsi, qword [r13 + 0xa80]
test rsi, rsi
je 0x14004d8b4
mov edx, 0x5c
mov rcx, rsi
call fcn.14008b7b0
mov r12, rax
test rax, rax
je 0x14004d78f
mov r14, rax
lea rdx, str.CurrentUser
sub r14, rsi
mov rcx, rsi
mov r8, r14
call fcn.14008b87c
test eax, eax
jne 0x14004d67f
mov dword [rsp + 0x60], 0x10000
jmp 0x14004d759
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, r13
call fcn.14003b420
mov eax, Ordinal_60
jmp 0x14004dca2
mov r8, r14
lea rdx, str.LocalMachine
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d6a2
mov dword [rsp + 0x60], 0x20000
jmp 0x14004d759
mov r8, r14
lea rdx, str.CurrentService
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d6c5
mov dword [rsp + 0x60], 0x40000
jmp 0x14004d759
mov r8, r14
lea rdx, str.Services
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d6e5
mov dword [rsp + 0x60], 0x50000
jmp 0x14004d759
mov r8, r14
lea rdx, str.Users
mov rcx, rsi
call fcn.14008b87c
test eax, eax
je 0x14004d759
mov r8, r14
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d71b
mov dword [rsp + 0x60], 0x70000
jmp 0x14004d759
mov r8, r14
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d73b
mov dword [rsp + 0x60], 0x80000
jmp 0x14004d759
mov r8, r14
lea rdx, str.LocalMachineEnterprise
mov rcx, rsi
call fcn.14008b87c
test eax, eax
jne 0x14004d78f
mov dword [rsp + 0x60], 0x90000
lea r14, [r12 + 1]
mov edx, 0x5c
mov rcx, r14
call fcn.14008b7b0
mov r12, rax
test rax, rax
je 0x14004d78f
mov rcx, r14
mov byte [rax], 0
call qword [case.0x140030a89.0]
mov byte [r12], 0x5c
mov r14, rax
test rax, rax
jne 0x14004d7a8
lea ebx, [rax + 0x1b]
mov r8, rsi
lea rdx, str.schannel:_Failed_to_get_certificate_location_for__s
mov rcx, r13
call fcn.14003b420
mov eax, ebx
jmp 0x14004dca2
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r12 + rax + 1], 0
jne 0x14004d7b0
cmp rax, 0x28
jne 0x14004d78f
mov r9d, dword [rsp + 0x60]
lea ecx, [rax - 0x1f]
bts r9d, 0xe
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rsi, rax
test rax, rax
jne 0x14004d817
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x60]
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is__x
mov r9, r14
mov dword [rsp + 0x20], eax
mov rcx, r13
call fcn.14003b420
mov rcx, r14
call qword [fcn.14007f8a8]
mov eax, ebx
jmp 0x14004dca2
mov rcx, r14
call qword [fcn.14007f8a8]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x18], reloc.WS2_32.dll_sendto
mov qword [rbp + 0x20], rax
lea r9, [rbp + 0x48]
xor eax, eax
lea rcx, [r12 + 1]
mov qword [rsp + 0x30], rax
mov edx, Ordinal_41
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0x24]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14004d7a1
mov r9d, 0x10000
lea rax, [rbp + 0x18]
xor r12d, r12d
xor r8d, r8d
mov qword [rsp + 0x28], r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14004d7a1
lea rax, [rsp + 0x68]
mov dword [rbp - 0x3c], 1
xor edx, edx
mov qword [rbp - 0x38], rax
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea ecx, [rdx - 0x1f]
call qword [fcn.140080bb8]
mov rcx, qword [r15 + 0x2e8]
mov qword [rcx], rax
mov rax, qword [r15 + 0x2e8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14004d908
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r13
call fcn.14003b420
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je case.0x14004d9cd.2146893056
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004dca2
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [r15 + 0x2e8]
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 2]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400d5ce0]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x14004d966
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14004d9e3
mov r8d, 0x80
lea rdx, [rbp + 0xe0]
mov ecx, ebx
call fcn.1400628e0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, r13
call fcn.14003b420
mov rcx, qword [r15 + 0x2e8]
mov rcx, qword [rcx]
call qword [fcn.14007f8a8]
mov rax, qword [r15 + 0x2e8]
add ebx, 0x7ff6fd00
mov qword [rax], r12
cmp ebx, 0xe
ja case.0x14004d9cd.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x4dcec]
add rcx, rdx
jmp rcx
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, r13
call fcn.14003b420
jmp case.0x14004d9cd.2146893055
mov r14d, dword [rsp + 0x70]
mov rbx, qword [rbp - 0x50]
lea r8, [rbp + 0x10]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x14004da16
lea r8, [rbp + 0x38]
mov rdx, rbx
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14004da25
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, r13
call fcn.14003b5a0
mov rax, qword [r15 + 0x2e8]
cmp byte [rax + 0x6a], 0
je 0x14004da92
movabs rax, 0x312e312f70747468
mov dword [rbp + 0x64], 2
lea r8, str.http_1.1
mov qword [rbp + 0x6b], rax
lea rdx, str.schannel:_ALPN__offering__s_n
mov byte [rbp + 0x6a], 8
mov rcx, r13
call fcn.14003b5a0
mov ecx, 9
call fcn.14002a050
movzx eax, ax
mov word [rbp + 0x68], ax
add eax, 6
mov dword [rbp + 0x60], eax
lea rax, [rbp + 0x60]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x78], reloc.WS2_32.dll_send
mov dword [rsp + 0x7c], reloc.WS2_32.dll_select
jmp 0x14004da9f
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], r12
lea rax, [rsp + 0x78]
mov dword [rbp - 0x64], 1
mov qword [rbp - 0x60], rax
mov edx, Ordinal_26
lea rax, [rbp - 0x78]
mov dword [rbp - 0x68], r12d
mov qword [rbp + 0x30], rax
mov rax, qword [r15 + 0x2e8]
mov qword [rbp - 0x78], 0
lea ecx, [rdx - 0x17]
mov qword [rbp - 0x70], r12
mov dword [rbp + 0x28], r12d
mov dword [rbp + 0x2c], 1
mov dword [rax + 0x5c], 0x811c
call qword [fcn.140080bb8]
mov rcx, qword [r15 + 0x2e8]
mov qword [rcx + 8], rax
mov r10, qword [r15 + 0x2e8]
mov r8, qword [r10 + 8]
test r8, r8
jne 0x14004db22
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r13
call fcn.14003b420
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004dca2
test rbx, rbx
je case.0x14004d9cd.2146893056
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 - 0x68]
mov qword [rsp + 0x50], rcx
lea rax, [rbp + 0x28]
mov rcx, qword [r10]
cmove rdx, r12
mov qword [rsp + 0x48], rax
mov rax, qword [0x1400d5ce0]
mov qword [rsp + 0x40], r8
mov r8, rbx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [rax + Ordinal_50]
mov ebx, eax
cmp eax, 0x90312
je 0x14004dc0e
mov rcx, qword [r15 + 0x2e8]
mov rcx, qword [rcx + 8]
call qword [fcn.14007f8a8]
mov rcx, qword [r15 + 0x2e8]
lea rdx, [rbp + 0xe0]
mov r8d, 0x80
mov qword [rcx + 8], r12
mov ecx, ebx
call fcn.1400628e0
mov r8, rax
mov rcx, r13
cmp ebx, 0x80090300
je 0x14004dbf8
cmp ebx, 0x80090322
je 0x14004dbe2
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.14003b420
jmp case.0x14004d9cd.2146893055
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
call fcn.14003b420
mov eax, reloc.WLDAP32.dll_Ordinal_60
jmp 0x14004dca2
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
call fcn.14003b420
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004dca2
mov r9d, dword [rbp - 0x78]
lea rax, [rbp - 0x48]
mov r8, qword [rbp - 0x70]
mov rcx, rdi
movsxd rdx, r14d
mov qword [rsp + 0x20], rax
mov rdx, qword [rdi + rdx*8 + 0x258]
call fcn.14003bcc0
mov rdx, qword [0x1400d5ce0]
mov ebx, eax
mov rcx, qword [rbp - 0x70]
call qword [rdx + 0x80]
mov r8, qword [rbp - 0x48]
mov r9d, dword [rbp - 0x78]
test ebx, ebx
jne 0x14004dc8e
cmp r9, r8
jne 0x14004dc8e
mov rax, qword [r15 + 0x2e8]
mov dword [rax + 0x64], r12d
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x68], bl
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x69], bl
mov rax, qword [r15 + 0x2e8]
mov byte [rax + 0x58], bl
xor eax, eax
mov dword [r15 + 0x2e4], 1
jmp 0x14004dca2
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, r13
call fcn.14003b420
mov eax, reloc.WLDAP32.dll_Ordinal_35
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140073fb0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret