Function at 0x5ca6d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], 0
mov byte [ebp - 3], 0
mov ecx, dword [edi]
mov ebx, ecx
mov byte [ebp - 0x10], 0
lea edx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5ca700
sub ebx, edx
mov dword [ebp - 0x1c], ebx
cmp byte [edi + 0xc], al
je 0x5ca755
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmp byte [eax + 0x1b3], 0
je 0x5ca739
lea eax, [ebp - 0x30]
push eax
push ecx
push 0x17
call esi
test eax, eax
je 0x5ca739
mov dword [ebp - 0xc], 0x10
jmp 0x5ca74e
lea eax, [ebp - 0x30]
push eax
push dword [edi]
push 2
call esi
test eax, eax
je 0x5ca755
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 7
push 0
push 0
push 0x55
push dword [ebp + 0x14]
call fcn.006391b0
mov esi, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5ca93a
push eax
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
call fcn.0062a790
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x5ca8e3
nop word [eax + eax]
cmp byte [ebp - 1], 0
jne 0x5ca8e3
push eax
push dword [ebp - 0x18]
call fcn.0062a960
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp eax, 2
jne 0x5ca7c5
mov byte [ebp - 3], 1
jmp 0x5ca7d9
mov ecx, dword [ebp - 0x10]
cmp eax, 7
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebp - 8]
jne 0x5ca8d0
push dword [edi + 4]
call fcn.005db090
push dword [edi + 4]
mov esi, eax
call fcn.0056d520
mov edx, eax
add esp, 8
mov eax, dword [ebp - 8]
sub eax, 2
je 0x5ca888
sub eax, 5
jne 0x5ca8cd
cmp edx, dword [ebp - 0xc]
jne 0x5ca8cd
lea ecx, [ebp - 0x30]
sub edx, 4
jb 0x5ca831
nop
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x5ca836
add esi, 4
add ecx, 4
sub edx, 4
jae 0x5ca820
cmp edx, 0xfffffffc
je 0x5ca86b
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x5ca8cd
cmp edx, 0xfffffffd
je 0x5ca86b
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x5ca8cd
cmp edx, 0xfffffffe
je 0x5ca86b
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x5ca8cd
cmp edx, 0xffffffff
je 0x5ca86b
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x5ca8cd
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov byte [ebp - 2], 1
push dword [edi + 4]
push str._subjectAltName:_host___s__matched_certs_IP_address_
push esi
call fcn.005b6fd0
add esp, 0xc
jmp 0x5ca8d3
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ca890
sub ecx, edi
cmp edx, ecx
jne 0x5ca8cd
mov eax, dword [ebp + 0x10]
push ebx
push dword [eax]
mov edi, dword [eax + 4]
push edx
push esi
call fcn.005daf00
add esp, 0x10
test al, al
je 0x5ca8cd
push esi
mov esi, dword [ebp + 8]
push edi
push str._subjectAltName:_host___s__matched_certs___s_
push esi
call fcn.005b6fd0
add esp, 0x10
mov byte [ebp - 1], 1
jmp 0x5ca8d0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x20]
jl 0x5ca7a0
push dword [ebp - 0x18]
call fcn.0063a850
add esp, 4
cmp byte [ebp - 1], 0
jne 0x5ca931
cmp byte [ebp - 2], 0
jne 0x5ca931
cmp byte [ebp - 3], 0
jne 0x5ca906
cmp byte [ebp - 0x10], 0
je 0x5ca93a
push dword [edi + 4]
push str._subjectAltName_does_not_match__s
push esi
call fcn.005b6fd0
push dword [edi + 4]
push str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
push esi
call fcn.005b6f30
add esp, 0x18
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
mov dword [ebp - 8], 0
xor esi, esi
call fcn.005f4590
mov edi, eax
add esp, 4
test edi, edi
je 0x5caa40
push 0xffffffffffffffff
push 0xd
push edi
call fcn.00639010
add esp, 0xc
test eax, eax
js 0x5caa40
nop dword [eax]
push eax
push 0xd
push edi
mov ebx, eax
call fcn.00639010
add esp, 0xc
test eax, eax
jns 0x5ca970
push ebx
push edi
call fcn.00638fd0
push eax
call fcn.00638c90
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5caa3d
push edi
call fcn.005ab120
add esp, 4
push edi
cmp eax, 0xc
jne 0x5caa01
call fcn.0056d520
mov esi, eax
add esp, 4
test esi, esi
js 0x5caa0f
push 0x8e9
lea ecx, [esi + 1]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push ecx
call fcn.0062ab70
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x5ca9f5
push esi
push edi
call fcn.005db090
add esp, 4
push eax
push dword [ebp - 8]
call fcn.00700d60
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x5caa0f
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call fcn.00632610
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5caa47
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5caa20
sub ecx, edx
push ecx
call fcn.005b9490
add esp, 4
cmp eax, esi
je 0x5caa3d
push str.SSL:_illegal_cert_name_field
jmp 0x5caa4c
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5caa5f
push str.SSL:_unable_to_obtain_common_name_from_peer_certificate
mov eax, dword [ebp + 8]
push eax
call fcn.005b6f30
add esp, 8
mov ebx, 0x3c
jmp 0x5caaa4
mov edi, dword [ebp + 0x10]
push ebx
push dword [edi]
push esi
push eax
call fcn.005daf00
add esp, 0x10
test al, al
mov eax, dword [ebp + 8]
jne 0x5caa91
push dword [edi + 4]
push dword [ebp - 8]
push str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
push eax
call fcn.005b6f30
add esp, 0x10
mov ebx, 0x3c
jmp 0x5caaa4
push dword [ebp - 8]
push str._common_name:__s__matched_
push eax
call fcn.005b6fd0
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x5caabe
push 0x910
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push eax
call fcn.0062abb0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret