Function at 0x40fbc0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x44b00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x238], eax
cmp dword [ebx + 0x1c], 0x10
push esi
lea esi, [ebx + 8]
mov dword [ebp - 0x234], ebx
push edi
mov dword [ebp - 0x22c], 2
mov eax, esi
mov dword [ebp - 0x230], 0
jb 0x40fc08
mov eax, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [ebp - 0x220]
push ecx
push eax
push 0x17
call edi
test eax, eax
je 0x40fc2a
mov dword [ebp - 0x230], 0x10
jmp 0x40fc4c
cmp dword [esi + 0x14], 0x10
jb 0x40fc32
mov esi, dword [esi]
lea eax, [ebp - 0x210]
push eax
push esi
push 2
call edi
test eax, eax
je 0x40fc56
mov dword [ebp - 0x230], 4
mov dword [ebp - 0x22c], 7
push 0
push 0
push 0x55
push dword [ebp - 0x238]
call dword [sym.imp.libcrypto_1_1.dll_X509_get_ext_d2i]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x228], edi
test edi, edi
je 0x40fe28
push edi
mov byte [ebp - 0x221], 0
mov byte [ebp - 0x222], 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 0x40fe22
mov al, bl
test al, al
jne 0x40fe03
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 - 0x22c]
cmp dword [esi], eax
jne 0x40fde2
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 - 0x22c]
add esp, 4
sub ecx, 2
je 0x40fdbb
sub ecx, 5
jne 0x40fddc
mov esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
mov edx, edi
sub esi, 4
jb 0x40fd21
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40fd2a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40fd10
cmp esi, 0xfffffffc
je 0x40fdab
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40fd57
cmp esi, 0xfffffffd
je 0x40fdab
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40fd57
cmp esi, 0xfffffffe
je 0x40fdab
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40fd57
cmp esi, 0xffffffff
je 0x40fdab
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40fdab
mov edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x210]
sub edx, 4
jb 0x40fd79
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40fd7e
add ecx, 4
add edi, 4
sub edx, 4
jae 0x40fd68
cmp edx, 0xfffffffc
je 0x40fdab
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x40fddc
cmp edx, 0xfffffffd
je 0x40fdab
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x40fddc
cmp edx, 0xfffffffe
je 0x40fdab
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x40fddc
cmp edx, 0xffffffff
je 0x40fdab
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
jne 0x40fddc
mov edi, dword [ebp - 0x228]
mov cl, 1
mov byte [ebp - 0x222], cl
jmp 0x40fde8
mov ecx, dword [ebp - 0x234]
push eax
push edi
call fcn.0040fea0
mov edi, dword [ebp - 0x228]
mov cl, byte [ebp - 0x222]
mov byte [ebp - 0x221], al
jmp 0x40fdee
mov edi, dword [ebp - 0x228]
mov cl, byte [ebp - 0x222]
mov al, byte [ebp - 0x221]
inc ebx
cmp ebx, dword [ebp - 0x23c]
jl 0x40fca5
test al, al
jne 0x40fe03
test cl, cl
je 0x40fe22
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.0043827f
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x234]
push edi
call dword [sym.imp.libcrypto_1_1.dll_GENERAL_NAMES_free]
add esp, 4
push dword [ebp - 0x238]
call dword [sym.imp.libcrypto_1_1.dll_X509_get_subject_name]
add esp, 4
test eax, eax
je 0x40fe8a
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 0x40fe8a
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040fea0
test al, al
je 0x40fe8a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043827f
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.0043827f
mov esp, ebp
pop ebp
ret 4