Function at 0x5ce540
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 0x5ce570
sub ebx, edx
mov dword [ebp - 0x1c], ebx
cmp byte [edi + 0xc], al
je 0x5ce5c5
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmp byte [eax + 0x1b3], 0
je 0x5ce5a9
lea eax, [ebp - 0x30]
push eax
push ecx
push 0x17
call esi
test eax, eax
je 0x5ce5a9
mov dword [ebp - 0xc], 0x10
jmp 0x5ce5be
lea eax, [ebp - 0x30]
push eax
push dword [edi]
push 2
call esi
test eax, eax
je 0x5ce5c5
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 7
push 0
push 0
push 0x55
push dword [ebp + 0x14]
call fcn.0063d040
mov esi, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5ce7aa
push eax
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
call fcn.0062e610
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x5ce753
nop word [eax + eax]
cmp byte [ebp - 1], 0
jne 0x5ce753
push eax
push dword [ebp - 0x18]
call fcn.0062e7e0
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp eax, 2
jne 0x5ce635
mov byte [ebp - 3], 1
jmp 0x5ce649
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 0x5ce740
push dword [edi + 4]
call fcn.005def10
push dword [edi + 4]
mov esi, eax
call fcn.005720e0
mov edx, eax
add esp, 8
mov eax, dword [ebp - 8]
sub eax, 2
je 0x5ce6f8
sub eax, 5
jne 0x5ce73d
cmp edx, dword [ebp - 0xc]
jne 0x5ce73d
lea ecx, [ebp - 0x30]
sub edx, 4
jb 0x5ce6a1
nop
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x5ce6a6
add esi, 4
add ecx, 4
sub edx, 4
jae 0x5ce690
cmp edx, 0xfffffffc
je 0x5ce6db
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x5ce73d
cmp edx, 0xfffffffd
je 0x5ce6db
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x5ce73d
cmp edx, 0xfffffffe
je 0x5ce6db
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x5ce73d
cmp edx, 0xffffffff
je 0x5ce6db
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x5ce73d
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.005bae40
add esp, 0xc
jmp 0x5ce743
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ce700
sub ecx, edi
cmp edx, ecx
jne 0x5ce73d
mov eax, dword [ebp + 0x10]
push ebx
push dword [eax]
mov edi, dword [eax + 4]
push edx
push esi
call fcn.005ded80
add esp, 0x10
test al, al
je 0x5ce73d
push esi
mov esi, dword [ebp + 8]
push edi
push str._subjectAltName:_host___s__matched_certs___s_
push esi
call fcn.005bae40
add esp, 0x10
mov byte [ebp - 1], 1
jmp 0x5ce740
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 0x5ce610
push dword [ebp - 0x18]
call fcn.0063e6e0
add esp, 4
cmp byte [ebp - 1], 0
jne 0x5ce7a1
cmp byte [ebp - 2], 0
jne 0x5ce7a1
cmp byte [ebp - 3], 0
jne 0x5ce776
cmp byte [ebp - 0x10], 0
je 0x5ce7aa
push dword [edi + 4]
push str._subjectAltName_does_not_match__s
push esi
call fcn.005bae40
push dword [edi + 4]
push str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
push esi
call fcn.005bada0
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.005f8410
mov edi, eax
add esp, 4
test edi, edi
je 0x5ce8b0
push 0xffffffffffffffff
push 0xd
push edi
call fcn.0063cea0
add esp, 0xc
test eax, eax
js 0x5ce8b0
nop dword [eax]
push eax
push 0xd
push edi
mov ebx, eax
call fcn.0063cea0
add esp, 0xc
test eax, eax
jns 0x5ce7e0
push ebx
push edi
call fcn.0063ce60
push eax
call fcn.0063cb20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5ce8ad
push edi
call fcn.005aef90
add esp, 4
push edi
cmp eax, 0xc
jne 0x5ce871
call fcn.005720e0
mov esi, eax
add esp, 4
test esi, esi
js 0x5ce87f
push 0x8e9
lea ecx, [esi + 1]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push ecx
call fcn.0062e9f0
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x5ce865
push esi
push edi
call fcn.005def10
add esp, 4
push eax
push dword [ebp - 8]
call fcn.00704c30
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x5ce87f
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call fcn.00636490
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5ce8b7
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ce890
sub ecx, edx
push ecx
call fcn.005bd300
add esp, 4
cmp eax, esi
je 0x5ce8ad
push str.SSL:_illegal_cert_name_field
jmp 0x5ce8bc
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5ce8cf
push str.SSL:_unable_to_obtain_common_name_from_peer_certificate
mov eax, dword [ebp + 8]
push eax
call fcn.005bada0
add esp, 8
mov ebx, 0x3c
jmp 0x5ce914
mov edi, dword [ebp + 0x10]
push ebx
push dword [edi]
push esi
push eax
call fcn.005ded80
add esp, 0x10
test al, al
mov eax, dword [ebp + 8]
jne 0x5ce901
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.005bada0
add esp, 0x10
mov ebx, 0x3c
jmp 0x5ce914
push dword [ebp - 8]
push str._common_name:__s__matched_
push eax
call fcn.005bae40
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x5ce92e
push 0x910
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push eax
call fcn.0062ea30
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret