Function at 0x5456b0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x44
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov ecx, dword [edi]
mov ebp, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x24], 0
lea edx, [ebp + 1]
nop dword [eax + eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x545700
sub ebp, edx
mov edx, dword [edi + 0xc]
mov eax, edx
sub eax, 0
je 0x545787
sub eax, 1
je 0x545766
sub eax, 1
je 0x545745
push edx
push str.unexpected_ssl_peer_type:__d
push ebx
call fcn.0052b8c0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x3c
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret
lea eax, [esp + 0x40]
push eax
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x54572d
mov esi, 7
mov dword [esp + 0x20], 0x10
jmp 0x54578c
lea eax, [esp + 0x40]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x54572d
mov esi, 7
mov dword [esp + 0x20], 4
jmp 0x54578c
mov esi, 2
push 0
push 0
push 0x55
push dword [esp + 0x40]
mov dword [esp + 0x20], esi
call fcn.005be8a0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x5459a4
push eax
mov byte [esp + 0x1b], 0
mov byte [esp + 0x22], 0
call fcn.005a96d0
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
test ecx, ecx
jle 0x545915
cmp byte [esp + 0x17], 0
jne 0x545915
push eax
push dword [esp + 0x34]
call fcn.005a9920
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp eax, 2
jne 0x5457fd
mov byte [esp + 0x1f], 1
jmp 0x545813
mov ecx, dword [esp + 0x24]
cmp eax, 7
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x24], ecx
cmp eax, esi
jne 0x545953
push dword [edi + 4]
call fcn.00567d90
push dword [edi + 4]
mov esi, eax
call fcn.0051e8f0
mov edx, eax
add esp, 8
mov eax, dword [esp + 0x10]
sub eax, 2
je 0x5458ba
sub eax, 5
jne 0x5458fa
cmp edx, dword [esp + 0x20]
jne 0x5458fa
lea ecx, [esp + 0x40]
sub edx, 4
jb 0x545868
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x54586d
add esi, 4
add ecx, 4
sub edx, 4
jae 0x545857
cmp edx, 0xfffffffc
je 0x54589e
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x5458fa
cmp edx, 0xfffffffd
je 0x54589e
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x5458fa
cmp edx, 0xfffffffe
je 0x54589e
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x5458fa
cmp edx, 0xffffffff
je 0x54589e
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x5458fa
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1e], 1
push dword [edi + 4]
push str._subjectAltName:_host___s__matched_certs_IP_address_
push ebx
call fcn.0052b990
add esp, 0xc
jmp 0x5458fe
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5458c0
sub ecx, edi
cmp edx, ecx
jne 0x5458fa
mov eax, dword [esp + 0x18]
push ebp
push dword [eax]
mov edi, dword [eax + 4]
push edx
push esi
call fcn.00567f80
add esp, 0x10
test al, al
je 0x5458fa
push esi
push edi
push str._subjectAltName:_host___s__matched_certs___s_
push ebx
call fcn.0052b990
add esp, 0x10
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x3c]
jl 0x5457d5
push dword [esp + 0x30]
call fcn.005c0970
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x545b5c
cmp byte [esp + 0x1e], 0
jne 0x545b5c
cmp byte [esp + 0x1f], 0
jne 0x545945
cmp byte [esp + 0x24], 0
je 0x5459a4
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x545959
mov esi, str.host_name
jmp 0x545969
mov edi, dword [esp + 0x18]
jmp 0x545902
cmp eax, 1
mov esi, str.ipv4_address
mov ecx, str.ipv6_address
cmovne esi, ecx
push dword [edi + 4]
push esi
push str._subjectAltName_does_not_match__s__s
push ebx
call fcn.0052b990
push dword [edi + 4]
push esi
push str.SSL:_no_alternative_certificate_subject_name_matches_target__s__s
push ebx
call fcn.0052b8c0
add esp, 0x20
mov ebx, 0x3c
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret
push dword [esp + 0x34]
mov dword [esp + 0x14], 0
xor esi, esi
call fcn.0056c7e0
mov edi, eax
add esp, 4
test edi, edi
je 0x545ac6
push 0xffffffffffffffff
push 0xd
push edi
call fcn.005be730
add esp, 0xc
test eax, eax
js 0x545ac6
nop dword [eax]
push eax
push 0xd
push edi
mov ebx, eax
call fcn.005be730
add esp, 0xc
test eax, eax
jns 0x5459e0
push ebx
push edi
call fcn.005be700
push eax
call fcn.005be3a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x545ac2
push edi
call fcn.0051e8e0
add esp, 4
push edi
cmp eax, 0xc
jne 0x545a73
call fcn.0051e8f0
mov esi, eax
add esp, 4
test esi, esi
js 0x545a82
push 0x8c0
lea eax, [esi + 1]
push str.E:_repoyjscloudclink_third_partycurllib_vtlsopenssl.c
push eax
call fcn.005a9b70
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x545a68
push esi
push edi
call fcn.00567d90
add esp, 4
push eax
push dword [esp + 0x18]
call fcn.006e0e90
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x545a82
mov ebx, 0x1b
mov dword [esp + 0x38], ebx
jmp 0x545a84
lea eax, [esp + 0x14]
push eax
call fcn.005b01f0
add esp, 8
mov esi, eax
xor ebx, ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x545abe
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x545a90
sub ecx, edx
push ecx
call fcn.0052ef10
add esp, 4
cmp eax, esi
je 0x545abe
push str.SSL:_illegal_cert_name_field
push dword [esp + 0x2c]
call fcn.0052b8c0
add esp, 8
mov ebx, 0x3c
jmp 0x545b2c
test ebx, ebx
jne 0x545b2c
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x10], 0
jne 0x545ae2
push str.SSL:_unable_to_obtain_common_name_from_peer_certificate
push ebx
call fcn.0052b8c0
add esp, 8
mov ebx, 0x3c
jmp 0x545b2c
mov edi, dword [esp + 0x18]
push ebp
push dword [edi]
push esi
push dword [esp + 0x1c]
call fcn.00567f80
add esp, 0x10
test al, al
jne 0x545b16
push dword [edi + 4]
push dword [esp + 0x14]
push str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
push ebx
call fcn.0052b8c0
add esp, 0x10
mov ebx, 0x3c
jmp 0x545b2c
push dword [esp + 0x10]
push str._common_name:__s__matched_
push ebx
call fcn.0052b990
mov ebx, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x545b5e
push 0x8e7
push str.E:_repoyjscloudclink_third_partycurllib_vtlsopenssl.c
push ecx
call fcn.005a9ba0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret
xor ebx, ebx
mov ecx, dword [esp + 0x50]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret