Function at 0x5bdf10
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 0x5bdf40
sub ebx, edx
mov dword [ebp - 0x1c], ebx
cmp byte [edi + 0xc], al
je 0x5bdf95
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmp byte [eax + 0x1b3], 0
je 0x5bdf79
lea eax, [ebp - 0x30]
push eax
push ecx
push 0x17
call esi
test eax, eax
je 0x5bdf79
mov dword [ebp - 0xc], 0x10
jmp 0x5bdf8e
lea eax, [ebp - 0x30]
push eax
push dword [edi]
push 2
call esi
test eax, eax
je 0x5bdf95
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 7
push 0
push 0
push 0x55
push dword [ebp + 0x14]
call fcn.0062ca30
mov esi, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5be17a
push eax
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
call fcn.0061e010
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x5be123
nop word [eax + eax]
cmp byte [ebp - 1], 0
jne 0x5be123
push eax
push dword [ebp - 0x18]
call fcn.0061e1e0
mov edi, eax
add esp, 8
mov eax, dword [edi]
cmp eax, 2
jne 0x5be005
mov byte [ebp - 3], 1
jmp 0x5be019
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 0x5be110
push dword [edi + 4]
call fcn.005ce8e0
push dword [edi + 4]
mov esi, eax
call fcn.00560ca0
mov edx, eax
add esp, 8
mov eax, dword [ebp - 8]
sub eax, 2
je 0x5be0c8
sub eax, 5
jne 0x5be10d
cmp edx, dword [ebp - 0xc]
jne 0x5be10d
lea ecx, [ebp - 0x30]
sub edx, 4
jb 0x5be071
nop
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x5be076
add esi, 4
add ecx, 4
sub edx, 4
jae 0x5be060
cmp edx, 0xfffffffc
je 0x5be0ab
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x5be10d
cmp edx, 0xfffffffd
je 0x5be0ab
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x5be10d
cmp edx, 0xfffffffe
je 0x5be0ab
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x5be10d
cmp edx, 0xffffffff
je 0x5be0ab
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x5be10d
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.005aa810
add esp, 0xc
jmp 0x5be113
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5be0d0
sub ecx, edi
cmp edx, ecx
jne 0x5be10d
mov eax, dword [ebp + 0x10]
push ebx
push dword [eax]
mov edi, dword [eax + 4]
push edx
push esi
call fcn.005ce750
add esp, 0x10
test al, al
je 0x5be10d
push esi
mov esi, dword [ebp + 8]
push edi
push str._subjectAltName:_host___s__matched_certs___s_
push esi
call fcn.005aa810
add esp, 0x10
mov byte [ebp - 1], 1
jmp 0x5be110
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 0x5bdfe0
push dword [ebp - 0x18]
call fcn.0062e0d0
add esp, 4
cmp byte [ebp - 1], 0
jne 0x5be171
cmp byte [ebp - 2], 0
jne 0x5be171
cmp byte [ebp - 3], 0
jne 0x5be146
cmp byte [ebp - 0x10], 0
je 0x5be17a
push dword [edi + 4]
push str._subjectAltName_does_not_match__s
push esi
call fcn.005aa810
push dword [edi + 4]
push str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
push esi
call fcn.005aa770
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.005e7df0
mov edi, eax
add esp, 4
test edi, edi
je 0x5be280
push 0xffffffffffffffff
push 0xd
push edi
call fcn.0062c890
add esp, 0xc
test eax, eax
js 0x5be280
nop dword [eax]
push eax
push 0xd
push edi
mov ebx, eax
call fcn.0062c890
add esp, 0xc
test eax, eax
jns 0x5be1b0
push ebx
push edi
call fcn.0062c850
push eax
call fcn.0062c510
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5be27d
push edi
call fcn.0059e940
add esp, 4
push edi
cmp eax, 0xc
jne 0x5be241
call fcn.00560ca0
mov esi, eax
add esp, 4
test esi, esi
js 0x5be24f
push 0x8e9
lea ecx, [esi + 1]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push ecx
call fcn.0061e3f0
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x5be235
push esi
push edi
call fcn.005ce8e0
add esp, 4
push eax
push dword [ebp - 8]
call fcn.006f45d0
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x5be24f
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call fcn.00625e90
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5be287
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5be260
sub ecx, edx
push ecx
call fcn.005accd0
add esp, 4
cmp eax, esi
je 0x5be27d
push str.SSL:_illegal_cert_name_field
jmp 0x5be28c
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5be29f
push str.SSL:_unable_to_obtain_common_name_from_peer_certificate
mov eax, dword [ebp + 8]
push eax
call fcn.005aa770
add esp, 8
mov ebx, 0x3c
jmp 0x5be2e4
mov edi, dword [ebp + 0x10]
push ebx
push dword [edi]
push esi
push eax
call fcn.005ce750
add esp, 0x10
test al, al
mov eax, dword [ebp + 8]
jne 0x5be2d1
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.005aa770
add esp, 0x10
mov ebx, 0x3c
jmp 0x5be2e4
push dword [ebp - 8]
push str._common_name:__s__matched_
push eax
call fcn.005aa810
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x5be2fe
push 0x910
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciescurllib_vtlsopenssl.c
push eax
call fcn.0061e430
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret