Function at 0x4105a0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x492040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, ecx
mov byte [ebp - 0x1f], 0
cmp dword [eax + 0x1c], 0xf
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [eax + 8]
mov dword [ebp - 0x30], eax
push edi
mov dword [ebp - 0x28], 2
mov eax, esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
jbe 0x4105e8
mov eax, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0x17
call edi
test eax, eax
je 0x410604
mov dword [ebp - 0x2c], 0x10
jmp 0x410620
cmp dword [esi + 0x14], 0xf
jbe 0x41060c
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push esi
push 2
call edi
test eax, eax
je 0x410627
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 7
push 0
push 0
push 0x55
push ebx
call dword [sym.imp.libcrypto_3.dll_X509_get_ext_d2i]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x24], edi
test edi, edi
je 0x410793
push edi
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0
call dword [sym.imp.libcrypto_3.dll_OPENSSL_sk_num]
add esp, 4
mov dword [ebp - 0x34], eax
xor ebx, ebx
test eax, eax
jle 0x410793
mov al, bl
test al, al
jne 0x41078f
push ebx
push edi
call dword [sym.imp.libcrypto_3.dll_OPENSSL_sk_value]
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x28]
cmp dword [esi], eax
jne 0x410777
push dword [esi + 4]
call dword [sym.imp.libcrypto_3.dll_ASN1_STRING_get0_data]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.libcrypto_3.dll_ASN1_STRING_length]
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x28]
sub eax, 2
je 0x41075f
sub eax, 5
jne 0x410774
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov edx, edi
sub esi, 4
jb 0x4106d1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4106da
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4106c0
cmp esi, 0xfffffffc
je 0x410755
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x410707
cmp esi, 0xfffffffd
je 0x410755
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x410707
cmp esi, 0xfffffffe
je 0x410755
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x410707
cmp esi, 0xffffffff
je 0x410755
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x410755
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
sub edx, 4
jb 0x410723
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x410728
add eax, 4
add edi, 4
sub edx, 4
jae 0x410712
cmp edx, 0xfffffffc
je 0x410755
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x410774
cmp edx, 0xfffffffd
je 0x410755
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x410774
cmp edx, 0xfffffffe
je 0x410755
mov cl, byte [eax + 2]
cmp cl, byte [edi + 2]
jne 0x410774
cmp edx, 0xffffffff
je 0x410755
mov al, byte [eax + 3]
cmp al, byte [edi + 3]
jne 0x410774
mov edi, dword [ebp - 0x24]
mov cl, 1
mov byte [ebp - 0x1e], cl
jmp 0x41077a
push ecx
mov ecx, dword [ebp - 0x30]
push edi
call fcn.004107c0
mov edi, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1e]
mov byte [ebp - 0x1d], al
jmp 0x41077d
mov edi, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1e]
mov al, byte [ebp - 0x1d]
inc ebx
cmp ebx, dword [ebp - 0x34]
jl 0x410665
test al, al
jne 0x41078f
test cl, cl
je 0x410793
mov byte [ebp - 0x1f], 1
push edi
call dword [sym.imp.libcrypto_3.dll_GENERAL_NAMES_free]
mov ecx, dword [ebp - 8]
add esp, 4
mov al, byte [ebp - 0x1f]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044ec8d
mov esp, ebp
pop ebp
ret 4