Function at 0x4a9000
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x40
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push ebx
push ebp
cmp byte [ecx + 0xb0], 2
push esi
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x30], 0
jne 0x4a9071
cmp dword [ecx + 0x134], 0xffffffff
mov eax, 0x198
mov edx, 0x1a8
cmovne eax, edx
cmp dword [eax + ecx], 2
je 0x4a9071
mov ebx, dword [ecx + 0xa4]
mov eax, dword [ecx + 0xa8]
jmp 0x4a9077
mov ebx, dword [ecx + 0x5c]
mov eax, dword [ecx + 0x60]
mov ebp, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], eax
lea edx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4a9084
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
sub ebp, edx
cmp byte [ecx + 0x24b], al
je 0x4a90b4
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x17
call esi
test eax, eax
je 0x4a90b4
mov dword [esp + 0x2c], 0x10
jmp 0x4a90ca
lea eax, [esp + 0x3c]
push eax
push ebx
push 2
call esi
test eax, eax
je 0x4a90d2
mov dword [esp + 0x2c], 4
mov dword [esp + 0x24], 7
push 0
push 0
push 0x55
push dword [esp + 0x40]
call fcn.00537520
mov esi, eax
add esp, 0x10
mov dword [esp + 0x14], esi
test esi, esi
je 0x4a92d5
push esi
mov byte [esp + 0x17], 0
mov byte [esp + 0x22], 0
call fcn.00523740
add esp, 4
mov dword [esp + 0x38], eax
xor ebx, ebx
test eax, eax
jle 0x4a9264
mov al, bl
test al, al
jne 0x4a9264
push ebx
push esi
call fcn.00523990
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp eax, 2
jne 0x4a9137
mov byte [esp + 0x1f], 1
jmp 0x4a914d
mov ecx, dword [esp + 0x30]
cmp eax, 7
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x30], ecx
cmp eax, dword [esp + 0x24]
jne 0x4a9243
push dword [edi + 4]
call fcn.004b5660
push dword [edi + 4]
mov esi, eax
call fcn.00489120
mov edx, eax
add esp, 8
mov eax, dword [esp + 0x24]
sub eax, 2
je 0x4a91ff
sub eax, 5
jne 0x4a924d
cmp edx, dword [esp + 0x2c]
jne 0x4a924d
lea ecx, [esp + 0x3c]
sub edx, 4
jb 0x4a91a8
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4a91ad
add esi, 4
add ecx, 4
sub edx, 4
jae 0x4a9197
cmp edx, 0xfffffffc
je 0x4a91e2
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x4a924d
cmp edx, 0xfffffffd
je 0x4a91e2
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x4a924d
cmp edx, 0xfffffffe
je 0x4a91e2
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x4a924d
cmp edx, 0xffffffff
je 0x4a91e2
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x4a924d
push dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push str._subjectAltName:_host___s__matched_certs_IP_address_
push edi
mov byte [esp + 0x2a], 1
call fcn.00492920
add esp, 0xc
jmp 0x4a9251
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a9204
sub ecx, edi
cmp edx, ecx
jne 0x4a924d
push ebp
push dword [esp + 0x2c]
push edx
push esi
call fcn.004b5460
mov edi, dword [esp + 0x28]
add esp, 0x10
test al, al
je 0x4a9251
push esi
push dword [esp + 0x24]
push str._subjectAltName:_host___s__matched_certs___s_
push edi
call fcn.00492920
mov al, 1
add esp, 0x10
mov byte [esp + 0x13], al
jmp 0x4a9255
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x13]
jmp 0x4a9259
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x13]
mov esi, dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x4a9115
push esi
call fcn.00539570
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x4a92c0
cmp byte [esp + 0x1e], 0
jne 0x4a92c0
cmp byte [esp + 0x1f], 0
jne 0x4a9289
cmp byte [esp + 0x30], 0
je 0x4a92d5
mov ebx, dword [esp + 0x20]
push ebx
push str._subjectAltName_does_not_match__s
push edi
call fcn.00492920
push ebx
push str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
push edi
call fcn.00492850
add esp, 0x18
mov eax, 0x3c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004b75b2
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004b75b2
add esp, 0x40
ret
push dword [esp + 0x34]
mov dword [esp + 0x18], 0
xor esi, esi
call fcn.004e2ad0
mov edi, eax
add esp, 4
test edi, edi
je 0x4a93dd
push 0xffffffffffffffff
push 0xd
push edi
call fcn.005373b0
add esp, 0xc
test eax, eax
js 0x4a93dd
nop word [eax + eax]
push eax
push 0xd
push edi
mov ebx, eax
call fcn.005373b0
add esp, 0xc
test eax, eax
jns 0x4a9310
push ebx
push edi
call fcn.00537380
push eax
call fcn.00537030
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4a93dd
push edi
call fcn.00489110
add esp, 4
push edi
cmp eax, 0xc
jne 0x4a93a2
call fcn.00489120
mov esi, eax
add esp, 4
test esi, esi
js 0x4a93b1
push 0x865
lea ecx, [esi + 1]
push str.D:_curl_build_vcpkg_buildtreescurl_srcurl_7_86_0_3d3d4aefd3.cleanlib_vtlsopenssl.c
push ecx
call fcn.005247b0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a9398
push esi
push edi
call fcn.004b5660
add esp, 4
push eax
push dword [esp + 0x1c]
call fcn.004b94a0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4a93b1
mov ebx, 0x1b
jmp 0x4a9447
lea eax, [esp + 0x18]
push eax
call fcn.0052a7c0
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a93e5
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a93c0
sub ecx, edx
push ecx
call fcn.00494ef0
add esp, 4
cmp eax, esi
je 0x4a93dd
push str.SSL:_illegal_cert_name_field
jmp 0x4a93ea
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4a93fd
push str.SSL:_unable_to_obtain_common_name_from_peer_certificate
push dword [esp + 0x1c]
call fcn.00492850
add esp, 8
mov ebx, 0x3c
jmp 0x4a9447
push ebp
push dword [esp + 0x2c]
push esi
push ecx
call fcn.004b5460
add esp, 0x10
test al, al
jne 0x4a9430
push dword [esp + 0x20]
push dword [esp + 0x18]
push str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
push dword [esp + 0x24]
call fcn.00492850
add esp, 0x10
mov ebx, 0x3c
jmp 0x4a9447
push dword [esp + 0x14]
push str._common_name:__s__matched_
push dword [esp + 0x20]
call fcn.00492920
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a9462
push 0x88c
push str.D:_curl_build_vcpkg_buildtreescurl_srcurl_7_86_0_3d3d4aefd3.cleanlib_vtlsopenssl.c
push eax
call fcn.005247e0
add esp, 0xc
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x40
ret