Function at 0x425aa0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x234], eax
cmp dword [ebx + 0x1c], 0x10
push esi
lea esi, [ebx + 8]
mov dword [ebp - 0x230], ebx
push edi
mov dword [ebp - 0x228], 2
mov eax, esi
mov dword [ebp - 0x22c], 0
jb 0x425ae8
mov eax, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0x17
call edi
test eax, eax
je 0x425b0a
mov dword [ebp - 0x22c], 0x10
jmp 0x425b2c
cmp dword [esi + 0x14], 0x10
jb 0x425b12
mov esi, dword [esi]
lea eax, [ebp - 0x238]
push eax
push esi
push 2
call edi
test eax, eax
je 0x425b36
mov dword [ebp - 0x22c], 4
mov dword [ebp - 0x228], 7
push 0
push 0
push 0x55
push dword [ebp - 0x234]
call dword [sym.imp.libcrypto_1_1.dll_X509_get_ext_d2i]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x224], edi
test edi, edi
je 0x425d08
push edi
mov byte [ebp - 0x21d], 0
mov byte [ebp - 0x21e], 0
call dword [sym.imp.libcrypto_1_1.dll_OPENSSL_sk_num]
add esp, 4
mov dword [ebp - 0x23c], eax
xor ebx, ebx
test eax, eax
jle 0x425d02
mov al, bl
test al, al
jne 0x425ce3
push ebx
push edi
call dword [sym.imp.libcrypto_1_1.dll_OPENSSL_sk_value]
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x228]
cmp dword [esi], eax
jne 0x425cc2
push dword [esi + 4]
call dword [sym.imp.libcrypto_1_1.dll_ASN1_STRING_get0_data]
add esp, 4
mov edi, eax
push dword [esi + 4]
call dword [sym.imp.libcrypto_1_1.dll_ASN1_STRING_length]
mov ecx, dword [ebp - 0x228]
add esp, 4
sub ecx, 2
je 0x425c9b
sub ecx, 5
jne 0x425cbc
mov esi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x21c]
mov edx, edi
sub esi, 4
jb 0x425c01
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x425c0a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x425bf0
cmp esi, 0xfffffffc
je 0x425c8b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x425c37
cmp esi, 0xfffffffd
je 0x425c8b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x425c37
cmp esi, 0xfffffffe
je 0x425c8b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x425c37
cmp esi, 0xffffffff
je 0x425c8b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x425c8b
mov edx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x238]
sub edx, 4
jb 0x425c59
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x425c5e
add ecx, 4
add edi, 4
sub edx, 4
jae 0x425c48
cmp edx, 0xfffffffc
je 0x425c8b
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x425cbc
cmp edx, 0xfffffffd
je 0x425c8b
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x425cbc
cmp edx, 0xfffffffe
je 0x425c8b
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x425cbc
cmp edx, 0xffffffff
je 0x425c8b
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
jne 0x425cbc
mov edi, dword [ebp - 0x224]
mov cl, 1
mov byte [ebp - 0x21e], cl
jmp 0x425cc8
mov ecx, dword [ebp - 0x230]
push eax
push edi
call fcn.00425d80
mov edi, dword [ebp - 0x224]
mov cl, byte [ebp - 0x21e]
mov byte [ebp - 0x21d], al
jmp 0x425cce
mov edi, dword [ebp - 0x224]
mov cl, byte [ebp - 0x21e]
mov al, byte [ebp - 0x21d]
inc ebx
cmp ebx, dword [ebp - 0x23c]
jl 0x425b85
test al, al
jne 0x425ce3
test cl, cl
je 0x425d02
push edi
call dword [sym.imp.libcrypto_1_1.dll_GENERAL_NAMES_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x230]
push edi
call dword [sym.imp.libcrypto_1_1.dll_GENERAL_NAMES_free]
add esp, 4
push dword [ebp - 0x234]
call dword [sym.imp.libcrypto_1_1.dll_X509_get_subject_name]
add esp, 4
test eax, eax
je 0x425d6a
push 0x200
lea ecx, [ebp - 0x20c]
push ecx
push 0xd
push eax
call dword [sym.imp.libcrypto_1_1.dll_X509_NAME_get_text_by_NID]
add esp, 0x10
cmp eax, 0xffffffff
je 0x425d6a
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00425d80
test al, al
je 0x425d6a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret 4